CN105224588A - According to method and the device of photo dominant hue generation background music - Google Patents

According to method and the device of photo dominant hue generation background music Download PDF

Info

Publication number
CN105224588A
CN105224588A CN201510364806.3A CN201510364806A CN105224588A CN 105224588 A CN105224588 A CN 105224588A CN 201510364806 A CN201510364806 A CN 201510364806A CN 105224588 A CN105224588 A CN 105224588A
Authority
CN
China
Prior art keywords
photo
music
dominant hue
music file
mean value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510364806.3A
Other languages
Chinese (zh)
Inventor
戴文锦
陈源
王会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Meibeike Technology Co Ltd
Original Assignee
Shenzhen Meibeike Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Meibeike Technology Co Ltd filed Critical Shenzhen Meibeike Technology Co Ltd
Priority to CN201510364806.3A priority Critical patent/CN105224588A/en
Publication of CN105224588A publication Critical patent/CN105224588A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention specifically discloses a kind of method according to photo dominant hue generation background music and device, and the method comprises the photo of browsing local system photo library or downloads photo from website and extract the current dominant hue mean value browsing photo; In music file storehouse, the music file close with the dominant hue of this photo current is inquired about according to the dominant hue mean value of this photo.Therefore the present invention searches the music file generation background music matched by photo dominant hue average, thus reach and automatically to generate the highest music file of sight similarity when browsing photo and play, make user convenient, comfortable and be conducive to the sense of raising Consumer's Experience.

Description

