tabvn / face-recognition-service Goto Github PK
View Code? Open in Web Editor NEWFace recognition online service, allow user training it.
Face recognition online service, allow user training it.
Getting this error when running the app.py file after training the image
Traceback (most recent call last):
File "C:\Users\ayush\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\ayush\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\ayush\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\ayush\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\ayush\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\ayush\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "e:/Projects from Yadvi's Laptop/PycharmProjects/image_classifier/app.py", line 107, in train
user_id = app.db.insert('INSERT INTO users(name, created) values(?,?)', [name, created])
File "e:\Projects from Yadvi's Laptop\PycharmProjects\image_classifier\db.py", line 22, in insert
cursor = self.connection.cursor()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 23052 and this is thread id 14488
Hello sir I'm getting this error while executing this code on Ubuntu. When I click train image button unknown error is shown. Although the trained image is stored in trained folder but it's not updated in database. Would you please just let me know why this is occurred & how to resolve this.
2018-10-13 13:13:22,583] ERROR in app: Exception on /api/train [POST]
Traceback (most recent call last):
File "/home/amey/face/venv/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/amey/face/venv/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/amey/face/venv/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/amey/face/venv/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/amey/face/venv/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/amey/face/app.py", line 105, in train
user_id = app.db.insert('INSERT INTO users(name, created) values(?,?)', [name, created])
File "/home/amey/face/db.py", line 22, in insert
cursor = self.connection.cursor()
ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 139786747606784 and this is thread id 139786474350336
127.0.0.1 - - [13/Oct/2018 13:13:22] "POST /api/train HTTP/1.1" 500 -
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.