CN104573132B - Song lookup method and device - Google Patents

Song lookup method and device Download PDF

Info

Publication number
CN104573132B
CN104573132B CN201510083876.1A CN201510083876A CN104573132B CN 104573132 B CN104573132 B CN 104573132B CN 201510083876 A CN201510083876 A CN 201510083876A CN 104573132 B CN104573132 B CN 104573132B
Authority
CN
China
Prior art keywords
song
information
group
image
search request
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.)
Expired - Fee Related
Application number
CN201510083876.1A
Other languages
Chinese (zh)
Other versions
CN104573132A (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

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)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention is applied to areas of information technology, and there is provided song lookup method and device.This method includes:The song search request information of user's input is received, song search request information includes the image file for being used to search song;The image information of image file is obtained, and song lookup is carried out according to image information in the server;When lookup result only includes one group of song information, this group of song information and song search request information match are judged, and show this group of song information.The present invention is by receiving the song search request information that user inputs, the image information of image file in song search request information carries out song lookup in the server, when lookup result only includes one group of song information, judge this group of song information and song search request information match, and show this group of song information, thus provide a kind of higher song of simple operation and search mode, and avoid lookup result from there is the song information of redundancy, improve the degree of accuracy of song lookup.

Description

Song lookup method and device
Technical field
The invention belongs to areas of information technology, more particularly to song lookup method and device.
Background technology
Existing song, which searches mode, mainly two kinds.First way by user input song title, album name, The text message such as artist name or lyrics fragment is searched;The second way is entered by providing the audio-frequency information of snatch of song Row is searched, and this mode typically obtains the audio-frequency information of snatch of song by way of recording.First way is defeated due to user The information content of the text message entered is not known, and causes to be easy to search for out substantial amounts of redundant data, prevents user accurate from obtaining Song information.Recording Process in the second way is by ambient influnence, and the obtained audio-frequency information tonequality that causes to record is poor, So as to be difficult accurately to search the corresponding song of audio-frequency information.
The content of the invention
In consideration of it, the embodiments of the invention provide a kind of song lookup method, mode is searched to solve existing song Easily there is the song information of bulk redundancy, the problem of degree of accuracy of lookup song is relatively low in lookup result.
On the one hand, the embodiments of the invention provide a kind of song lookup method, including:
The song search request information of user's input is received, the song search request information includes being used to search song Image file;
The image information of described image file is obtained, and song lookup is carried out according to described image information in the server;
When lookup result only includes one group of song information, this group of song information and the song search request information are judged Match, and show this group of song information.
Second aspect, device is searched the embodiments of the invention provide a kind of song, including:
Solicited message receiving unit, the song search request information for receiving user's input, the song search request Information includes the image file for being used to search song;
Searching unit, the image information for obtaining described image file, and according to described image information in the server Carry out song lookup;
Song confirmation unit, for when lookup result only includes one group of song information, judging this group of song information and institute Song search request information match is stated, and shows this group of song information.
The beneficial effect that the embodiment of the present invention exists compared with prior art is:The embodiment of the present invention is defeated by receiving user The song search request information entered, the image information of the image file in song search request information is carried out in the server Song is searched, and when lookup result only includes one group of song information, judges this group of song information and song search request information phase Matching, and this group of song information is shown, thus provide a kind of higher song of simple operation and search mode, and avoid searching As a result there is the song information of redundancy, improve the degree of accuracy of song lookup.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process figure of song lookup method provided in an embodiment of the present invention;
Fig. 2 is the implementation process figure for the song lookup method that another embodiment of the present invention is provided;
Fig. 3 is to extract characteristic from described image file described in song lookup method provided in an embodiment of the present invention Implement flow chart;
Fig. 4 is the structured flowchart that song provided in an embodiment of the present invention searches device.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows the implementation process figure of song lookup method provided in an embodiment of the present invention, and details are as follows:
In step S101, the song search request information of user's input is received, the song search request information includes Image file for searching song.
Herein, image file can be song picture, album cover picture or singer's picture, be not limited thereto.
In step s 102, the image information of described image file is obtained, and according to described image information in the server Carry out song lookup.
Preferably, described image information includes image name, image size, image type, image taking person or image Shooting time.
Wherein, the image size in image information refers to the dimension information of image, it may for example comprise image X-axis pixel count With Y-axis pixel count.Image type in image information refer to JPEG (Joint Photographic Experts Group, Joint Photographic Experts Group) image file format or BMP (Bit Map, bitmap) image file format etc., do not limit herein It is fixed.Image taking person in image information potentially includes the title of the affiliated record company of singer, is not limited thereto.
After the image information for obtaining image file, song lookup is carried out according to image information in the server.
In step s 103, when lookup result only includes one group of song information, this group of song information and the song are judged Bent search request information match, and show this group of song information.
When the lookup result obtained according to image information includes and only includes one group of song information, largely Show the song search request information match that this group of song information is inputted with user.Image in song search request information When file is song picture, this group of song information only includes the song information of a song;When in song search request information When image file is album cover picture, song information of the suite of song song packet containing whole special edition;When song search request letter When image file in breath is singer's picture, the song information of all songs of the suite of song song packet containing the singer.
It should be noted that lookup result only refers to the song information that lookup result is obtained including one group of song information Point to same group of song information.For example, lookup result includes the lookup result of 6 websites, the lookup result pair of this 6 websites The song information answered is song A, song B, song C and song D.
When lookup result only includes one group of song information, judge that this group of song information is searched with the song that user inputs and ask Information match is sought, and this group of song information is shown with tabular form.
Fig. 2 shows the implementation process figure for the song lookup method that another embodiment of the present invention is provided, reference picture 2:
In step s 201, the song search request information of user's input is received, the song search request information includes Image file for searching song;
In step S202, the image information of described image file is obtained, and according to described image information in the server Carry out song lookup;
In step S203, when lookup result only includes one group of song information, this group of song information and the song are judged Bent search request information match, and show this group of song information;
In step S204, when the lookup result includes at least two groups song informations or does not include any one suite of song song During information, the song associated data matched with described image file is searched from the server;
In step S205, one group of song information corresponding with the song associated data is obtained, and show that the suite of song is bent Information.
When lookup result includes at least two groups song informations or do not include any one group of song information, show basis The image information of image file can not obtain accurate song information.In this case, the song that user inputs is searched please Ask the image file in information to be analyzed, the song matched with image file is searched in the song features database of server Associated data, obtains one group of song information corresponding with song associated data, and show further according to the map listing prestored This group of song information obtained.
Herein, song features database is pre-established in the server.Song features database purchase is associated with song The corresponding song associated data of image.Song associated data is the image feature data extracted from song associated images.
Further, the song matched with described image file is searched described in step S204 from the server to associate Data include:
Characteristic is extracted from described image file, and is searched and institute from the server according to the characteristic State the song associated data of characteristic matching.
It should be noted that the characteristic of image file is matched with song associated data, it is allowed to the feature of image file There is overall deviation in the pixel coordinate value and color value of data and song associated data.For example, the characteristic of image file Pixel color value of the pixel color value on the whole than song associated data it is darker.
Fig. 3 is shown extracts feature described in song lookup method provided in an embodiment of the present invention from described image file Data implement flow chart, reference picture 3:
In step S301, counted according to the coordinate value of each pixel in described image file and color value generation first Group;
In step s 302, the maximum color value of ratio in first array is determined, and according to ratio maximum Color value and preset value determine that background color is interval;
In step S303, element of the color value in the background color is interval is rejected from first array, is obtained To the characteristic.
The coordinate value and color value of each pixel in image file as the first array an element, for example, should Element is represented by (X, Y, A, R, G, B), wherein, X represents coordinate value of the pixel in X-axis, and Y represents seat of the pixel in Y-axis Scale value, A represents the transparency of the pixel, and R, G and B represent the color value of the red, green and blue of the pixel respectively.The member of first array Prime number is equal to the pixel count of image file.In first data the maximum color value of ratio be (A, R, G, B) be (70,120,230, 180), preset value is 20, then the A values during background color is interval are more than or equal to 50 and less than or equal to 90, and background color is interval In R values be more than or equal to 100 and less than or equal to 130, the G values during background color is interval more than or equal to 210 and be less than or Equal to 250, the B values during background color is interval are more than or equal to 160 and less than or equal to 200.If the A values of some element, R Value, G values and B values in the interval defined scope of background color, then reject the element.
It should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the elder generation of execution sequence Afterwards, the execution sequence of each process should be determined with its function and internal logic, the implementation process structure without tackling the embodiment of the present invention Limited into any.
The embodiment of the present invention is by receiving the song search request information that user inputs, according in song search request information The image information of image file carry out song lookup in the server, when lookup result only includes one group of song information, sentence Fixed this group of song information and song search request information match, and this group of song information is shown, thus provide a kind of operation The higher song of convenience searches mode, and avoids lookup result from there is the song information of redundancy, improves the standard of song lookup Exactness.
Fig. 4 shows that song provided in an embodiment of the present invention searches the structured flowchart of device, and the device can be used for operation Song lookup method described in Fig. 1 to Fig. 3.For convenience of description, it illustrate only the part related to the embodiment of the present invention.
Reference picture 4, described device includes:
Solicited message receiving unit 41, the song search request information for receiving user's input, the song is searched please Information is asked to include the image file for being used to search song;
Searching unit 42, the image information for obtaining described image file, and according to described image information in server Middle progress song lookup;
Song confirmation unit 43, for when lookup result only include one group of song information when, judge this group of song information with The song search request information match, and show this group of song information.
Preferably, described image information includes image name, image size, image type, image taking person or image Shooting time.
Preferably, the searching unit 42 is additionally operable to:
When the lookup result includes at least two groups song informations or do not include any one group of song information, from described The song associated data matched with described image file is searched in server;
The song confirmation unit 43 is additionally operable to:
One group of song information corresponding with the song associated data is obtained, and shows this group of song information.
Preferably, the searching unit 42 specifically for:
Characteristic is extracted from described image file, and is searched and institute from the server according to the characteristic State the song associated data of characteristic matching.
Preferably, the searching unit 42 includes:
First array generates subelement 421, for the coordinate value and color according to each pixel in described image file Value the first array of generation;
Background color interval determination subelement 422, for determining the maximum color value of ratio in first array, and root Determine that background color is interval according to the maximum color value of the ratio and preset value;
Characteristic computation subunit 423, for rejecting color value from first array in the background color area Between in element, obtain the characteristic.
The embodiment of the present invention is by receiving the song search request information that user inputs, according in song search request information The image information of image file carry out song lookup in the server, when lookup result only includes one group of song information, sentence Fixed this group of song information and song search request information match, and this group of song information is shown, thus provide a kind of operation The higher song of convenience searches mode, and avoids lookup result from there is the song information of redundancy, improves the standard of song lookup Exactness.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the device of foregoing description With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, be will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed apparatus and method Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication link of unit Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (4)

