Commit graph

126 commits

Author SHA1 Message Date
Will Drevo
b9efcd545d README.md edits 2014-11-21 01:29:27 -05:00
Will Drevo
3cc85edf30 Clarified documentation 2014-11-21 01:28:04 -05:00
Will Drevo
684902f6b8 Now returns match offset into track in seconds 2014-11-21 01:21:08 -05:00
worldveil
5741964391 Merge pull request #59 from chromy/patch-1
Fix README typo
2014-09-13 18:48:19 -04:00
Hector Dearman
9d16c8ae8c Fix README typo
cupus => corpus
2014-09-13 22:30:31 +01:00
Andrew Duberstein
09561c565d Update README.md
Corrected a typo
2014-09-11 17:40:03 -07:00
worldveil
40b7a42b09 Updated README.md about matching position in song 2014-07-27 12:50:34 -04:00
Will Drevo
a7f77d50ff Added more documentation in README about testing 2014-07-03 01:01:56 -04:00
Will Drevo
60d9d6758e Added annotations for different fingerprinting parameters 2014-07-03 00:43:40 -04:00
Will Drevo
a779ca4cf9 Merging in new test suite with modifications, mp3 example files to test on, and shell files for automation 2014-07-03 00:26:50 -04:00
Will Drevo
7cbb894501 revamped testing script 2014-07-02 23:49:38 -04:00
Will Drevo
b966225ad4 refactored testing suite file to no longer depend on file naming convention 2014-07-01 20:24:53 -04:00
Fabio Costa
4f4a50ba9f Update results_dejavu.py 2014-06-29 22:28:03 +01:00
Fabio Costa
f9a59e42e6 Update generate-test-files.py 2014-06-29 22:25:39 +01:00
Fabio Costa
87469a0fe7 Create results_dejavu.py 2014-06-28 19:51:14 +01:00
Fabio Costa
bfff19b887 Create generate-test-files.py 2014-06-28 19:50:36 +01:00
Fabio Costa
a97ab6d35c Update fingerprint.py 2014-06-26 09:13:30 +01:00
Fabio Costa
375189cf70 Update fingerprint.py 2014-06-25 10:01:43 +01:00
Fabio Costa
5805a676d2 Update fingerprint.py 2014-06-25 09:57:06 +01:00
Fabio Costa
35c536a372 Update fingerprint.py 2014-06-25 09:56:45 +01:00
worldveil
e1454bf1ea Incorporated MAX_HASH_TIME_DELTA optimization 2014-03-05 01:30:19 -05:00
worldveil
3c6b741db4 Merge branch 'patch-1' of https://github.com/suxianbaozi/dejavu 2014-03-05 01:29:18 -05:00
worldveil
c90d14fdd6 Fix to dejavu.py script, small edits, removal of unecessary printing 2014-03-05 01:28:34 -05:00
worldveil
2e6d030655 Merge branch 'master' of https://github.com/compwright/dejavu 2014-03-05 01:16:38 -05:00
suxianbaozi
f41d036d45 fix #39
Make the two point for hash with little delta of time
2014-03-04 16:44:35 +08:00
worldveil
1e3dbe8eaf Formatting 2014-02-23 11:30:24 -05:00
worldveil
fec889db78 Merge branch 'patch-1' of https://github.com/suxianbaozi/dejavu 2014-02-23 11:29:29 -05:00
Jonathon Hill
12ca65546d Added a dejavu.py script and added documentation 2014-02-22 18:56:07 -05:00
suxianbaozi
7cc178444e change the start of j val to 1
when j=0  ,i+j is alse equal to i,that will make so many same hashes from diffent songs
2014-02-21 15:29:46 +08:00
Bhuvanesh Kumar
ea748847ed fixed multiple issues to prevent refingerprinting songs in same dejavu instance
* fixed code to prevent refingerprinting song if it is already fingerprinted in fingerprint_file()
	* fixed code to prevent multiple fingerprinting of songs in same dejavu instance
2014-02-21 03:00:15 +05:30
Bhuvanesh Kumar
3fe99ac5c3 fixing fingerprinted column of songs table not getting updated to 1. 2014-02-21 01:13:42 +05:30
worldveil
eefcf0991c Corrected fingerprints table schema, fixes #26 2014-01-26 12:28:40 -05:00
Wessie
64a6161b90 Rewrote multiprocessing parts to only require one database connection
List of changes in detail:
- fingerprint_directory:
	Now uses mp.Pool.imap and updates database in callers
	process.
- fingerprint_file:
	Now uses _fingerprint_worker internally.
