CN104573132A - Method and device for finding songs - Google Patents

Method and device for finding songs Download PDF

Info

Publication number
CN104573132A
CN104573132A CN201510083876.1A CN201510083876A CN104573132A CN 104573132 A CN104573132 A CN 104573132A CN 201510083876 A CN201510083876 A CN 201510083876A CN 104573132 A CN104573132 A CN 104573132A
Authority
CN
China
Prior art keywords
song
information
group
image
image file
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.)
Granted
Application number
CN201510083876.1A
Other languages
Chinese (zh)
Other versions
CN104573132B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510083876.1A priority Critical patent/CN104573132B/en
Publication of CN104573132A publication Critical patent/CN104573132A/en
Application granted granted Critical
Publication of CN104573132B publication Critical patent/CN104573132B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • G06F16/639Presentation of query results using playlists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Abstract

The invention belongs to the technical field of information and provides a method and a device for finding songs. The method comprises the following steps: receiving song finding request information input by a user, wherein the song finding request information comprises an image file for finding songs; obtaining the image information of the image file and finding songs in a server according to the image information; when the finding result only comprises a group of song information, determining that the group of song information is matched with the song finding request information and displaying the group of song information. According to the method which comprises the steps of receiving the song finding request information input by the user, finding songs in the server according to the image information in the image file in the song searching request information, and when the finding result only comprises a group of song information, determining that the group of song information is matched with the song finding request information and displaying the group of song information, and therefore, a song finding manner relatively high in operation convenience is provided; in addition, no redundant song information exits in the finding result and the song finding accuracy is improved.

Description