According to method and the device of photo dominant hue generation background music
Technical field
The invention belongs to electronic information technical field, be specifically related to a kind of method according to photo dominant hue generation background music and device.
Background technology
Along with photo and music play more and more important role in the life of people, become an indispensable part, photo is to people's vision and spiritual enjoyment, and music is to consoling in people's sense of hearing and soul.In life, some electronic reader can play some music browsing article, plays and sets off sight effect; Meanwhile, when some video files (film, MV etc.) are play, all can play some music, not only touching atmosphere atmosphere and soul has very large facilitation.Vehicles Collected from Market also there is no product or independent photo and music being associated together of works, playing specific music when browsing photo; Simultaneously when selecting music, being also by special disposal route, from music libraries, choosing similar music.
Summary of the invention
For the deficiency that above-mentioned prior art exists, the object of this invention is to provide a kind of method according to photo dominant hue generation background music and device, can participate in without the need to user, and improve user's health check-up.
To achieve these goals, the invention provides a kind of method according to photo dominant hue generation background music, the method comprises:
Browse the photo of local system photo library or download photo from website and extract the current dominant hue mean value browsing photo; In music file storehouse, the music file close with the dominant hue of this photo current is inquired about according to the dominant hue mean value of this photo.
Preferably, the current concrete steps browsing the dominant hue mean value of photo of described extraction are:
Calculate the tone mean value of whole photo;
Travel through each pixel and calculate the aberration of the tone value of each pixel and the tone mean value of whole photo, when the absolute value of this aberration is greater than setting threshold value, then this pixel being joined " eye-catching pixel " list;
Calculate the tone mean value of whole " eye-catching pixel list ", thus draw the dominant hue mean value of this photo.
Preferably, the described dominant hue mean value according to this photo is inquired about the concrete steps of the music file close with the dominant hue of this photo current and is in music file storehouse:
Extract the dominant hue mean value of music file front cover photo in music file storehouse;
Whether the dominant hue mean value of the dominant hue mean value and described music file front cover photo of relatively browsing current photo exists within the scope of assigned error; If exist, then play background music file; If do not exist, continue to compare.
Preferred further, described music file storehouse crawls the up-to-date music file comprising Music front cover photo by music cloud system service timing from music site and forms.
Preferred further, described music file storehouse is made up of the music file comprising Music front cover photo of filtering screening from local system music libraries.
To achieve these goals, invention further provides a kind of device according to photo dominant hue generation background music using method described in technique scheme, this device comprises mobile terminal and the music cloud system service with described mobile terminal wireless connections, the service of described music cloud system is used for timing and upgrades and store the music file comprising Music front cover photo, and wherein said mobile terminal comprises the photo for browsing local system photo library or downloads the Photo Browser client of photo from website.
Preferably, described Photo Browser client comprises:
Read module, for reading music file in music file storehouse, and filtering screening only has the music file of Music front cover photo;
Extraction module, currently browses the dominant hue mean value of music file front cover photo in photo and or music file storehouse and the background music file of more adaptive correspondence for calculating;
Enquiry module, for sending the link order of query statement or the service of reception music cloud system to the service of music cloud system.
Preferred further, described extraction module comprises:
Computing module, for calculating the tone mean value of whole photo and traveling through the tone value of each pixel;
Comparison module, whether the aberration absolute value for the tone value of more each pixel and the tone mean value of whole photo is greater than setting threshold value;
List block, is labeled as " eye-catching pixel " for the pixel this aberration absolute value being greater than setting threshold values.
Further preferred, described given threshold values is 30.
The present invention compared with prior art has following beneficial effect:
The present invention searches the music file generation background music matched mainly through photo dominant hue average, thus reach and automatically to generate the highest music file of sight similarity when browsing photo and play, make user convenient, comfortable and be conducive to the sense of raising Consumer's Experience.
Accompanying drawing explanation
The groundwork process flow diagram that Fig. 1 is method described in the embodiment of the present invention.
Fig. 2 is the structured flowchart of device described in another embodiment of the present invention.
Fig. 3 is the inner structure block diagram of the client of Photo Browser described in Fig. 2.
The inner structure block diagram that Fig. 4 is extraction module described in Fig. 3.
Reference numeral comprises:
10-mobile terminal, 11-Photo Browser client, 111-read module, 112-extraction module, 1121-computing module, 1122-comparison module, 1123-list block, 113-enquiry module, 20-music cloud system are served.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
As shown in Figure 1, embodiments provide a kind of method according to photo dominant hue generation background music, the method comprises:
Browse the photo of local system photo library or download photo from website and extract the current dominant hue mean value browsing photo; In music file storehouse, the music file close with the dominant hue of this photo current is inquired about according to the dominant hue mean value of this photo.Wherein said music file storehouse crawls the up-to-date music file comprising Music front cover photo by music cloud system service timing from music site and forms, and described music file storehouse is made up of the music file comprising Music front cover photo of filtering screening from local system music libraries in addition.In practical operation, searched from local music storehouse before this when generally browsing photo, if not, get background music from the service of music cloud system.
The current concrete steps browsing the dominant hue mean value of photo of described extraction are:
Calculate the tone mean value of whole photo;
Travel through each pixel and calculate the aberration of the tone value of each pixel and the tone mean value of whole photo, when the absolute value of this aberration is greater than setting threshold value, then this pixel being joined " eye-catching pixel " list;
Calculate the tone mean value of whole " eye-catching pixel list ", thus draw the dominant hue mean value of this photo.
The concrete steps that the described dominant hue mean value according to this photo inquires about the music file close with the dominant hue of this photo current in music file storehouse are:
Extract the dominant hue mean value of music file front cover photo in music file storehouse;
Whether the dominant hue mean value of the dominant hue mean value and described music file front cover photo of relatively browsing current photo exists within the scope of assigned error; If exist, then play background music file; If do not exist, continue to compare.
The embodiment of the present invention is described in detail by following specific embodiment: music cloud system service 20 timing crawls the up-to-date music file comprising Music front cover photo from music site; Run Photo Browser client 11 on mobile terminal 10, the photo browsed local system photo library or download from network; The photo that Photo Browser client 11 is browsed local system photo library or downloaded from network, and set up Tcp communication connection with music cloud system service 20; Photo Browser client 11 extracts the current dominant hue mean value browsing photo, wherein first calculate the mean value (avg_hue_image) of the tone of whole picture, then travel through each pixel and calculate the tone value of this pixel and the aberration (being about to take absolute value after the two subtracts each other) of avg_hue_image, if this aberration is greater than a threshold value 30(effective error positive and negative 1), then this pixel is joined the list of " eye-catching pixel ", finally calculate the color average of whole " eye-catching pixel list ", obtain a result as the dominant hue average of this picture.
Photo Browser client 11 reads music file from local music storehouse and filtering screening only has the music file of Music front cover; Photo Browser client 11 extracts the dominant hue average of music file front cover photo; Relatively whether the dominant hue mean value of photo files and music file front cover photo exists within the scope of assigned error; If exist, then play background music file; If do not exist, then continue to compare.
Photo Browser client 11 sends photo mass-tone tone pitch to music cloud system inquiry diaphone music file; Music cloud system 20 receives the photo dominant hue that Photo Browser client 11 sends, the music file that inquiry is close with photo dominant hue from music libraries; Photo Browser client 11 receives the music file that music cloud system returns.
In actual use, very fast owing to browsing photo hourly velocity, the time is shorter; Only have when a first background music finishes or exit current photo-browsing interface, continue next time to browse and just can continue to add background music, otherwise generated background music can not be added.
When method described in the embodiment of the present invention is mainly through Photo Browser Client browse photo, extract the dominant hue mean value of photo and the mass-tone tone pitch of music background front cover, then both contrast, and select the music file that sight similarity is the highest to play.
As shown in Figure 2, another embodiment of the present invention provides a kind of device according to photo dominant hue generation background music, this device comprises mobile terminal 10 and serves 20 with the music cloud system of described mobile terminal 10 wireless connections, described music cloud system service 20 upgrades for timing and stores the music file comprising Music front cover photo, and wherein said mobile terminal 10 comprises the photo for browsing local system photo library or downloads the Photo Browser client 11 of photo from website.Mobile terminal 10 is including but not limited to mobile phone, pad, mobile PC.
As shown in Figure 3, described Photo Browser client 11 comprises read module 111, extraction module 112 and enquiry module 113, and described read module 111 is for reading music file in music file storehouse, and filtering screening only has the music file of Music front cover photo; Described extraction module 112 currently browses the dominant hue mean value of music file front cover photo in photo and or music file storehouse and the background music file of more adaptive correspondence for calculating; Described enquiry module 113 is for sending query statement to music cloud system service 20 or receiving the link order of music cloud system service 20.
As shown in Figure 4, described extraction module 112 comprises computing module 1121, comparison module 1122 and list block 1123, and described computing module 1121 is for calculating the tone mean value of whole photo and traveling through the tone value of each pixel; Whether described comparison module 1122 is greater than setting threshold value for the aberration absolute value of the tone value of more each pixel and the tone mean value of whole photo, and wherein said given threshold values is 30; Described list block 1123, is labeled as " eye-catching pixel " for the pixel this aberration absolute value being greater than setting threshold values.
Above content is only preferred embodiment of the present invention, and for those of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, this description should not be construed as limitation of the present invention.

