Closed shahabes closed 1 year ago
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.
I'm new using the Dejavu library. I've created a new project and used the library.
After some installations using pip, I face the following problem. I also added the ffmpeg to my path (Windows). Please help me solve the problem.