The sunlight detection platform processed based on big data
Technical field
The present invention relates to big data fields, particularly relate to a kind of sunlight detection platform processed based on big data.
Background technology
Owing to the steering position at driver place is typically in the front end of the vehicles, and taking at other passengers
Position is typically in the rear end of the vehicles, and therefore, the sunlight irradiated area that driver is born is greater than general passenger and is held
The sunlight irradiated area being subject to, and, the sunlight exposure rate that driver is born is greater than the sunlight photograph that general passenger is born
Penetrate intensity.As can be seen here, in the decision-making blocked for sunlight, the selection with general passenger that selects of driver is to there is conflict
Probability.
But, in prior art, the sunlight mechanism of blocking for driver is generally only and is simply to set a sunshading board,
By driver in the case of sunlight strength is too high, manually selecting and push sunshading board and protect, this mode is the most backward.With
Time, electronics sunshade means of the prior art are fairly simple, do not account for the selection of driver and the selection of general passenger
In place of conflict.
To this end, the present invention proposes the technical scheme of a kind of new driver's sunshade, it is possible in view of the selection of driver
In place of the conflict of the selection with general passenger, according to the concrete sunlight radiation situation of steering position, arrange one exclusively for driver
Overlap adaptive sunshade mechanism, thus solve the contradiction between the selection of driver and the selection of general passenger.
Summary of the invention
In order to solve the problems referred to above, the invention provides a kind of sunlight detection platform processed based on big data, by reality
Time detection steering position concrete sunlight radiation situation, introduce multiple image processing equipment concrete sunlight radiation situation is carried out fixed
Component analysis, judges the travel direction of the vehicles simultaneously, thus according to travel direction, position that sunlight subimage is corresponding
And the area ratio of correspondence determines sunshade or the drive control signal of heat extraction equipment near steering position.
According to an aspect of the present invention, it is provided that a kind of sunlight detection platform processed based on big data, described platform bag
Include sunlight area data extraction equipment, AVR32 chip, big data service system and high-definition image collecting device, big data, services
System and sunlight area data extraction equipment carry out different image procossing successively to the image of high-definition image collecting device collection,
AVR32 chip is connected with sunlight area data extraction equipment, to receive the image procossing of sunlight area data extraction equipment output
Result.
More specifically, in the described sunlight detection platform processed based on big data, including: big data service system, position
In far-end, it is connected by network with high-definition image collecting device, is used for receiving high-definition image and high-definition image being processed, greatly
Data service system includes: gray processing processing equipment, is connected with high-definition image collecting device by network, carries including channel parameters
Taking unit, weighted value memory element and gray value computing unit, channel parameters extraction unit is used for receiving high-definition image to extract
Go out the R passage pixel value of each pixel in high-definition image, G passage pixel value and channel B pixel value, weighted value memory element
For having prestored R channel weighting value, G channel weighting value and channel B weighted value, gray value computing unit is joined with passage respectively
Number extraction unit and weighted value memory element connect, and for each pixel in high-definition image, are led to R by R passage pixel value
The product of the product of higher, G passage pixel value and G channel weighting value and channel B pixel value are taken advantage of with channel B weighted value
Long-pending be added with obtain for the gray value of pixel, and obtain high definition figure based on the gray value of each pixel in high-definition image
As corresponding gray level image;Wherein, R channel weighting value value is 0.298839, and G channel weighting value value is 0.586811, B
Channel weighting value value is 0.114350;Histogram distribution detection equipment, is connected with gray processing processing equipment, is used for receiving gray scale
Change image, and gray level image is carried out grey level histogram process to obtain corresponding histogram image, histogram image in
During existing bimodal distribution, send global threshold and select signal, otherwise, send non-global threshold and select signal;Threshold value selects equipment, with
Histogram distribution detection equipment connects, for when receiving global threshold and selecting signal, using global threshold 128 as number of threshold values
According to output, when receiving non-global threshold and selecting signal, neighbor pixel gray difference threshold 40 is exported as threshold data;
Binary conversion treatment equipment, selects equipment and histogram distribution detection equipment to be connected, for receiving overall situation threshold respectively with threshold value
When value selects signal, for each pixel in gray level image, when gray value is more than or equal to threshold data, will be for
Pixel be set to white level pixel, when gray value less than threshold data time, by for pixel be set to black level
Pixel, and the binary image that output gray level image is corresponding;Binary conversion treatment equipment is additionally operable to receiving non-overall situation threshold
When value selects signal, for each pixel in gray level image, calculate vertical direction upwards apart from its 3 pixels
The gray value of pixel as upper grey scale pixel value, calculates vertical direction downwards apart from the gray scale of pixel of its 3 pixels
Value as lower grey scale pixel value, calculated level direction to the left apart from the gray value of pixel of its 3 pixels as left pixel
Gray value, calculated level direction to the right apart from the gray value of pixel of its 3 pixels as right grey scale pixel value, when upper picture
The absolute value of the difference of element 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
Value difference absolute value less than or equal to threshold data time, by for pixel be set to white level pixel, when upper pixel ash
The absolute value of the difference of angle value and lower grey scale pixel value is more than the difference of threshold data or left grey scale pixel value and right grey scale pixel value
When absolute value is more than threshold data, by for pixel be set to black level pixel, and output gray level image is corresponding
Binary image;Picture smooth treatment equipment, is connected with binary conversion treatment equipment, is used for receiving binary image, for two-value
Change each pixel in image, when adjacent all pixels exist the trip point of more than half, then by for
The gray value of pixel retains, otherwise, by for the gray value of pixel be set to white level pixel, and export binaryzation
The smoothed image that image is corresponding;Medium filtering equipment, is connected with image balance processing equipment, is used for receiving smoothed image, for
In smoothed image, each pixel carries out following process to obtain filtering image as target pixel points: exist with target pixel points
Multiple pixel is taken out as multiple ginsengs as the centre of form of the filtration module selected in smoothed image in position in smoothed image
Examine pixel, take the maximum in the pixel value of multiple reference image vegetarian refreshments and minima using minimum as pixel maximum and pixel
Value, determine the meansigma methods of pixel maximum and pixel minimum using as pixel average, for each reference image vegetarian refreshments, as
Really its pixel value is less than pixel average, then replace its pixel value with 0, if its pixel value is more than or equal to pixel average, then
Retain its pixel value, finally the meansigma methods of the pixel value of multiple reference image vegetarian refreshments is exported as the pixel value of target pixel points;
Solar energy detection equipment, detects 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 is respectively with solar energy detection equipment, solar powered device and accumulator even
Connect, when the solar energy intensity that the dump energy of accumulator is not enough and current is optionally greater than preset strength threshold value, be switched to the sun
Energy power supply device is to be powered by solar powered device, and electric pressure converter is connected with switching switch, switching defeated by switching
The 5V voltage entered is converted to 3.3V voltage, and the most solar powered device includes solar energy photovoltaic panel;Wireless charging device, respectively
It is connected with solar energy detection equipment and accumulator, presets when the solar energy intensity that the dump energy of accumulator is not enough and current is less than
During intensity, setting up with neighbouring wireless charging terminal and be connected to start wireless charging operation, wireless charging device also turns with voltage
Parallel operation connects to realize voltage conversion;Digital compass, is arranged in the front end instrumental panel of steamer, is used for detecting in real time and exporting
Steamer travel direction;Digital compass includes two-dimensional magnetic field sensor, for detecting and output wheel foot direction based on magnetic resistance,
Digital compass also includes electro-magnetic feedback circuit, for eliminating the sensitive skew brought because of variations in temperature;AVR32 chip,
It is arranged in the front end instrumental panel of steamer, is connected with digital compass and sunlight area data extraction equipment respectively, is used for receiving
The position of steamer travel direction, each sunlight subimage correspondence respectively and the most corresponding area ratio, and based on shipping firms
Sail direction, each sunlight subimage position corresponding respectively and area ratio corresponding respectively determines drive control signal;Many
Block steamer glass, is separately positioned on multiple steamer near windows, and each piece of corresponding steamer window of steamer glass, for right
Answering steamer window to open or close, multiple steamer windows include 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 propelling movement state of corresponding steamer glass;Switch drive
Device, is connected with multiple glass pushers, is also connected with AVR32 chip, is used for receiving drive control signal, and based on driving control
Multiple glass pushers are carried out pushing control by signal;High-definition image collecting device, in being arranged on steamer, steering position front,
For steering position scene being carried out image acquisition to export high-definition image;Sunlight area data extraction equipment, with medium filtering
Device network connects to obtain filtering image;For each pixel in filtering image, when its gray value is at default sunlight
Time between upper limit gray value and default sunlight lower limit gray value, determine that it is sunlight pixel;By all sun in filtering image
The region of light image vegetarian refreshments composition splits to obtain each sunlight subimage from filtering image;And based on each sunlight
Image determines its position in filtering image and calculates its area ratio occupying filtering image;Export each sunlight subgraph
As the most corresponding position and the most corresponding area ratio.
More specifically, in the described sunlight detection platform processed based on big data: solar energy detection equipment is arranged on wheel
Ship top.
More specifically, in the described sunlight detection platform processed based on big data: AVR32 chip includes timing unit.
More specifically, in the described sunlight detection platform processed based on big data: AVR32 chip includes memory element.
More specifically, in the described sunlight detection platform processed based on big data: memory element is used for storing presets sun
Light upper limit gray value and default sunlight lower limit gray value.
More specifically, in the described sunlight detection platform processed based on big data, also include: FLASH storage chip, use
Sunlight upper limit gray value and default sunlight lower limit gray value is preset in storage.
Accompanying drawing explanation
Below with reference to accompanying drawing, embodiment of the present invention are described, wherein:
Fig. 1 is the structure square frame according to the sunlight detection platform processed based on big data shown in embodiment of the present invention
Figure.
Reference: 1 sunlight area data extraction equipment;2AVR32 chip;3 big data service systems;4 high-definition images are adopted
Collection equipment
Detailed description of the invention
Below with reference to accompanying drawings the embodiment of the sunlight detection platform processed based on big data of the present invention is carried out in detail
Describe in detail bright.
In prior art, some vehicle manufacturer are provided with the detection of electrons of sunlight strength near steering position and set
Standby or the electron detection device of sunlight scope, determines the protection operator scheme of relevant device according to testing result.
But, above-mentioned electronics Types ofshading is the simplest, on the one hand, do not account for vehicle travels direction to sun
Light irradiates the impact brought, and causes shaded effects the highest, on the other hand, does not accounts for when sunshade policy selection, driver
Select and general passenger selection exist conflict in place of, it is consistent for causing the sunshade means for the whole vehicles, nothing
Method allowing for driver and the demand of other passengers, such as, when sunlight is too strong, may strengthen air-conditioner temperature and the wind of the vehicles
Amount, thus cause driver to obtain comfortable and that other passenger's body-sensing are the coolest situation and occur.
In order to overcome above-mentioned deficiency, the present invention has built a kind of sunlight detection platform processed based on big data, improves existing
Some electronics sunshades mechanism, by detecting the sunlight strength of steering position and sunlight scope, hands over association
Logical instrument travel direction is to determine sunshade strategy, the most key, and the sunshade strategy determined customizes for driver, fully
In view of the different sun-shading requirements of driver He other passengers, thus all personnel for riding public transportation means provides preferably use
Family is experienced.
Fig. 1 is the structure square frame according to the sunlight detection platform processed based on big data shown in embodiment of the present invention
Figure, described platform includes that sunlight area data extraction equipment, AVR32 chip, big data service system and high-definition image collection set
Standby, the image of high-definition image collecting device collection is carried out not by big data service system and sunlight area data extraction equipment successively
Same image procossing, AVR32 chip is connected with sunlight area data extraction equipment, defeated to receive sunlight area data extraction equipment
The processing result image gone out.
Then, the concrete structure continuing the sunlight detection platform processed based on big data to the present invention is carried out further
Explanation.
Described platform includes: big data service system, is positioned at far-end, is connected by network with high-definition image collecting device,
For receiving high-definition image and high-definition image being processed.
Big data service system includes: gray processing processing equipment, is connected with high-definition image collecting device by network, including
Channel parameters extraction unit, weighted value memory element and gray value computing unit, channel parameters extraction unit is used for receiving high definition
Image, to extract the R passage pixel value of each pixel in high-definition image, G passage pixel value and channel B pixel value, weights
Value memory element is used for having prestored R channel weighting value, G channel weighting value and channel B weighted value, and gray value computing unit divides
It is not connected with channel parameters extraction unit and weighted value memory element, for each pixel in high-definition image, by R passage picture
Element is worth the product with the product of R channel weighting value, G passage pixel value and G channel weighting value and channel B pixel value and channel B
The product addition of weighted value with obtain for the gray value of pixel, and based on the gray value of each pixel in high-definition image
Obtain the gray level image that high-definition image is corresponding;Wherein, R channel weighting value value is 0.298839, and G channel weighting value value is
0.586811, channel B weighted value value is 0.114350;Histogram distribution detection equipment, is connected with gray processing processing equipment, uses
In receiving gray level image, and gray level image is carried out the grey level histogram process histogram image with acquisition correspondence, directly
When side's figure image presents bimodal distribution, send global threshold and select signal, otherwise, send non-global threshold and select signal;Threshold value
Selection equipment, is connected with histogram distribution detection equipment, for when receiving global threshold and selecting signal, by global threshold
128 as threshold data export, receive non-global threshold select signal time, using neighbor pixel gray difference threshold 40 as
Threshold data exports.
Big data service system includes: binary conversion treatment equipment, selects equipment and histogram distribution detection respectively with threshold value
Equipment connects, for when receiving global threshold and selecting signal, for each pixel in gray level image, working as gray scale
Value more than or equal to threshold data time, by for pixel be set to white level pixel, when gray value less than threshold data time,
By for pixel be set to black level pixel, and the binary image that output gray level image is corresponding;Binary conversion treatment
Equipment is additionally operable to, when receiving non-global threshold and selecting signal, for each pixel in gray level image, calculate and hang down
Nogata to upwards apart from the gray value of pixel of its 3 pixels as upper grey scale pixel value, calculate vertical direction downwards away from
From the gray value of pixel of its 3 pixels as lower grey scale pixel value, calculated level direction is to the left apart from its 3 pixels
The gray value of pixel as left grey scale pixel value, calculated level direction is to the right apart from the ash of pixel of its 3 pixels
Angle value is 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 or equal to threshold data
And the absolute value of the difference of left grey scale pixel value and right grey scale pixel value less than or equal to threshold data time, by for pixel arrange
For white level pixel, when the absolute value of upper grey scale pixel value and the difference of lower grey scale pixel value is more than threshold data or left pixel ash
The absolute value of the difference of angle value and right grey scale pixel value more than threshold data time, by for pixel be set to black level pixel
Point, and the binary image that output gray level image is corresponding.
Big data service system includes: picture smooth treatment equipment, is connected with binary conversion treatment equipment, is used for receiving two-value
Change image, for each pixel in binary image, when adjacent all pixels exist more than half saltus step
During point, then by for the gray value of pixel retain, otherwise, by for the gray value of pixel be set to white level pixel
Point, and export the smoothed image that binary image is corresponding.
Described platform includes: medium filtering equipment, is connected with image balance processing equipment, is used for receiving smoothed image, right
In smoothed image, each pixel carries out following process to obtain filtering image as target pixel points: with target pixel points
Multiple pixel is taken out as multiple as the centre of form of the filtration module selected in smoothed image in position in smoothed image
Reference image vegetarian refreshments, takes the maximum in the pixel value of multiple reference image vegetarian refreshments and minima using as pixel maximum and pixel
Little value, determine the meansigma methods of pixel maximum and pixel minimum using as pixel average, for each reference image vegetarian refreshments,
If its pixel value is less than pixel average, then replace its pixel value with 0, if its pixel value is more than or equal to pixel average,
Then retaining its pixel value, finally the meansigma methods using the pixel value of multiple reference image vegetarian refreshments is defeated as the pixel value of target pixel points
Go out.
Described platform includes: solar energy detection equipment, detects current solar energy intensity in real time;Power supply unit, bag
Include solar powered device, accumulator, switching switch and electric pressure converter, switching switch respectively with solar energy detection equipment, too
Sun energy power supply device and accumulator connect, and preset when the solar energy intensity that the dump energy of accumulator is not enough and current is optionally greater than
During intensity threshold, being switched to solar powered device to be powered by solar powered device, electric pressure converter is with switching switch even
Connecing, will be converted to 3.3V voltage by the 5V voltage of switching switch input, the most solar powered device includes solar energy
Volt plate;Wireless charging device, is connected with solar energy detection equipment and accumulator respectively, when the dump energy of accumulator is not enough and works as
When front solar energy intensity is less than preset strength, sets up with neighbouring wireless charging terminal and be connected to start wireless charging operation,
Wireless charging device is also connected with electric pressure converter to realize voltage conversion.
Described platform includes: digital compass, is arranged in the front end instrumental panel of steamer, for detection output wheel in real time
Foot direction;Digital compass includes two-dimensional magnetic field sensor, for based on magnetic resistance detection output wheel foot direction, electricity
Sub-compass also includes electro-magnetic feedback circuit, for eliminating the sensitive skew brought because of variations in temperature.
Described platform includes: AVR32 chip, is arranged in the front end instrumental panel of steamer, respectively with digital compass and sun
Light area data extraction equipment connects, for receive the respectively corresponding position of steamer travel direction, each sunlight subimage and
Respectively corresponding area ratio, and based on position corresponding to steamer travel direction, each sunlight subimage and the most right
The area ratio answered determines drive control signal.
Described platform includes: polylith steamer glass, is separately positioned on multiple steamer near windows, each block of steamer glass pair
Answer a steamer window, for corresponding steamer window is opened or closed, multiple steamer windows include steamer skylight and
Several side windows;Multiple glass pushers, the corresponding one block of steamer glass of each glass pusher, it is used for controlling corresponding steamer glass
The propelling movement state of glass;Switch driver, is connected with multiple glass pushers, is also connected with AVR32 chip, is used for receiving driving control
Signal processed, and carry out pushing control to multiple glass pushers based on drive control signal.
Described platform includes: high-definition image collecting device, in being arranged on steamer, steering position front, for operator seat
Put scene and carry out image acquisition to export high-definition image.
Described platform includes: sunlight area data extraction equipment, is connected with medium filtering device network to obtain filtering figure
Picture;For each pixel in filtering image, when its gray value is at default sunlight upper limit gray value and default sunlight lower limit
Time between gray value, determine that it is sunlight pixel;The region formed by all sunlight pixels in filtering image is from filtering
Image splits obtain each sunlight subimage;And determine that it is in filtering image based on each sunlight subimage
Position and calculate its area ratio occupying filtering image;Export position corresponding to each sunlight subimage and difference
Corresponding area ratio.
Alternatively, in described platform: solar energy detection equipment is arranged on steamer top;AVR32 chip includes timing list
Unit;AVR32 chip includes memory element;Memory element is used for storing default sunlight upper limit gray value and default sunlight lower limit gray scale
Value;Also include: FLASH storage chip, be used for storing default sunlight upper limit gray value and default sunlight lower limit gray value.
It addition, big data, i.e. big data, refer to catch with conventional software instrument in the time range that can bear
The data acquisition system caught, manage and process, is to need new tupe just can have higher decision edge, see clearly discovery power and flow process
Optimization ability adapts to magnanimity, high growth rate and diversified information assets.
In " the big data age " that Victor mayer-Schoenberg and Kenneth Cook are write, big data refer to not
With random analysis method (sampling survey) such shortcut, and all data are used to be analyzed processing.The 5V feature of big data
(IBM proposition): Volume (in a large number), Velocity (at a high speed), Variety (various), Value (value), Veracity are (truly
Property).
Use the sunlight detection platform processed based on big data of the present invention, cannot be steering position for prior art
Driver provides the technical problem of customization sunshade strategy, by the sunlight radiation situation of steering position is carried out image acquisition, draws
Enter a series of images processing equipment the image collected accurately is analyzed, analysis result is combined vehicle travels direction
To determine the visor mode at steering position, the visor mode determined is specific to driver rather than all passengers, thus from
Improve the level of comfort ridden public transportation means on the whole.
Although it is understood that the present invention discloses as above with preferred embodiment, but above-described embodiment being not used to
Limit the present invention.For any those of ordinary skill in the art, without departing under technical solution of the present invention ambit,
Technical solution of the present invention is made many possible variations and modification by the technology contents that all may utilize the disclosure above, or is revised as
Equivalent embodiments with change.Therefore, every content without departing from technical solution of the present invention, according to the technical spirit pair of the present invention
Any simple modification made for any of the above embodiments, equivalent variations and modification, all still fall within the scope of technical solution of the present invention protection
In.