Sunlight detection platform based on big data processing
Technical field
The present invention relates to big data field, more particularly to a kind of sunlight detection platform based on big data processing.
Background technology
Because the steering position where driver is typically in the front end of the vehicles, and the seating at other passengers
Position is typically in the rear end of the vehicles, and therefore, the sunlight area that driver is born is greater than general passenger and held
The sunlight area received, shone moreover, the sunlight intensity that driver is born is greater than the sunlight that general passenger is born
Penetrate intensity.As can be seen here, in the decision-making blocked for sunlight, the selection of driver and the selection of general passenger are conflict be present
Possibility.
However, the sunlight mechanism of blocking for driver is generally only to be simply to set a sunshading board in the prior art,
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.
Therefore, the present invention proposes a kind of technical scheme of new driver's sunshade, it is contemplated that the selection of driver
In place of the conflict of the selection of general passenger, according to the specific sunlight situation of steering position, one is set exclusively for driver
Adaptive sunshade mechanism is covered, so as to solve the contradiction between the selection of driver and the selection of general passenger.
The content of the invention
In order to solve the above problems, the invention provides a kind of sunlight detection platform based on big data processing, pass through reality
When detect steering position specific sunlight situation, introduce multiple images processing equipment specific sunlight situation is determined
Amount analysis, while the travel direction of the vehicles is judged, so as to the position according to corresponding to travel direction, sunlight subgraph
And corresponding area ratio determines steering position sunshade nearby or the driving control signal except hot equipment.
According to an aspect of the present invention, there is provided a kind of sunlight detection platform based on big data processing, the platform bag
Include sunlight area data extraction equipment, AVR32 chips, big data service system and high-definition image collecting device, big data service
System and sunlight area data extraction equipment carry out different image procossings successively to the image that high-definition image collecting device gathers,
AVR32 chips are connected with sunlight area data extraction equipment, to receive the image procossing of sunlight area data extraction equipment output
As a result.
More specifically, in the sunlight detection platform handled based on big data, including:Big data service system, position
In distal end, with high-definition image collecting device by network connection, for receiving high-definition image and high-definition image being handled, greatly
Data service system includes:Gray processing processing equipment, it is connected by network with high-definition image collecting device, including channel parameters carry
Unit, weighted value memory cell and gray value computing unit are taken, channel parameters extraction unit is used to receive high-definition image to extract
Go out 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
For having prestored R channel weightings value, G channel weightings value and channel B weighted value, gray value computing unit is joined with passage respectively
Number extraction unit is connected with weighted value memory cell, and for each pixel in high-definition image, R passages pixel value is led to R
The product of higher, the product of G passages pixel value and G channel weighting values and channel B pixel value multiply with channel B weighted value
Product is added the gray value for the pixel being directed to obtain, and the gray value based on each pixel in high-definition image obtains high definition figure
The gray level image as corresponding to;Wherein, R channel weightings value value is that 0.298839, G channel weighting values value is 0.586811, B
Channel weighting value value is 0.114350;Histogram distribution detection device, it is connected with gray processing processing equipment, for receiving gray scale
Change image, and grey level histogram processing is carried out to gray level image to obtain corresponding histogram image, be in histogram image
During existing bimodal distribution, global threshold selection signal is sent, otherwise, sends non-global threshold selection signal;Threshold value selects equipment, with
Histogram distribution detection device connects, for when receiving global threshold selection signal, using global threshold 128 as number of threshold values
According to output, when receiving non-global threshold selection signal, exported neighbor pixel gray difference threshold 40 as threshold data;
Binary conversion treatment equipment, equipment and histogram distribution detection device is selected to be connected with threshold value respectively, for receiving global threshold
When being worth selection signal, for each pixel in gray level image, when gray value is more than or equal to threshold data, it will be directed to
Pixel be arranged to white level pixel, when gray value is less than threshold data, by for pixel be arranged to black level
Pixel, and binary image corresponding to output gray level image;Binary conversion treatment equipment is additionally operable to receiving non-global threshold
When being worth selection signal, for each pixel in gray level image, vertical direction is calculated upwards apart from its 3 pixels
The gray value of pixel as upper grey scale pixel value, calculate vertical direction downwards apart from its 3 pixels pixel gray scale
Value be used as lower grey scale pixel value, calculated level direction to the left apart from its 3 pixels pixel gray value as left pixel
Gray value, calculated level direction to the right apart from its 3 pixels pixel gray value as right grey scale pixel value, when upper picture
The absolute value of the difference of plain gray value and lower grey scale pixel value is less than or equal to threshold data and left grey scale pixel value and right pixel grey scale
When the absolute value of difference of value is less than or equal to threshold data, by for pixel be arranged to white level pixel, when upper pixel is grey
The absolute value of angle value and the difference of lower grey scale pixel value is more than threshold data or the difference of left grey scale pixel value and right grey scale pixel value
When absolute value is more than threshold data, by for pixel be arranged to black level pixel, and corresponding to output gray level image
Binary image;Picture smooth treatment equipment, it is connected with binary conversion treatment equipment, for receiving binary image, for two-value
Change each pixel in image, when more than half trip point in adjacent all pixels point be present, then by for
The gray value of pixel retains, otherwise, by for the gray value of pixel be arranged to white level pixel, and export binaryzation
Smoothed image corresponding to image;Medium filtering equipment, it is connected with image balance processing equipment, for receiving smoothed image, for
Each pixel carries out following processing to obtain filtering image as target pixel points in smoothed image:Existed with target pixel points
The centre of form of the filtration module of position alternatively in smoothed image takes out multiple pixels as multiple ginsengs in smoothed image
Pixel is examined, takes maximum in the pixel value of multiple reference image vegetarian refreshments and minimum value to be used as pixel maximum and pixel minimum
Value, the average value of pixel maximum and pixel minimum is determined using as pixel average, for each reference image vegetarian refreshments, such as
Its pixel value of fruit is less than pixel average, then replaces its pixel value with 0, if its pixel value is more than or equal to pixel average,
Retain its pixel value, finally exported the average value of the pixel value of multiple reference image vegetarian refreshments as the pixel value of target pixel points;
Solar energy detection device, for detecting current solar energy intensity in real time;Power supply unit, including solar powered device, electric power storage
Pond, switching switch and electric pressure converter, switching switch connect with solar energy detection device, solar powered device and battery respectively
Connect, when the insufficient and current solar energy intensity of the dump energy of battery is optionally greater than preset strength threshold value, be switched to the sun
Energy power supply device by solar powered device to be powered, and electric pressure converter and switching switch connection will be defeated by switching switch
The 5V voltage conversions entered are 3.3V voltages, wherein solar powered device includes solar energy photovoltaic panel;Wireless charging device, respectively
It is connected with solar energy detection device and battery, when the insufficient and current solar energy intensity of the dump energy of battery is less than default
During intensity, establish and connected to start wireless charging operation with neighbouring wireless charging terminal, wireless charging device also turns with voltage
Parallel operation is connected to realize voltage conversion;Digital compass, it is arranged in the front end instrument board of steamer, for detecting and exporting in real time
Steamer travel direction;Digital compass includes two-dimensional magnetic field sensor, for detecting simultaneously output wheel foot direction based on magnetic resistance,
Digital compass also includes electromagnetic feedback circuit, for eliminating the sensitive skew brought because of temperature change;AVR32 chips,
It is arranged in the front end instrument board of steamer, is connected respectively with digital compass and sunlight area data extraction equipment, for receiving
Area ratio corresponding to position corresponding to steamer travel direction, each sunlight subgraph difference and difference, and it is based on shipping firms
Sail direction, each sunlight subgraph corresponding position and corresponding area ratio determines driving control signal respectively respectively;It is more
Block steamer glass, it is separately positioned on multiple steamer near windows, the corresponding steamer window of each block of steamer glass, for right
Steamer window is answered to be opened or closed, multiple steamer windows include the skylight and several side windows of steamer;Multiple glass push
Device, the corresponding one block of steamer glass of each glass pusher, for controlling the push state of corresponding steamer glass;Switch drive
Device, it is connected with multiple glass pushers, is also connected with AVR32 chips, for receiving driving control signal, and is based on drive control
Signal carries out push control to multiple glass pushers;High-definition image collecting device, it is arranged in steamer, in front of steering position,
For carrying out IMAQ to steering position scene to export high-definition image;Sunlight area data extraction equipment, with medium filtering
Device network is connected to obtain filtering image;For each pixel in filtering image, when its gray value is in default sunlight
When between upper limit gray value and default sunlight lower limit gray value, sunlight pixel is determined that it is;By all sun in filtering image
The region of light image vegetarian refreshments composition is split from filtering image to obtain each sunlight subgraph;And based on each sunlight
Image determines its position in filtering image and calculates it to occupy the area ratio of filtering image;Export each sunlight subgraph
As respectively corresponding to position and respectively corresponding to area ratio.
More specifically, described based in the sunlight detection platform of big data processing:Solar energy detection device is arranged on wheel
At the top of ship.
More specifically, described based in the sunlight detection platform of big data processing:AVR32 chips include timing unit.
More specifically, described based in the sunlight detection platform of big data processing:AVR32 chips include memory cell.
More specifically, described based in the sunlight detection platform of big data processing:Memory cell is used to store default sun
Light upper limit gray value and default sunlight lower limit gray value.
More specifically, in the sunlight detection platform handled based on big data, in addition to:FLASH storage chips, use
In the default sunlight upper limit gray value of storage and default sunlight lower limit gray value.
Brief description of the drawings
Embodiment of the present invention is described below with reference to accompanying drawing, wherein:
Fig. 1 is the structure square frame of the sunlight detection platform based on big data processing according to embodiment of the present invention
Figure.
Reference:1 sunlight area data extraction equipment;2AVR32 chips;3 big data service systems;4 high-definition images are adopted
Collect equipment
Embodiment
The embodiment of the sunlight detection platform based on big data processing of the present invention is carried out in detail below with reference to accompanying drawings
Describe in detail bright.
In the prior art, detection of electrons of some vehicle manufacturers there is provided sunlight strength near steering position is set
Standby or sunlight scope electron detection device, the protection operator scheme of relevant device is determined according to testing result.
But above-mentioned electronics Types ofshading is also excessively simple, on the one hand, do not account for vehicle travels direction to sun
The influence that light irradiation is brought, cause shaded effects not high, on the other hand, do not account in sunshade policy selection, driver
Selection and general passenger selection exist conflict part, it is consistent, nothing to cause the sunshade means for the whole vehicles
Method allowing for driver and the demand of other passengers, such as the air-conditioner temperature and wind of the vehicles when sunlight is too strong, may be increased
Amount, occur so as to cause driver to obtain situation comfortable and that other passenger's body-sensings are excessively cool.
In order to overcome above-mentioned deficiency, the present invention has built a kind of sunlight detection platform based on big data processing, improves existing
Some electronics sunshade mechanism, is detected by the sunlight strength to steering position and sunlight scope, association is handed over
Logical instrument travel direction is the most key to determine sunshade strategy, it is determined that sunshade strategy be to be customized for driver, fully
In view of the different sun-shading requirements of driver He other passengers, so that all personnel to ride public transportation means provides more preferable use
Experience at family.
Fig. 1 is the structure square frame of the sunlight detection platform based on big data processing according to embodiment of the present invention
Figure, the platform include sunlight area data extraction equipment, AVR32 chips, big data service system and high-definition image collection and set
Standby, the image that big data service system and sunlight area data extraction equipment gather to high-definition image collecting device is carried out not successively
Same image procossing, AVR32 chips are connected with sunlight area data extraction equipment, defeated to receive sunlight area data extraction equipment
The processing result image gone out.
Then, continue to carry out further the concrete structure of the sunlight detection platform based on big data processing of the present invention
Explanation.
The platform includes:Big data service system, positioned at distal end, with high-definition image collecting device by network connection,
For receiving high-definition image and high-definition image being handled.
Big data service system includes:Gray processing processing equipment, it is connected by network with high-definition image collecting device, including
Channel parameters extraction unit, weighted value memory cell and gray value computing unit, channel parameters extraction unit are used to receive high definition
Image is weighted with extracting R passages pixel value, G passages pixel value and the channel B pixel value of each pixel in high-definition image
Value memory cell is used to prestore R channel weightings value, G channel weightings value and channel B weighted value, gray value computing unit point
It is not connected with channel parameters extraction unit and weighted value memory cell, for each pixel in high-definition image, by R passage pictures
The product of element value and R channel weighting values, G passages pixel value and the product and channel B pixel value and channel B of G channel weighting values
The gray value for the pixel that the product addition of weighted value is directed to obtaining, and based on the gray value of each pixel in high-definition image
Obtain gray level image corresponding to high-definition image;Wherein, R channel weightings value value is that 0.298839, G channel weighting value values are
0.586811, channel B weighted value value is 0.114350;Histogram distribution detection device, it is connected, uses with gray processing processing equipment
In reception gray level image, and grey level histogram processing is carried out to gray level image to obtain corresponding histogram image, straight
When bimodal distribution is presented in square figure image, global threshold selection signal is sent, otherwise, sends non-global threshold selection signal;Threshold value
Equipment is selected, is connected with histogram distribution detection device, for when receiving global threshold selection signal, by global threshold
128 as threshold datas export, when receiving non-global threshold selection signal, using neighbor pixel gray difference threshold 40 as
Threshold data exports.
Big data service system includes:Binary conversion treatment equipment, equipment and histogram distribution is selected to detect with threshold value respectively
Equipment connects, for when receiving global threshold selection signal, for each pixel in gray level image, working as gray scale
Value is when being more than or equal to threshold data, by for pixel be arranged to white level pixel, when gray value is less than threshold data,
By for pixel be arranged to black level pixel, and binary image corresponding to output gray level image;Binary conversion treatment
Equipment is additionally operable to when receiving non-global threshold selection signal, for each pixel in gray level image, is calculated and is hung down
Nogata to upwards apart from its 3 pixels pixel gray value as upper grey scale pixel value, calculate vertical direction downwards away from
From its 3 pixels pixel gray value as lower grey scale pixel value, calculated level direction is to the left apart from its 3 pixels
Pixel gray value as left grey scale pixel value, calculated level direction to the right apart from its 3 pixels pixel ash
Angle value is as right grey scale pixel value, when upper grey scale pixel value and the absolute value of the difference of lower grey scale pixel value are less than or equal to threshold data
And the absolute value of the difference of left grey scale pixel value and right grey scale pixel value is when being less than or equal to threshold data, by for pixel set
For white level pixel, when upper grey scale pixel value and the absolute value of the difference of lower grey scale pixel value is more than threshold data or left pixel is grey
When the absolute value of angle value and the difference of right grey scale pixel value is more than threshold data, by for pixel be arranged to black level pixel
Point, and binary image corresponding to output gray level image.
Big data service system includes:Picture smooth treatment equipment, it is connected with binary conversion treatment equipment, for receiving two-value
Change image, for each pixel in binary image, when the saltus step of more than half in adjacent all pixels point being present
During point, then by for the gray value of pixel retain, otherwise, by for the gray value of pixel be arranged to white level pixel
Point, and export smoothed image corresponding to binary image.
The platform includes:Medium filtering equipment, it is connected with image balance processing equipment, it is right for receiving smoothed image
Following processing 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 the filtration module of position alternatively in smoothed image takes out multiple pixels as multiple in smoothed image
Reference image vegetarian refreshments, take maximum in the pixel value of multiple reference image vegetarian refreshments and minimum value using as pixel maximum and pixel most
Small value, the average value of pixel maximum and pixel minimum is determined using 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 platform includes:Solar energy detection device, for detecting current solar energy intensity in real time;Power supply unit, bag
Include solar powered device, battery, switching switch and electric pressure converter, switching switch respectively with solar energy detection device, too
Positive energy power supply device connects with battery, when the insufficient and current solar energy intensity of the dump energy of battery is optionally greater than default
During intensity threshold, solar powered device is switched to be powered by solar powered device, and electric pressure converter connects with switching switch
Connect, using the 5V voltage conversions by input is switched by switching as 3.3V voltages, wherein solar powered device includes solar energy
Lie prostrate plate;Wireless charging device, it is connected respectively with solar energy detection device and battery, when the dump energy of battery is insufficient and works as
When preceding solar energy intensity is less than preset strength, establishes and connected to start wireless charging operation with neighbouring wireless charging terminal,
Wireless charging device is also connected with electric pressure converter to realize voltage conversion.
The platform includes:Digital compass, it is arranged in the front end instrument board of steamer, for detecting simultaneously output wheel in real time
Foot direction;Digital compass includes two-dimensional magnetic field sensor, for based on magnetic resistance detection and output wheel foot direction, electricity
Sub- compass also includes electromagnetic feedback circuit, for eliminating the sensitive skew brought because of temperature change.
The platform includes:AVR32 chips, be arranged in the front end instrument board of steamer, respectively with digital compass and sun
Light area data extraction equipment connect, for receive steamer travel direction, each sunlight subgraph respectively corresponding to position and
Area ratio corresponding to respectively, and based on steamer travel direction, each sunlight subgraph respectively corresponding to position and right respectively
The area ratio answered determines driving control signal.
The platform includes:Polylith steamer glass, it is separately positioned on multiple steamer near windows, each block of steamer glass pair
Answer a steamer window, for being opened or closed to corresponding steamer window, multiple steamer windows include steamer skylight and
Several side windows;Multiple glass pushers, the corresponding one block of steamer glass of each glass pusher, for controlling corresponding steamer glass
The push state of glass;Switch driver, it is connected with multiple glass pushers, is also connected with AVR32 chips, for receives driving control
Signal processed, and push control is carried out to multiple glass pushers based on driving control signal.
The platform includes:High-definition image collecting device, it is arranged in steamer, in front of steering position, for operator seat
Put scene and carry out IMAQ to export high-definition image.
The platform includes:Sunlight area data extraction equipment, it is connected with medium filtering device network to obtain filtering figure
Picture;For each pixel in filtering image, when its gray value is in default sunlight upper limit gray value and default sunlight lower limit
When between gray value, sunlight pixel is determined that it is;The region that all sunlight pixels in filtering image are formed is from filtering
Split in image to obtain each sunlight subgraph;And determine it in filtering image based on each sunlight subgraph
Position and calculate it and occupy the area ratio of filtering image;Export position and difference corresponding to each sunlight subgraph difference
Corresponding area ratio.
Alternatively, in the platform:Solar energy detection device is arranged at the top of steamer;AVR32 chips include timing list
Member;AVR32 chips include memory cell;Memory cell is used to store default sunlight upper limit gray value and default sunlight lower limit gray scale
Value;Also include:FLASH storage chips, for storing default sunlight upper limit gray value and default sunlight lower limit gray value.
In addition, big data, i.e. big data, referring to can not be caught in the time range that can be born with conventional software instrument
The data acquisition system caught, manage and handled, it is to need new tupe to have stronger decision edge, see clearly discovery power and flow
Optimization ability adapts to magnanimity, high growth rate and diversified information assets.
Write in Victor mayer-Schoenberg and Kenneth Cook《The big data epoch》Middle big data refers to not
The shortcut as random analysis method (sample investigation), and analyzed and processed using all data.The 5V features of big data
(IBM propositions):Volume (a large amount of), Velocity (high speed), Variety (various), Value (value), Veracity are (true
Property).
Can not be steering position for prior art using the sunlight detection platform based on big data processing of the present invention
Driver provides the technical problem of customization sunshade strategy, by carrying out IMAQ to the sunlight situation of steering position, draws
Enter a series of images processing equipment accurately to analyze the image collected, by analysis result combination vehicle travels direction
To determine the visor mode at steering position, it is determined that visor mode be specific to driver rather than all passengers, so as to from
The level of comfort to ride public transportation means is improved on the whole.
It is understood that although the present invention is disclosed as above with preferred embodiment, but above-described embodiment and it is not used to
Limit the present invention.For any those skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible changes and modifications are all made to technical solution of the present invention using the technology contents of the disclosure above, or are revised as
With the equivalent embodiment of change.Therefore, every content without departing from technical solution of the present invention, the technical spirit pair according to the present invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments, still fall within the scope of technical solution of the present invention protection
It is interior.