- _fingerprint_worker:
	Some slight changes to argument handling due to `imap`
	usage.

	Changed to return (song_name, hashes) where hashes is
	a set of hashes from all channels.
- path_to_songname:
	Changed to use `os.path.splitext`, this caused files with
	a period in their name to return the wrong name.
2014-01-20 20:53:25 +01:00
worldveil
cd7adc1485 Fixes #17 by adding configuration parameter for fingerprinting seconds, preserves this in FileRecognizer, and documents this in the README 2014-01-07 23:25:55 -05:00
worldveil
9eca3cc05a bugfixes and tweaks. also now returns offset of matched song 2013-12-25 02:56:43 -06:00
Wessie
7d14e0734a Switched fingerprint_directory to using multiprocessing.Pool
Fixed an issue of 'grouper' items being generators due to ifilter usage.
Temporary fix applied for the need of referencing SQLDatabase.FIELD_SONGNAME in __init__
Cleaned up some pep8 style issues
2013-12-23 14:59:08 +01:00
Wessie
e071804ea5 Fixed the issue of the default database not being imported.
Fixed a bug in the SQL database pertaining to the use of grouper.
Made SQLDatabase pickleable, for better multiprocessing support.
2013-12-21 12:01:05 +01:00
Wessie
f276efdf32 Cleaned up database.py
- Moved SQLDatabase to a SQL specific file
- Database class is now an abstract base class
- Cursor moved into SQL specific file
- Allowed for multi-database support in the future
2013-12-20 18:16:35 +01:00
Wessie
ec823f56e4 Updated go.py
Added clarification that the configuration is now an ordinary python
dictionary to the README.
2013-12-19 17:15:11 +01:00
Wessie
2f19fcaa51 Fixed some mistakes in my hasty edit 2013-12-19 01:39:36 +01:00
Wessie
94c4cc0d95 Updated README for the changes to the interface.
Changed default value from None to 10 for the MicrophoneRecognizer.recognize
2013-12-19 01:34:04 +01:00
Wessie
292ddf029d Reversed expected variables to the correct position. 2013-12-19 01:22:27 +01:00
Wessie
29029238fc A fairly big batch of changes, blame me to forget committing
Changes in no particular order:
- Replaced all use cases of wavfile/wave and extract_channels with the new decoder.read function
- Added a 'recognize' method to the Dejavu class. This is a shortcut for recognizing songs.
- Renamed 'do_fingerprint' into 'fingerprint_directory'
- Removed parameters not required anymore from fingerprint_directory
- Cleaned up fingerprint.py
- Made fingerprint.generate_hashes a generator
- WaveFileRecognizer is now FileRecognizer and can take any formats supported by pydub
- Fixed MicrophoneRecognizer to actually run, previous version had many small mistakes
- Renamed 'fingerprint_worker' to '_fingerprint_worker' to signify it is not to be used publicly
- Moved 'chunkify' outside the Dejavu class
- Cleaned up pep8 styling mistakes in all edited files.
2013-12-19 00:54:17 +01:00
Wessie
7895bae23e Fixed any references to old converter to use the new functions.
- Reversed return values in decode.read
2013-12-18 18:15:57 +01:00
Wessie
8a7358d426 Added the fix for issue #13 in the original repository. 2013-12-18 18:11:23 +01:00
Wessie
7122e110d1 Cleaned up convert.py and renamed it to decode.py
- 'Converter' class removed
- 'ensure_folder' removed
- 'find_files' changed into a generator and made it work with spaces
- 'convert' renamed into 'read'
- 'convert' now handles any supported file by pydub
- 'convert' now returns the data instead of saving it to a file (same format as 'extract_channels')
- generic cleanup of formatting in the file
2013-12-18 18:02:07 +01:00
worldveil
48d7e8ecee small fixes to pguridi PR 2013-12-18 00:31:00 -06:00
Pedro Guridi
880af4a5b9 fixes #15, adds handling for KeyboardInterrupt. added some handling for #4, now skips file not sampled at 44100hz 2013-12-18 00:38:27 -03:00
Pedro Guridi
907637a633 fixes #9, now works well with spaces in filenames 2013-12-17 20:33:40 -03:00
Wessie
3b72768f94 Fixed various small things that weren't caught before.
- Fixes SQL queries for table creations
- Table creation is now down in reverse order to accompany the foreign key
- Fixed a typo in the BaseRecognizer that caused it to not work
- Changed configuration passed to Dejavu into a (nested) dictionary
2013-12-18 00:31:57 +01:00