Song lookup method and device
Technical field
The invention belongs to areas of information technology, particularly relate to song lookup method and device.
Background technology
The existing song mode of searching mainly contains two kinds.First kind of way is inputted the text messages such as song title, album name, artist name or lyrics fragment and searches by user; The second way is searched by providing the audio-frequency information of snatch of song, and this mode generally obtains the audio-frequency information of snatch of song by the mode of recording.First kind of way due to the information content of the text message that user inputs uncertain, cause easily searching out a large amount of redundant datas, make user can not obtain song information accurately.Recording Process in the second way is subject to environmental impact, and the audio-frequency information tonequality that causing records obtains is poor, thus not easily accurately searches song corresponding to audio-frequency information.
Summary of the invention
Given this, embodiments provide a kind of song lookup method, search to solve existing song the song information that easily there is bulk redundancy in the lookup result of mode, search the problem that the accuracy of song is lower.
On the one hand, embodiments provide a kind of song lookup method, comprising:
Receive the song search request information of user's input, described song search request information comprises the image file for searching song;
Obtain the image information of described image file, and carry out song in the server according to described image information and search;
When lookup result only comprises one group of song information, judge this group song information and described song search request information match, and show this group song information.
Second aspect, embodiments provides a kind of song and searches device, comprising:
Solicited message receiving element, for receiving the song search request information of user's input, described song search request information comprises the image file for searching song;
Search unit, for obtaining the image information of described image file, and carry out song in the server according to described image information and search;
Song confirmation unit, for when lookup result only comprises one group of song information, judges this group song information and described song search request information match, and shows this group song information.
The beneficial effect that the embodiment of the present invention compared with prior art exists is: the embodiment of the present invention is by receiving the song search request information of user's input, carry out song in the server according to the image information of the image file in song search request information to search, when lookup result only comprises one group of song information, judge this group song information and song search request information match, and show this group song information, the song thus providing a kind of simple operation higher searches mode, and avoid lookup result to there is the song information of redundancy, improve the accuracy that song is searched.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the realization flow figure of the song lookup method that the embodiment of the present invention provides;
Fig. 2 is the realization flow figure of the song lookup method that another embodiment of the present invention provides;
Fig. 3 is the specific implementation process flow diagram extracting characteristic described in the song lookup method that provides of the embodiment of the present invention from described image file;
Fig. 4 is the structured flowchart that song that the embodiment of the present invention provides searches device.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow figure of the song lookup method that the embodiment of the present invention provides, and details are as follows:
In step S101, receive the song search request information of user's input, described song search request information comprises the image file for searching song.
Here, image file can be song picture, album cover picture or singer's picture, in this no limit.
In step s 102, obtain the image information of described image file, and carry out song in the server according to described image information and search.
Preferably, described image information comprises image name, image size, image type, image taking person or image capturing time.
Wherein, the image size in image information refers to the dimension information of image, such as, comprises image X-axis pixel count and Y-axis pixel count.Image type in image information refers to JPEG (JointPhotographic Experts Group, joint image expert group) image file format or BMP (BitMap, bitmap) image file format etc., in this no limit.Image taking person in image information may comprise the title of record company belonging to singer, in this no limit.
After obtaining the image information of image file, carry out song in the server according to image information and search.
In step s 103, when lookup result only comprises one group of song information, judge this group song information and described song search request information match, and show this group song information.
When the lookup result obtained according to image information comprises and only comprises one group of song information, show the song search request information match that this group song information and user input to a great extent.When the image file in song search request information is song picture, this group song information only comprises the song information of a song; When the image file in song search request information is album cover picture, the bent packets of information of this suite of song is containing the song information of whole special edition; When the image file in song search request information is singer's picture, the bent packets of information of this suite of song is containing the song information of all songs of this singer.
It should be noted that, lookup result only comprises one group of song information and refers to the song information that lookup result obtains and point to same group of song information.Such as, lookup result comprises the lookup result of 6 websites, and the song information that the lookup result of these 6 websites is corresponding is song A, song B, song C and song D.
When lookup result only comprises one group of song information, judge the song search request information match that this group song information and user input, and show this group song information with tabular form.
Fig. 2 shows the realization flow figure of the song lookup method that another embodiment of the present invention provides, with reference to Fig. 2:
In step s 201, receive the song search request information of user's input, described song search request information comprises the image file for searching song;
In step S202, obtain the image information of described image file, and carry out song in the server according to described image information and search;
In step S203, when lookup result only comprises one group of song information, judge this group song information and described song search request information match, and show this group song information;
In step S204, when described lookup result comprises at least two group song informations or do not comprise any one group of song information, from described server, search the song associated data of mating with described image file;
In step S205, obtain the one group song information corresponding with described song associated data, and show this group song information.
When lookup result comprises at least two group song informations or do not comprise any one group of song information, show can not obtain song information accurately according to the image information of image file.In this case, image file in the song search request information of user's input is analyzed, the song associated data of mating with image file is searched in the song features database of server, the one group song information corresponding with song associated data is obtained again according to the map listing prestored, and this group song information that display obtains.
Here, song features database is set up in advance in the server.The song associated data that song features database purchase is corresponding with song associated images.Song associated data is the image feature data extracted from song associated images.
Further, from described server, search the song associated data of mating with described image file described in step S204 to comprise:
From described image file, extract characteristic, and from described server, search the song associated data of mating with described characteristic according to described characteristic.
It should be noted that, the characteristic of image file is mated with song associated data, allows the characteristic of image file and the pixel coordinate value of song associated data and color value to there is overall deviation.Such as, the pixel color value of the characteristic of image file is darker than the pixel color value of song associated data on the whole.
Fig. 3 shows the specific implementation process flow diagram extracting characteristic described in song lookup method that the embodiment of the present invention provides from described image file, with reference to Fig. 3:
In step S301, generate the first array according to the coordinate figure of pixel each in described image file and color value;
In step s 302, determine the color value that in described first array, ratio is maximum, and according to the maximum color value of described ratio and preset value determination background color interval;
In step S303, from described first array, reject the element of color value in described background color interval, obtain described characteristic.
The coordinate figure of each pixel in image file and color value are as an element of the first array, and such as, this element can be expressed as (X, Y, A, R, G, B), wherein, X represents the coordinate figure of this pixel in X-axis, and Y represents the coordinate figure of this pixel in Y-axis, A represents the transparency of this pixel, and R, G and B represent the color value of the red, green and blue of this pixel respectively.First prime number of the first array equals the pixel count of image file.The color value that in first data, ratio is maximum is (A, R, G, B) be (70,120,230,180), preset value is 20, A value then in background color interval is more than or equal to 50 and is less than or equal to 90, R value in background color interval is more than or equal to 100 and is less than or equal to 130, and the G value in background color interval is more than or equal to 210 and is less than or equal to 250, and the B value in background color interval is more than or equal to 160 and is less than or equal to 200.If the A value of certain element, R value, G value and B value all in the scope of background color interval regulation, then reject this element.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
The embodiment of the present invention is by receiving the song search request information of user's input, carry out song in the server according to the image information of the image file in song search request information to search, when lookup result only comprises one group of song information, judge this group song information and song search request information match, and show this group song information, the song thus providing a kind of simple operation higher searches mode, and avoid lookup result to there is the song information of redundancy, improve the accuracy that song is searched.
The song that Fig. 4 shows the embodiment of the present invention to be provided searches the structured flowchart of device, and this device may be used for the song lookup method described in service chart 1 to Fig. 3.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
With reference to Fig. 4, described device comprises:
Solicited message receiving element 41, for receiving the song search request information of user's input, described song search request information comprises the image file for searching song;
Search unit 42, for obtaining the image information of described image file, and carry out song in the server according to described image information and search;
Song confirmation unit 43, for when lookup result only comprises one group of song information, judges this group song information and described song search request information match, and shows this group song information.
Preferably, described image information comprises image name, image size, image type, image taking person or image capturing time.
Preferably, search described in unit 42 also for:
When described lookup result comprises at least two group song informations or do not comprise any one group of song information, from described server, search the song associated data of mating with described image file;
Described song confirmation unit 43 also for:
Obtain the one group song information corresponding with described song associated data, and show this group song information.
Preferably, search described in unit 42 specifically for:
From described image file, extract characteristic, and from described server, search the song associated data of mating with described characteristic according to described characteristic.
Preferably, search unit 42 described in comprise:
First array generates subelement 421, for generating the first array according to the coordinate figure of pixel each in described image file and color value;
Subelement 422 is determined in background color interval, for the color value determining that in described first array, ratio is maximum, and according to the maximum color value of described ratio and preset value determination background color interval;
Characteristic computation subunit 423, for rejecting the element of color value in described background color interval from described first array, obtains described characteristic.
The embodiment of the present invention is by receiving the song search request information of user's input, carry out song in the server according to the image information of the image file in song search request information to search, when lookup result only comprises one group of song information, judge this group song information and song search request information match, and show this group song information, the song thus providing a kind of simple operation higher searches mode, and avoid lookup result to there is the song information of redundancy, improve the accuracy that song is searched.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (10)

