Summary of the invention
In order to solve the technical matters that prior art exists, the invention provides a kind of searching method obtaining music file from internet, first to be parsed the musical performer's title in driver's voice according to predetermined text formatting by speech recognition technology, the current emotional of driver is identified subsequently by image recognition technology, finally, based on the current emotional of musical performer's title, download from internet, play suitable music file, meet the sense of hearing demand of automobile driver at any time.
According to an aspect of the present invention, provide a kind of searching method obtaining music file from internet, the method comprises the following steps: 1) a kind of search platform obtaining music file from internet is provided, be arranged in motor vehicle, described search platform comprises speech recognition device, Web crawler and music player, institute's speech recognizer is used for the current speech of cognitron motor-car driver to obtain the musical performer's name in current speech, described Web crawler is used for searching in a network according to described musical performer's name and downloading corresponding music file, described music player is for receiving and playing the music file of described correspondence, and 2) use described search platform to search for.
More specifically, obtain in the search platform of music file from internet described, also comprise: SDRAM memory device, be arranged in the panel board of motor vehicle, for storing facial upper limit gray threshold, face lower limit gray threshold and each facial emotions reference pattern, described facial upper limit gray threshold and described facial lower limit gray threshold are used for face and background separation from image, the various moods of the corresponding people of each facial emotions reference pattern difference, each facial emotions reference pattern is for taking obtained pattern to the face with corresponding mood in advance, the various moods of people comprise sadness, happy, tranquil and angry, CMOS vision sensor, is arranged on the front at automobile driver seat, for carrying out image acquisition, to obtain face-image to the face of automobile driver, driver's mood checkout equipment, is arranged in the panel board of motor vehicle, is connected, receives described face-image, identify to described face-image the current emotional obtaining driver with described CMOS vision sensor, described driver's mood checkout equipment comprises contrast strengthen unit, wavelet filtering unit, gray processing processing unit, face pattern extraction unit and mood analytic unit, described contrast strengthen unit is connected to carry out contrast enhancement processing to described face-image with described CMOS vision sensor, obtain and strengthen face-image, described wavelet filtering unit is connected with the filtering process carried out described enhancing face-image based on Haar wavelet transform wave filter with described contrast strengthen unit, obtain filtering face-image, described gray processing processing unit is connected with described wavelet filtering unit, for performing gray processing process to described filtering face-image, to obtain gray processing face-image, described face pattern extraction unit is connected respectively with described gray processing processing unit and described SDRAM memory device, the pixel identification of gray-scale value in described gray level image between described facial upper limit gray threshold and described facial lower limit gray threshold is formed driver's face pattern, described mood analytic unit is connected respectively with described face pattern extraction unit and described SDRAM memory device, described driver's face pattern is mated with each facial emotions reference pattern, facial emotions corresponding for the facial emotions reference pattern that the match is successful is exported as current emotional, institute's speech recognizer comprises voice recognition chip, text conversion equipment, built in memory device and RS232 serial ports, the current speech of automobile driver is also converted to digital audio file by the current speech of described speech ciphering equipment chip receiver motor-car driver, described built in memory device prestores character string identification form, described text conversion equipment is connected respectively with described voice recognition chip and described built in memory device, described digital audio file is converted to character string, and the musical performer's name gone out based on described character string identification format identification in described character string, described RS232 serial ports and described text conversion equipment connection, for receiving and exporting described musical performer's name, digital signal processor, with described driver's mood checkout equipment, described SDRAM memory device, institute's speech recognizer is connected respectively with described Web crawler, the search rule arranging described Web crawler is as follows: when the current emotional received is for time sad, control described Web crawler to search on the internet and receive playing style in all works of musical performer's name from institute's speech recognizer and be peaceful music file and download in the play buffer of described music player, when the current emotional received is for time happy, control described Web crawler to search on the internet and receive playing style in all works of musical performer's name from institute's speech recognizer and be hot music file and download in the play buffer of described music player, when the current emotional received is for time tranquil, control described Web crawler to search on the internet and receive playing style in all works of musical performer's name from institute's speech recognizer and be lyric music file and download in the play buffer of described music player, when the current emotional received is for indignation, control described Web crawler and search for from institute's speech recognizer that to receive playing style in all works of musical performer's name be the music file of arguing and download in the play buffer of described music player on the internet, described Web crawler, comprise network communication interface and search rule arranges device, described network communication interface is the one in 3G mobile communication interface or 4G mobile communication interface, described search rule arranges device and is connected respectively with described network communication interface and described digital signal processor, for receiving search rule that described digital signal processor arranges to control described network communication interface and to search on the internet according to described search rule and to download the music file of correspondence, when the music file of correspondence is multiple, music file the most popular on internet is selected to download, described network communication interface is also connected with described music player, for the music file of download being forwarded in the play buffer of described music player, wherein, described contrast strengthen unit, described wavelet filtering unit, described gray processing processing unit, described face pattern extraction unit and described mood analytic unit adopt different fpga chips to realize respectively, and are integrated on one piece of surface-mounted integrated circuit, described character string identification form is in character string, and latter two character is music, and all characters before latter two character are musical performer's name.
More specifically, obtain from internet in the search platform of music file described, also comprise: power-supply unit, for each consuming parts in described search platform provides electric power supply.
More specifically, obtain in the search platform of music file from internet described, also comprise: USB interface, be connected with described SDRAM memory device, for inserting outside USB flash disk, with by the facial upper limit gray threshold in outside USB flash disk, facial lower limit gray threshold and each facial emotions reference pattern stored in described SDRAM memory device.
More specifically, obtain from internet in the search platform of music file described: described music player is Sony NWZ-S736F player.
More specifically, obtain from internet in the search platform of music file described, also comprise: user input device, for determining whether the function of search of opening search platform under the operation of automobile driver.
Embodiment
Below with reference to accompanying drawings the embodiment obtaining the search platform of music file from internet of the present invention is described in detail.
Current, lack and replace the manual the selection of music scheme of automobile driver, also lack the selection of the music file of satisfied different driver's mood, download, play mode.
In order to overcome above-mentioned deficiency, the present invention has built a kind of search platform obtaining music file from internet, based on the combination of speech recognition, image recognition and Internet communication technology, effectively solves the problems of the technologies described above.
Fig. 1 is the block diagram obtaining the search platform of music file from internet illustrated according to an embodiment of the present invention, described search platform is arranged in motor vehicle, comprise speech recognition device 1, Web crawler 2 and music player 3, institute's speech recognizer 1 for the current speech of cognitron motor-car driver to obtain the musical performer's name in current speech, described Web crawler 2 is for searching in a network according to described musical performer's name and downloading corresponding music file, and described music player 3 is for receiving and playing the music file of described correspondence.
Then, continue to be further detailed the concrete structure obtaining the search platform of music file from internet of the present invention.
Described search platform also comprises: SDRAM memory device, be arranged in the panel board of motor vehicle, for storing facial upper limit gray threshold, face lower limit gray threshold and each facial emotions reference pattern, described facial upper limit gray threshold and described facial lower limit gray threshold are used for face and background separation from image, the various moods of the corresponding people of each facial emotions reference pattern difference, each facial emotions reference pattern is for taking obtained pattern to the face with corresponding mood in advance, the various moods of people comprise sadness, happy, tranquil and angry.
Described search platform also comprises: CMOS vision sensor, is arranged on the front at automobile driver seat, for carrying out image acquisition, to obtain face-image to the face of automobile driver.
Described search platform also comprises: driver's mood checkout equipment, is arranged in the panel board of motor vehicle, is connected, receives described face-image, identify to described face-image the current emotional obtaining driver with described CMOS vision sensor, described driver's mood checkout equipment comprises contrast strengthen unit, wavelet filtering unit, gray processing processing unit, face pattern extraction unit and mood analytic unit, described contrast strengthen unit is connected to carry out contrast enhancement processing to described face-image with described CMOS vision sensor, obtain and strengthen face-image, described wavelet filtering unit is connected with the filtering process carried out described enhancing face-image based on Haar wavelet transform wave filter with described contrast strengthen unit, obtain filtering face-image, described gray processing processing unit is connected with described wavelet filtering unit, for performing gray processing process to described filtering face-image, to obtain gray processing face-image, described face pattern extraction unit is connected respectively with described gray processing processing unit and described SDRAM memory device, the pixel identification of gray-scale value in described gray level image between described facial upper limit gray threshold and described facial lower limit gray threshold is formed driver's face pattern, described mood analytic unit is connected respectively with described face pattern extraction unit and described SDRAM memory device, described driver's face pattern is mated with each facial emotions reference pattern, facial emotions corresponding for the facial emotions reference pattern that the match is successful is exported as current emotional.
Institute's speech recognizer 1 comprises voice recognition chip, text conversion equipment, built in memory device and RS232 serial ports, the current speech of automobile driver is also converted to digital audio file by the current speech of described speech ciphering equipment chip receiver motor-car driver, described built in memory device prestores character string identification form, described text conversion equipment is connected respectively with described voice recognition chip and described built in memory device, described digital audio file is converted to character string, and the musical performer's name gone out based on described character string identification format identification in described character string, described RS232 serial ports and described text conversion equipment connection, for receiving and exporting described musical performer's name.
Described search platform also comprises: digital signal processor, with described driver's mood checkout equipment, described SDRAM memory device, institute's speech recognizer 1 is connected respectively with described Web crawler 2, the search rule arranging described Web crawler 2 is as follows: when the current emotional received is for time sad, control described Web crawler 2 to search on the internet and receive playing style in all works of musical performer's name from institute's speech recognizer 1 and be peaceful music file and download in the play buffer of described music player 3, when the current emotional received is for time happy, control described Web crawler 2 to search on the internet and receive playing style in all works of musical performer's name from institute's speech recognizer 1 and be hot music file and download in the play buffer of described music player 3, when the current emotional received is for time tranquil, control described Web crawler 2 to search on the internet and receive playing style in all works of musical performer's name from institute's speech recognizer 1 and be lyric music file and download in the play buffer of described music player 3, when the current emotional received is for indignation, control described Web crawler 2 and search for from institute's speech recognizer 1 that to receive playing style in all works of musical performer's name be the music file of arguing and download in the play buffer of described music player 3 on the internet.
Described Web crawler 2 comprises network communication interface and search rule arranges device, described network communication interface is the one in 3G mobile communication interface or 4G mobile communication interface, described search rule arranges device and is connected respectively with described network communication interface and described digital signal processor, for receiving search rule that described digital signal processor arranges to control described network communication interface and to search on the internet according to described search rule and to download the music file of correspondence, when the music file of correspondence is multiple, music file the most popular on internet is selected to download, described network communication interface is also connected with described music player 3, for the music file of download is forwarded in the play buffer of described music player.
Wherein, described contrast strengthen unit, described wavelet filtering unit, described gray processing processing unit, described face pattern extraction unit and described mood analytic unit adopt different fpga chips to realize respectively, and are integrated on one piece of surface-mounted integrated circuit; Described character string identification form is in character string, and latter two character is music, and all characters before latter two character are musical performer's name.
Alternatively, described search platform also comprises: power-supply unit, for each consuming parts in described search platform provides electric power supply; Described search platform also comprises: USB interface, be connected with described SDRAM memory device, for inserting outside USB flash disk, with by the facial upper limit gray threshold in outside USB flash disk, facial lower limit gray threshold and each facial emotions reference pattern stored in described SDRAM memory device; Described music player 3 is Sony NWZ-S736F player; Described search platform also comprises: user input device, for determining whether the function of search of opening search platform under the operation of automobile driver.
In addition, FPGA (Field-ProgrammableGateArray), 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 (ComplexProgrammableLogicDevice, 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 search platform obtaining music file from internet of the present invention, for cannot according to the technical matters of automobile driver current emotional and the automatic downloading and playing music file of voice in prior art, speech recognition, image recognition and Internet communication technology is adopted to realize respectively detecting and music file download function driver's speech analysis, mood, and automatically can play the music file of download, be the hearing enjoying that automobile driver is provided convenience, enriched.
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.