Comments (1)
I found the solution. I wrapped the code in a function and run it in main.
from dejavu import Dejavu
def fingerprint():
config = {
"database": {
"host": "localhost",
"user": "root",
"password": "",
"database": "dejavu",
}
}
djv = Dejavu(config)
djv.fingerprint_directory("mp3", [".wav"], 0)
print(djv.db.get_num_fingerprints())
if __name__ == '__main__':
fingerprint()
It worked like a charm.
from dejavu.
Related Issues (20)
- A directory of potentially duplicate audio files?
- it works well with python3.6 ~
- Not working for recordings
- Some errors when I use python3.7
- multiple concurrency
- Fingerprinting Audio With Differing Sample Rates HOT 1
- Jscght
- figerprinting file HOT 1
- Any way to generate the result image of the plots? HOT 1
- Does this package supports Python 3 HOT 4
- does this project work well on recognizing human speak? HOT 5
- erors using fingerprint_file HOT 1
- Audio file
- Recognize TV shows using an HLS playlist HOT 6
- psycopg2.OperationalError
- Implementing Dejavu System with Individual Fingerprint Tables for Audio Files
- 代码可读性太差了,为了炫技而炫技,屎一样
- Alternative implementations HOT 2
- is this package has support for python3 ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dejavu.