1. a song lookup method, is characterized in that, comprising:
Receive the song search request information of user's input, described song search request information comprises the image file for searching song;
Obtain the image information of described image file, and carry out song in the server according to described image information and search;
When lookup result only comprises one group of song information, judge this group song information and described song search request information match, and show this group song information.
2. the method for claim 1, is characterized in that, described image information comprises image name, image size, image type, image taking person or image capturing time.
3. the method for claim 1, is characterized in that, after carrying out song according to described image information in the server and searching, described method also comprises:
When described lookup result comprises at least two group song informations or do not comprise any one group of song information, from described server, search the song associated data of mating with described image file;
Obtain the one group song information corresponding with described song associated data, and show this group song information.
4. method as claimed in claim 3, it is characterized in that, the described song associated data of mating with described image file of searching from described server comprises:
From described image file, extract characteristic, and from described server, search the song associated data of mating with described characteristic according to described characteristic.
5. method as claimed in claim 4, is characterized in that, describedly from described image file, extracts characteristic comprise:
The first array is generated according to the coordinate figure of pixel each in described image file and color value;
Determine the color value that in described first array, ratio is maximum, and according to the maximum color value of described ratio and preset value determination background color interval;
From described first array, reject the element of color value in described background color interval, obtain described characteristic.
6. song searches a device, it is characterized in that, comprising:
Solicited message receiving element, for receiving the song search request information of user's input, described song search request information comprises the image file for searching song;
Search unit, for obtaining the image information of described image file, and carry out song in the server according to described image information and search;
Song confirmation unit, for when lookup result only comprises one group of song information, judges this group song information and described song search request information match, and shows this group song information.
7. device as claimed in claim 6, it is characterized in that, described image information comprises image name, image size, image type, image taking person or image capturing time.
8. device as claimed in claim 6, is characterized in that, described in search unit also for:
When described lookup result comprises at least two group song informations or do not comprise any one group of song information, from described server, search the song associated data of mating with described image file;
Described song confirmation unit also for:
Obtain the one group song information corresponding with described song associated data, and show this group song information.
9. device as claimed in claim 8, is characterized in that, described in search unit specifically for:
From described image file, extract characteristic, and from described server, search the song associated data of mating with described characteristic according to described characteristic.
10. device as claimed in claim 9, is characterized in that, described in search unit and comprise:
First array generates subelement, for generating the first array according to the coordinate figure of pixel each in described image file and color value;
Subelement is determined in background color interval, for the color value determining that in described first array, ratio is maximum, and according to the maximum color value of described ratio and preset value determination background color interval;
Characteristic computation subunit, for rejecting the element of color value in described background color interval from described first array, obtains described characteristic.
CN201510083876.1A 2015-02-13 2015-02-13 Song lookup method and device Expired - Fee Related CN104573132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510083876.1A CN104573132B (en) 2015-02-13 2015-02-13 Song lookup method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510083876.1A CN104573132B (en) 2015-02-13 2015-02-13 Song lookup method and device

Publications (2)

Publication Number Publication Date
CN104573132A true CN104573132A (en) 2015-04-29
CN104573132B CN104573132B (en) 2017-10-31