1. a kind of song lookup method, it is characterised in that including:
The song search request information of user's input is received, the song search request information includes the image for being used to search song File;
The image information of described image file is obtained, and song lookup is carried out according to described image information in the server;
When lookup result includes at least two groups song informations or do not include any one group of song information, from the server Search the song associated data matched with described image file;
One group of song information corresponding with the song associated data is obtained, and shows this group of song information;
When lookup result only includes one group of song information, this group of song information and the song search request information phase are judged Match somebody with somebody, and show this group of song information;
The song associated data matched with described image file of being searched from the server includes:
Characteristic is extracted from described image file, and is searched and the spy from the server according to the characteristic Levy the song associated data of Data Matching;
Characteristic is extracted in the file from described image to be included:
First array is generated according to the coordinate value of each pixel in described image file and color value;
The maximum color value of ratio in first array is determined, and it is true according to the maximum color value of the ratio and preset value Determine background color interval;
Element of the color value in the background color is interval is rejected from first array, the characteristic is obtained.
2. the method as described in claim 1, it is characterised in that described image information includes image name, image size, image Type, image taking person or image capturing time.
3. a kind of song searches device, it is characterised in that including:
Solicited message receiving unit, the song search request information for receiving user's input, the song search request information Including the image file for searching song;
Searching unit, the image information for obtaining described image file, and carried out in the server according to described image information Song is searched;
Song confirmation unit, for when lookup result only includes one group of song information, judging this group of song information and the song Bent search request information match, and show this group of song information;
The searching unit is additionally operable to:
When lookup result includes at least two groups song informations or do not include any one group of song information, from described image file Middle extraction characteristic, and the song pass matched with the characteristic is searched from the server according to the characteristic Join data;
The song confirmation unit is additionally operable to:
One group of song information corresponding with the song associated data is obtained, and shows this group of song information;
The searching unit includes:
First array generates subelement, for generating the according to the coordinate value of each pixel in described image file and color value One array;
Background color interval determination subelement, for determining the maximum color value of ratio in first array, and according to described The maximum color value of ratio and preset value determine that background color is interval;
Characteristic computation subunit, for rejecting member of the color value in the background color is interval from first array Element, obtains the characteristic.
4. device as claimed in claim 3, it is characterised in that described image information includes image name, image size, image Type, image taking person or image capturing time.
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 CN104573132A (en) 2015-04-29
CN104573132B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

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:用图片搜索你想要的";蓝色的爱;《互联网天地》;20091231;全文 *