Claims (9)

1., according to a method for photo dominant hue generation background music, the method comprises:
Browse the photo of local system photo library or download photo from website and extract the current dominant hue mean value browsing photo; In music file storehouse, the music file close with the dominant hue of this photo current is inquired about according to the dominant hue mean value of this photo.
2. the method according to photo dominant hue generation background music according to claim 1, is characterized in that, the current concrete steps browsing the dominant hue mean value of photo of described extraction are:
Calculate the tone mean value of whole photo;
Travel through each pixel and calculate the aberration of the tone value of each pixel and the tone mean value of whole photo, when the absolute value of this aberration is greater than setting threshold value, then this pixel being joined " eye-catching pixel " list;
Calculate the tone mean value of whole " eye-catching pixel list ", thus draw the dominant hue mean value of this photo.
3. the method according to photo dominant hue generation background music according to claim 1, is characterized in that, the concrete steps that the described dominant hue mean value according to this photo inquires about the music file close with the dominant hue of this photo current in music file storehouse are:
Extract the dominant hue mean value of music file front cover photo in music file storehouse;
Whether the dominant hue mean value of the dominant hue mean value and described music file front cover photo of relatively browsing current photo exists within the scope of assigned error; If exist, then play background music file; If do not exist, continue to compare.
4. the method according to photo dominant hue generation background music according to claim 1 or 3, is characterized in that, described music file storehouse crawls the up-to-date music file comprising Music front cover photo by music cloud system service timing from music site and forms.
5. the method according to photo dominant hue generation background music according to claim 1 or 3, is characterized in that, described music file storehouse is made up of the music file comprising Music front cover photo of filtering screening from local system music libraries.
6. the device according to photo dominant hue generation background music, this device comprises mobile terminal (10) and serves (20) with the music cloud system of described mobile terminal (10) wireless connections, described music cloud system service (20) upgrades for timing and stores the music file comprising Music front cover photo, and wherein said mobile terminal (10) comprises the photo for browsing local system photo library or downloads the Photo Browser client (11) of photo from website.
7. the method according to photo dominant hue generation background music according to claim 6, is characterized in that, described Photo Browser client (11) comprising:
Read module (111), for reading music file in music file storehouse, and filtering screening only has the music file of Music front cover photo;
Extraction module (112), currently browses the dominant hue mean value of music file front cover photo in photo and or music file storehouse and the background music file of more adaptive correspondence for calculating;
Enquiry module (113), for sending query statement or receiving the link order that music cloud system serves (20) to music cloud system service (20).
8. the method according to photo dominant hue generation background music according to claim 7, is characterized in that, described extraction module (112) comprising:
Computing module (1121), for calculating the tone mean value of whole photo and traveling through the tone value of each pixel;
Comparison module (1122), whether the aberration absolute value for the tone value of more each pixel and the tone mean value of whole photo is greater than setting threshold value;
List block (1123), is labeled as " eye-catching pixel " for the pixel this aberration absolute value being greater than setting threshold values.
9. the method according to photo dominant hue generation background music according to claim 8, is characterized in that, described given threshold values is 30.
CN201510364806.3A 2015-06-29 2015-06-29 According to method and the device of photo dominant hue generation background music Pending CN105224588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510364806.3A CN105224588A (en) 2015-06-29 2015-06-29 According to method and the device of photo dominant hue generation background music

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510364806.3A CN105224588A (en) 2015-06-29 2015-06-29 According to method and the device of photo dominant hue generation background music