Family

ID=53089193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510083876.1A Expired - Fee Related CN104573132B (en) 2015-02-13 2015-02-13 Song lookup method and device

Country Status (1)

Country Link
CN (1) CN104573132B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912722A (en) * 2016-05-04 2016-08-31 广州酷狗计算机科技有限公司 Song sending method and apparatus
CN106227757A (en) * 2016-07-15 2016-12-14 苏州市玄天环保科技有限公司 Intelligence song service system
CN106649485A (en) * 2016-09-30 2017-05-10 广东欧珀移动通信有限公司 Method for pushing information and mobile terminal
CN112685575A (en) * 2020-12-04 2021-04-20 联想(北京)有限公司 Information identification method and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1678076A (en) * 1999-09-13 2005-10-05 索尼公司 Image processing apparatus and method
CN101313364A (en) * 2005-11-21 2008-11-26 皇家飞利浦电子股份有限公司 System and method for using content features and metadata of digital images to find related audio accompaniment
CN101950302A (en) * 2010-09-29 2011-01-19 李晓耕 Method for managing immense amounts of music libraries based on mobile device
CN103324682A (en) * 2013-05-31 2013-09-25 百度在线网络技术(北京)有限公司 Video searching method and device based on images
CN104050188A (en) * 2013-03-15 2014-09-17 上海斐讯数据通信技术有限公司 Music search method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1678076A (en) * 1999-09-13 2005-10-05 索尼公司 Image processing apparatus and method
CN101313364A (en) * 2005-11-21 2008-11-26 皇家飞利浦电子股份有限公司 System and method for using content features and metadata of digital images to find related audio accompaniment
CN101950302A (en) * 2010-09-29 2011-01-19 李晓耕 Method for managing immense amounts of music libraries based on mobile device
CN104050188A (en) * 2013-03-15 2014-09-17 上海斐讯数据通信技术有限公司 Music search method and system
CN103324682A (en) * 2013-05-31 2013-09-25 百度在线网络技术(北京)有限公司 Video searching method and device based on images

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蓝色的爱: ""TinEye:用图片搜索你想要的"", 《互联网天地》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912722A (en) * 2016-05-04 2016-08-31 广州酷狗计算机科技有限公司 Song sending method and apparatus
CN105912722B (en) * 2016-05-04 2018-11-09 广州酷狗计算机科技有限公司 Song sending method and device
CN106227757A (en) * 2016-07-15 2016-12-14 苏州市玄天环保科技有限公司 Intelligence song service system
CN106649485A (en) * 2016-09-30 2017-05-10 广东欧珀移动通信有限公司 Method for pushing information and mobile terminal
CN112685575A (en) * 2020-12-04 2021-04-20 联想(北京)有限公司 Information identification method and equipment

Also Published As

Publication number Publication date
CN104573132B (en) 2017-10-31

Similar Documents

Publication Publication Date Title
US10796352B2 (en) System and method for managing product catalogs
RU2614933C2 (en) Method and device for information search at e-commercial platform
CN103136228A (en) Image search method and image search device
CN104866985B (en) The recognition methods of express delivery odd numbers, apparatus and system
CN105404680A (en) Searching recommendation method and apparatus
US20150032708A1 (en) Database analysis apparatus and method
CN110392155B (en) Notification message display and processing method, device and equipment
CN106547646B (en) Data backup and recovery method and data backup and recovery device
US20150278248A1 (en) Personal Information Management Service System
CN104573132A (en) Method and device for finding songs
CN105205636A (en) Method and device for calculating material requirement planning (MRP)
US20180276286A1 (en) Metadata Extraction and Management
CN110059172B (en) Method and device for recommending answers based on natural language understanding
EP2850544A1 (en) A user recommendation method and device
CN109558381A (en) A kind of data processing method and device
US11409826B2 (en) Deep learning machine vision to analyze localities for comparative spending analyses
US20130097491A1 (en) Information processing apparatus, information processing method, and computer readable medium
CN104240107A (en) Community data screening system and method thereof
CN112612817A (en) Data processing method and device, terminal equipment and computer readable storage medium
CN111597368A (en) Data processing method and device
CN112579763A (en) Document pushing method and device
US10503758B2 (en) Information processing apparatus using hierarchical tags for streamlining the presentation of information and non-transitory computer readable medium for the same
JP2020181332A (en) High-precision similar image search method, program and high-precision similar image search device
CN112837107A (en) Cross-platform commodity recommendation method and device and computer equipment
CN111324792A (en) Big data platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171031

CF01 Termination of patent right due to non-payment of annual fee