Code Monkey home page Code Monkey logo

face-swiping-time-attendance-system's People

Contributors

mengyue0722 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

face-swiping-time-attendance-system's Issues

开启签到报错:RuntimeError: Working outside of application context.

开启课程签到后,/teacher/video_feed接口报错。非python开发者,只是跑项目起来玩玩,但是发现有这个错误,导致无法签到了。
环境:
1.python 3.8.10
2.window11

127.0.0.1 - - [23/May/2023 08:46:56] "GET /teacher/video_feed HTTP/1.1" 500 -
127.0.0.1 - - [23/May/2023 08:46:56] "GET /teacher/now_attend HTTP/1.1" 200 -
Error on request:
Traceback (most recent call last):
File "D:\sort\python3.10.8\lib\site-packages\werkzeug\serving.py", line 364, in run_wsgi
execute(self.server.app)
File "D:\sort\python3.10.8\lib\site-packages\werkzeug\serving.py", line 327, in execute
for data in application_iter:
File "D:\sort\python3.10.8\lib\site-packages\werkzeug\wsgi.py", line 289, in next
return self._next()
File "D:\sort\python3.10.8\lib\site-packages\werkzeug\wrappers\response.py", line 32, in _iter_encoded
for item in iterable:
File "E:\workspace\giantstart\project\Face-swiping-Time-Attendance-System-main\Face-swiping-Time-Attendance-System-main\app\teacher.py", line 364, in gen
frame = camera.get_frame(cid)
File "E:\workspace\giantstart\project\Face-swiping-Time-Attendance-System-main\Face-swiping-Time-Attendance-System-main\app\teacher.py", line 162, in get_frame
if self.get_face_database(cid):
File "E:\workspace\giantstart\project\Face-swiping-Time-Attendance-System-main\Face-swiping-Time-Attendance-System-main\app\teacher.py", line 102, in get_face_database
from_db_all_features = Faces.query.all()
File "D:\sort\python3.10.8\lib\site-packages\flask_sqlalchemy\model.py", line 31, in get
cls, session=cls.fsa.session() # type: ignore[arg-type]
File "D:\sort\python3.10.8\lib\site-packages\sqlalchemy\orm\scoping.py", line 218, in call
sess = self.registry()
File "D:\sort\python3.10.8\lib\site-packages\sqlalchemy\util_collections.py", line 640, in call
key = self.scopefunc()
File "D:\sort\python3.10.8\lib\site-packages\flask_sqlalchemy\session.py", line 102, in _app_ctx_id
return id(app_ctx._get_current_object()) # type: ignore[attr-defined]
File "D:\sort\python3.10.8\lib\site-packages\werkzeug\local.py", line 508, in _get_current_object
raise RuntimeError(unbound_message) from None
RuntimeError: Working outside of application context.

This typically means that you attempted to use functionality that needed
the current application. To solve this, set up an application context
with app.app_context(). See the documentation for more information.

功能结构图

大佬请问可以把你的功能结构图、设计的报告借我看看吗 你的系统我登进去了但是不会用 想借鉴一下你的毕设 谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.