Publications (1)

Publication Number Publication Date
CN105224588A true CN105224588A (en) 2016-01-06

Family

ID=54993556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510364806.3A Pending CN105224588A (en) 2015-06-29 2015-06-29 According to method and the device of photo dominant hue generation background music

Country Status (1)

Country Link
CN (1) CN105224588A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106295659A (en) * 2016-08-15 2017-01-04 惠州Tcl移动通信有限公司 Taking pictures of a kind of smart machine takes color application process and system
CN106453861A (en) * 2016-09-26 2017-02-22 珠海格力电器股份有限公司 Terminal based photo background music setting method and device
CN109883958A (en) * 2018-11-06 2019-06-14 太原工业学院 A kind of agricultural and animal products lossless detection method and device
CN110930969A (en) * 2019-10-14 2020-03-27 科大讯飞股份有限公司 Background music determination method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256030A (en) * 2010-05-20 2011-11-23 Tcl集团股份有限公司 Photo album showing system capable of matching background music and background matching method thereof
CN102403011A (en) * 2010-09-14 2012-04-04 北京中星微电子有限公司 Music output method and device
CN103475789A (en) * 2013-08-26 2013-12-25 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and control method thereof
CN104091610A (en) * 2013-11-15 2014-10-08 腾讯科技(深圳)有限公司 Audio file managing method and device
CN104093010A (en) * 2013-11-15 2014-10-08 腾讯科技(深圳)有限公司 Image processing method and device
CN104156371A (en) * 2013-05-15 2014-11-19 好看科技(深圳)有限公司 Method and device for browsing images with hue changing along with musical scales
CN104360796A (en) * 2014-12-08 2015-02-18 三星电子(中国)研发中心 Method and device for applying colors onto electronic equipment and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256030A (en) * 2010-05-20 2011-11-23 Tcl集团股份有限公司 Photo album showing system capable of matching background music and background matching method thereof
CN102403011A (en) * 2010-09-14 2012-04-04 北京中星微电子有限公司 Music output method and device
CN104156371A (en) * 2013-05-15 2014-11-19 好看科技(深圳)有限公司 Method and device for browsing images with hue changing along with musical scales
CN103475789A (en) * 2013-08-26 2013-12-25 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and control method thereof
CN104091610A (en) * 2013-11-15 2014-10-08 腾讯科技(深圳)有限公司 Audio file managing method and device
CN104093010A (en) * 2013-11-15 2014-10-08 腾讯科技(深圳)有限公司 Image processing method and device
CN104360796A (en) * 2014-12-08 2015-02-18 三星电子(中国)研发中心 Method and device for applying colors onto electronic equipment and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106295659A (en) * 2016-08-15 2017-01-04 惠州Tcl移动通信有限公司 Taking pictures of a kind of smart machine takes color application process and system
CN106453861A (en) * 2016-09-26 2017-02-22 珠海格力电器股份有限公司 Terminal based photo background music setting method and device
CN106453861B (en) * 2016-09-26 2019-08-13 珠海格力电器股份有限公司 A kind of setting method and device of the photo background music based on terminal
CN109883958A (en) * 2018-11-06 2019-06-14 太原工业学院 A kind of agricultural and animal products lossless detection method and device
CN110930969A (en) * 2019-10-14 2020-03-27 科大讯飞股份有限公司 Background music determination method and related equipment
CN110930969B (en) * 2019-10-14 2024-02-13 科大讯飞股份有限公司 Background music determining method and related equipment