Also Published As

Publication number Publication date
CN104573132A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN109067541B (en) Data verification method and device based on block chain and electronic equipment
CN109510737B (en) Protocol interface testing method and device, computer equipment and storage medium
US10972267B2 (en) Deterministic verification of digital identity documents
CN108197532A (en) The method, apparatus and computer installation of recognition of face
CN107341220A (en) A kind of multi-source data fusion method and device
CN104573132B (en) Song lookup method and device
CN104579909B (en) Method and equipment for classifying user information and acquiring user grouping information
US20210390093A1 (en) Blockchain-based recording and querying operations
CN109740129B (en) Report generation method, device and equipment based on blockchain and readable storage medium
WO2016101811A1 (en) Information arrangement method and apparatus
CN106547646B (en) Data backup and recovery method and data backup and recovery device
CN110502664A (en) Video tab indexes base establishing method, video tab generation method and device
CN107590267A (en) Information-pushing method and device, terminal and readable storage medium storing program for executing based on picture
CN103927348B (en) Image processing method, information acquisition method and device
CN110209714A (en) Report form generation method, device, computer equipment and computer readable storage medium
CN106997350A (en) A kind of method and device of data processing
CN108809896A (en) A kind of information calibration method, device and electronic equipment
CN110209582A (en) The statistical method and device of code coverage, electronic equipment, storage medium
CN109492031A (en) Display methods, server and the computer storage medium of list data
CN112597525A (en) Data processing method and device based on privacy protection and server
CN107391533A (en) Generate the method and device of graphic data base Query Result
CN111143546A (en) Method and device for obtaining recommendation language and electronic equipment
CN113592529B (en) Potential customer recommendation method and device for bond products
CN113010775B (en) Information recommendation method and device and computer equipment
CN105989064A (en) Record information checking method and device

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