Summary of the invention
In order to solve the technical matters that prior art exists, the invention provides a kind of intelligent player method of music of communication Network Based, first be that the music file that in motor vehicle, each is newly uploaded is classified by Internet communication technology, then by the degree of fatigue of the real-time monitoring driving person of image processing techniques, different genres of music file is selected automatically to play according to different degree of fatigues, and, when rear car or front truck abnormal state, can the broadcasting of interrupt music file, send corresponding alerting signal simultaneously, thus improve drive safety.
According to an aspect of the present invention, provide a kind of intelligent player method of music of communication Network Based, the method comprises the following steps: 1) provide a kind of music of communication Network Based intelligent Play System, be arranged in motor vehicle, described Play System comprises music searching device and music player, described music searching device is used for the music type searching for music file in internet, described music player is connected with described music searching device signal, for playing described music file based on described music type; And 2) use described Play System to play.
More specifically, in the intelligent Play System of the music of described communication Network Based, also comprise: music file memory device, be arranged in the panel board of motor vehicle, for receiving each music file that automobile driver is inputted by web download or USB interface, and when often receiving a new music file, the title of new music file and singer are sent to music searching device, to receive the music type that music searching device returns, according to the music type returned, classification is carried out to new music file and store, FLASH memory device, be arranged in the panel board of motor vehicle, for storing default rate of change threshold value, prefixed time interval, eyelid upper limit gray threshold, eyelid lower limit gray threshold and opening degree threshold value, described eyelid upper limit gray threshold and described eyelid lower limit gray threshold are used for eyelid and background separation from image, CMOS camera, is arranged on the front at automobile driver seat, and for carrying out image acquisition to the face of automobile driver, to obtain face-image, the resolution of described face-image is 1920 × 1080, image recognition apparatus, is arranged in the panel board of motor vehicle, is connected with described CMOS camera, receives described face-image, identifies to described face-image the frazzle obtaining driver, described image recognition apparatus comprises image filtering unit, edge enhancement unit, gray processing processing unit, eyelid extraction unit and frazzle analytic unit, described image filtering unit is connected with described CMOS camera, for carrying out the medium filtering process of 5 pixel × 5 pixel filter windows to described face-image, with output filtering face-image, described edge enhancement unit is connected with described image filtering unit, process is strengthened for performing edge to described filtering face-image, to obtain edge enhanced images, described gray processing processing unit is connected with described edge enhancement unit, for performing gray processing process to described edge enhanced images, to obtain gray level image, described eyelid extraction unit is connected respectively with described gray processing processing unit and described FLASH memory device, the pixel identification of gray-scale value in described gray level image between described eyelid upper limit gray threshold and described eyelid lower limit gray threshold is formed eyelid pattern, described frazzle analytic unit is connected respectively with described eyelid extraction unit and described FLASH memory device, to extract in described eyelid pattern palpebra inferior interval using as eyelid opening degree, the mean value calculating eyelid opening degree is within a preset time interval using as real-time eyelid opening degree mean value, when described real-time eyelid opening degree mean value is less than or equal to described opening degree threshold value, export driver's signal tired out, when described real-time eyelid opening degree mean value is less than or equal to 50% of described opening degree threshold value, export driver's extremely signal tired out, when described real-time eyelid opening degree mean value is greater than described opening degree threshold value, export driver to regain consciousness signal, power-supply unit, comprise solar powered device, vehicle battery, change-over switch and electric pressure converter, described change-over switch is connected respectively with described solar powered device and described vehicle battery, dump energy according to vehicle battery determines whether be switched to described solar powered device to be powered by described solar powered device, described electric pressure converter is connected with described change-over switch, with the 5V voltage transitions will inputted by change-over switch for 3.3V voltage, rear car condition detecting device, be arranged on motor vehicle tail, be connected with described FLASH memory device, comprise infra-red ray transmitting unit and infrared receiver unit, launch infrared ray and infrared receiver according to infra-red ray transmitting unit to receive the rear car mistiming be reflected back between infrared ray and determine rear car distance, and when rear car distance reduces and rear car range rate is more than or equal to default rate of change threshold value, send rear car abnormal state signal, Freescale IMX6 processor, be arranged in the panel board of motor vehicle, for with described music file memory device, described image recognition apparatus, described rear car condition detecting device is connected respectively with described music player, when receive described driver regain consciousness signal time, control described music player with the music file of music type easy in music file memory device described in shuffle, when receiving described driver signal tired out, control described music player to rouse oneself the music file of music type in music file memory device described in shuffle, when receiving described driver extreme signal tired out, control described music player with the music file of music type hot in music file memory device described in shuffle, described Freescale IMX6 processor is also for when receiving described rear car abnormal state signal, control described music player to stop playing the music file in described music file memory device, play that described music file memory device prestores, corresponding with rear car abnormal state signal alarm voice file simultaneously, described music searching device, be connected with described music file memory device, for receiving the title and singer be sent to internet that described music file memory device exports, with the music type of search name and music file corresponding to singer, described music type comprise hot, to rouse oneself and easy, described music searching device is also for facilitating automobile driver from network downloading of music files, wherein, described image filtering unit, described edge enhancement unit, described gray processing processing unit, described eyelid extraction unit and described frazzle analytic unit adopt the fpga chip of different model to realize, described music searching device comprises network communication interface and mode of operation arranges device, described network communication interface is the one in 3G mobile communication interface or 4G mobile communication interface, described mode of operation arranges device and is connected with described network communication interface, for arranging the mode of operation of described network communication interface for search music type pattern or download music files pattern.
More specifically, in the intelligent Play System of the music of described communication Network Based, also comprise: automobile driver set device, be connected with described FLASH memory device, for the operation according to automobile driver, receive the default rate of change threshold value of automobile driver input, prefixed time interval, eyelid upper limit gray threshold, eyelid lower limit gray threshold and opening degree threshold value stored in described FLASH memory device.
More specifically, in the intelligent Play System of the music of described communication Network Based: alternatively, described image filtering unit, described edge enhancement unit, described gray processing processing unit, described eyelid extraction unit and described frazzle analytic unit are integrated in same fpga chip.
More specifically, in the intelligent Play System of the music of described communication Network Based, also comprise: front truck condition detecting device, be arranged on motor vehicle front end, be connected with described FLASH memory device, comprise infra-red ray transmitting unit and infrared receiver unit, launch infrared ray and infrared receiver according to infra-red ray transmitting unit to receive the mistiming that rear car is reflected back between infrared ray and determine leading vehicle distance, and when leading vehicle distance reduces and leading vehicle distance rate of change is more than or equal to default rate of change threshold value, send front truck abnormal state signal.
More specifically, in the intelligent Play System of the music of described communication Network Based: described Freescale IMX6 processor is also connected with described front truck condition detecting device, for when receiving described front truck abnormal state signal, control described music player to stop playing the music file in described music file memory device, play that described music file memory device prestores, corresponding with front truck abnormal state signal alarm voice file simultaneously.
More specifically, in the intelligent Play System of the music of described communication Network Based: described music player is MP3 player.
Embodiment
Below with reference to accompanying drawings the embodiment of the intelligent Play System of the music of communication Network Based of the present invention is described in detail.
For automobile driver, different fatigue states is there will be in driving procedure, suitable music is selected to play, can pacify or swash the driver that wakes up, avoid traffic accident generation, but, in prior art, lack and automatically select dissimilar music file to carry out the technical scheme play according to driver fatigue state.
In order to overcome above-mentioned deficiency, the present invention has built a kind of intelligent Play System of music of communication Network Based, based on the combination of image recognition, internet communication and infrared detection technology, effectively solves the problems of the technologies described above.
Fig. 1 is the block diagram of the intelligent Play System of music of the communication Network Based illustrated according to an embodiment of the present invention, described Play System is arranged in motor vehicle, comprise music searching device 1 and music player 2, described music searching device 1 for searching for the music type of music file in internet, described music player 2 is connected with described music searching device 1 signal, for playing described music file based on described music type.
Then, continue to be further detailed the concrete structure of the intelligent Play System of the music of communication Network Based of the present invention.
Described Play System also comprises: music file memory device, be arranged in the panel board of motor vehicle, for receiving each music file that automobile driver is inputted by web download or USB interface, and when often receiving a new music file, the title of new music file and singer are sent to music searching device 1, to receive the music type that music searching device 2 returns, according to the music type returned, classification is carried out to new music file and store.
Described Play System also comprises: FLASH memory device, be arranged in the panel board of motor vehicle, for storing default rate of change threshold value, prefixed time interval, eyelid upper limit gray threshold, eyelid lower limit gray threshold and opening degree threshold value, described eyelid upper limit gray threshold and described eyelid lower limit gray threshold are used for eyelid and background separation from image.
Described Play System also comprises: CMOS camera, is arranged on the front at automobile driver seat, and for carrying out image acquisition to the face of automobile driver, to obtain face-image, the resolution of described face-image is 1920 × 1080.
Described Play System also comprises: image recognition apparatus, is arranged in the panel board of motor vehicle, is connected with described CMOS camera, receives described face-image, identifies to described face-image the frazzle obtaining driver;
Described image recognition apparatus comprises image filtering unit, edge enhancement unit, gray processing processing unit, eyelid extraction unit and frazzle analytic unit, described image filtering unit is connected with described CMOS camera, for carrying out the medium filtering process of 5 pixel × 5 pixel filter windows to described face-image, with output filtering face-image, described edge enhancement unit is connected with described image filtering unit, process is strengthened for performing edge to described filtering face-image, to obtain edge enhanced images, described gray processing processing unit is connected with described edge enhancement unit, for performing gray processing process to described edge enhanced images, to obtain gray level image, described eyelid extraction unit is connected respectively with described gray processing processing unit and described FLASH memory device, the pixel identification of gray-scale value in described gray level image between described eyelid upper limit gray threshold and described eyelid lower limit gray threshold is formed eyelid pattern, described frazzle analytic unit is connected respectively with described eyelid extraction unit and described FLASH memory device, to extract in described eyelid pattern palpebra inferior interval using as eyelid opening degree, the mean value calculating eyelid opening degree is within a preset time interval using as real-time eyelid opening degree mean value, when described real-time eyelid opening degree mean value is less than or equal to described opening degree threshold value, export driver's signal tired out, when described real-time eyelid opening degree mean value is less than or equal to 50% of described opening degree threshold value, export driver's extremely signal tired out, when described real-time eyelid opening degree mean value is greater than described opening degree threshold value, export driver to regain consciousness signal.
Described Play System also comprises: power-supply unit, comprise solar powered device, vehicle battery, change-over switch and electric pressure converter, described change-over switch is connected respectively with described solar powered device and described vehicle battery, dump energy according to vehicle battery determines whether be switched to described solar powered device to be powered by described solar powered device, described electric pressure converter is connected with described change-over switch, with the 5V voltage transitions will inputted by change-over switch for 3.3V voltage.
Described Play System also comprises: rear car condition detecting device, be arranged on motor vehicle tail, be connected with described FLASH memory device, comprise infra-red ray transmitting unit and infrared receiver unit, launch infrared ray and infrared receiver according to infra-red ray transmitting unit to receive the rear car mistiming be reflected back between infrared ray and determine rear car distance, and when rear car distance reduces and rear car range rate is more than or equal to default rate of change threshold value, send rear car abnormal state signal.
Described Play System also comprises: Freescale IMX6 processor, be arranged in the panel board of motor vehicle, for with described music file memory device, described image recognition apparatus, described rear car condition detecting device is connected respectively with described music player 2, when receive described driver regain consciousness signal time, control described music player 2 with the music file of music type easy in music file memory device described in shuffle, when receiving described driver signal tired out, control described music player 2 to rouse oneself the music file of music type in music file memory device described in shuffle, when receiving described driver extreme signal tired out, control described music player 2 with the music file of music type hot in music file memory device described in shuffle,
Described Freescale IMX6 processor is also for when receiving described rear car abnormal state signal, control described music player 2 to stop playing the music file in described music file memory device, play that described music file memory device prestores, corresponding with rear car abnormal state signal alarm voice file simultaneously.
Described music player 2 realizes signal with described music searching device 1 by music file memory device and Freescale IMX6 processor and is connected.
Described music searching device 1 is connected with described music file memory device, for receiving the title and singer be sent to internet that described music file memory device exports, with the music type of search name and music file corresponding to singer, described music type comprise hot, to rouse oneself and easy, described music searching device is also for facilitating automobile driver from network downloading of music files.
Wherein, described image filtering unit, described edge enhancement unit, described gray processing processing unit, described eyelid extraction unit and described frazzle analytic unit adopt the fpga chip of different model to realize; Described music searching device 1 comprises network communication interface and mode of operation arranges device, described network communication interface is the one in 3G mobile communication interface or 4G mobile communication interface, described mode of operation arranges device and is connected with described network communication interface, for arranging the mode of operation of described network communication interface for search music type pattern or download music files pattern.
Alternatively, described Play System also comprises: automobile driver set device, be connected with described FLASH memory device, for the operation according to automobile driver, receive the default rate of change threshold value of automobile driver input, prefixed time interval, eyelid upper limit gray threshold, eyelid lower limit gray threshold and opening degree threshold value stored in described FLASH memory device; Alternatively, described image filtering unit, described edge enhancement unit, described gray processing processing unit, described eyelid extraction unit and described frazzle analytic unit are integrated in same fpga chip; Described Play System also comprises: front truck condition detecting device, be arranged on motor vehicle front end, be connected with described FLASH memory device, comprise infra-red ray transmitting unit and infrared receiver unit, launch infrared ray and infrared receiver according to infra-red ray transmitting unit to receive the mistiming that rear car is reflected back between infrared ray and determine leading vehicle distance, and when leading vehicle distance reduces and leading vehicle distance rate of change is more than or equal to default rate of change threshold value, send front truck abnormal state signal; Described Freescale IMX6 processor is also connected with described front truck condition detecting device, for when receiving described front truck abnormal state signal, control described music player 2 to stop playing the music file in described music file memory device, play that described music file memory device prestores, corresponding with front truck abnormal state signal alarm voice file simultaneously; And described music player 2 is MP3 player.
In addition, FPGA (Field-Programmable Gate Array), i.e. field programmable gate array, he is the product further developed on the basis of the programming devices such as PAL, GAL, CPLD.He occurs as a kind of semi-custom circuit in special IC (ASIC) field, has both solved the deficiency of custom circuit, overcomes again the shortcoming that original programming device gate circuit number is limited.
With the circuit design that hardware description language (Verilog or VHDL) completes, can through simple comprehensive and layout, being burned onto fast on FPGA and testing, is the technology main flow of modern IC designs checking.These can be edited element and can be used to realize some basic logic gates (such as AND, OR, XOR, NOT) or more more complex combination function such as demoder or mathematical equation.Inside most FPGA, in these editable elements, also comprise memory cell such as trigger (Flip-flop) or other more complete block of memory.System designer can be coupled together the logical block of FPGA inside by editable connection as required, just looks like that a breadboard has been placed in a chip.One dispatch from the factory after the logical block of finished product FPGA can change according to deviser with being connected, so FPGA can complete required logic function.
FPGA is in general slow than the speed of ASIC (special IC), realizes same function ratio ASIC circuit area and wants large.But they also have a lot of advantages such as can finished product fast, can be modified the mistake in correction program and more cheap cost.Manufacturer also may provide the FPGA of cheap still edit capability difference.Because these chips have poor can edit capability, so exploitations of these designs complete on common FPGA, then design is transferred to one and is similar on the chip of ASIC.Another method is with CPLD (Complex Programmable LogicDevice, CPLD).The exploitation of FPGA has a great difference relative to the exploitation of conventional P C, single-chip microcomputer.FPGA, based on concurrent operation, realizes with hardware description language; Very large difference is had compared to the sequential operation of PC or single-chip microcomputer (no matter being von Neumann structure or Harvard structure).
As far back as 1980 mid-nineties 90s, FPGA takes root in PLD equipment.CPLD and FPGA includes the Programmadle logic unit of some relatively large amount.The density of CPLD logic gate is between several thousand to several ten thousand logical blocks, and FPGA normally arrives millions of several ten thousand.The key distinction of CPLD and FPGA is their system architecture.CPLD is a somewhat restrictive structure.This structure is arranged by the logical groups of one or more editable result sum and forms with the register of the locking of some relatively small amounts.Such result lacks editor's dirigibility, but but have the time delay and logical block that can estimate to the advantage of linkage unit height ratio.And FPGA has a lot of linkage units, although allow him edit more flexibly like this, structure is complicated many.
Adopt the intelligent Play System of the music of communication Network Based of the present invention, automatically the music file of suitable type cannot be selected to carry out the technical matters play according to the current degree of fatigue of automobile driver in prior art, internet communication identification, image recognition and infrared detection technology is adopted to realize respectively detecting and front and back car status detection function music file type identification, degree of fatigue, thus automatically can play the music file of suitable type, and there is certain front and back car warning function, improve the security of happy motor vehicle driving and recreational.
Be understandable that, although the present invention with preferred embodiment disclose as above, but above-described embodiment and be not used to limit the present invention.For any those of ordinary skill in the art, do not departing under technical solution of the present invention ambit, the technology contents of above-mentioned announcement all can be utilized to make many possible variations and modification to technical solution of the present invention, or be revised as the Equivalent embodiments of equivalent variations.Therefore, every content not departing from technical solution of the present invention, according to technical spirit of the present invention to any simple modification made for any of the above embodiments, equivalent variations and modification, all still belongs in the scope of technical solution of the present invention protection.