Similar Documents

Publication Publication Date Title
US20140111542A1 (en) Platform for recognising text using mobile devices with a built-in device video camera and automatically retrieving associated content based on the recognised text
CN107784059A (en) For searching for and selecting the method and system and machine-readable medium of image
CN102880654B (en) Method for dynamically updating favorites of information terminal browser
CN102663656A (en) Intelligent terminal electronic ordering method and system based on 3G and cloud technology
CN103729777A (en) Online shopping method, device and system based on image recognition technology
CN107679217A (en) Association method for extracting content and device based on data mining
CN104268154A (en) Recommended information providing method and device
CN103559265A (en) Individualized push method of cell phone client
CN108781262B (en) Method for synthesizing image and electronic device using the same
CN103678305A (en) Method and system for displaying inquiring information based on image recognition
CN105224588A (en) According to method and the device of photo dominant hue generation background music
CN106599137A (en) Novel scene content pushing system and device
CN103257962B (en) information providing method and device
CN110476428A (en) It is placed using the targeted content of covering
CN108133057A (en) For the editing in portable terminal and the device and method of shared content
CN108388629A (en) A kind of multimedia information push method, device and electronic equipment
CN102164153A (en) Method and system for generating electronic map of mobile terminal
CN105183906A (en) Map data display and providing method and corresponding terminal equipment and server
CN104410563A (en) Information push method and wireless device
CN102930610A (en) Check-in information processing method and system
CN202584221U (en) Intelligent terminal electronic ordering system based on 3G and cloud technology
CN103927674A (en) Method for commenting and recommending physical store by using Bluetooth and network
CN105376267A (en) Mobile terminal wireless perception information processing system and mobile terminal wireless perception information processing method
WO2014197218A1 (en) Photo and video sharing
CN105046518A (en) Method of recommending group buying services

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160106