I was trying to run a python project located here which is for ad detection inside a video. I installed the required dependencies on my Ubuntu 16.04 (by running the dependencies.sh
). I changed the comdet.py
main part to account for my input file:
def test_recognize():
#input_file_path = '../test/test.mp4'
input_file_path = '../test/nadal-news.mp4'
ad_det = ComDet()
ad_det.recognize_ads_file(input_file_path)
if __name__ == '__main__':
#test_generate()
test_recognize()
Based on the instruction, I just do python2.7 comdet.py
. After a few dependencies and import problems, now it complaints about not being connected to the local SQL database:
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (111)")
What is the problem?
I thought maybe I should run start-server.sh
located in src/web
, but that does nothing. I'm new to python.
UPDATE: I set a password for my mysql installation. And then I update the password in comdet.py
as below. Plus, I have to manually create a database called devaju
in mysql command line.
config.setdefault('database', {
"host": "127.0.0.1",
"user": "root",
"passwd": "root",
"db": "dejavu"
})
Now the program runs, but nothing happens. No prints, nothing. Maybe I'm doing something wrong?