Skip to content

Commit

Permalink
Fix: importacion de librerias funcionando (pero no funciona serividor)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbarron committed May 13, 2021
1 parent e66cb6a commit 37f0566
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ celerybeat-schedule
.venv
venv/
ENV/
cctv_venv/

# Spyder project settings
.spyderproject
Expand Down
7 changes: 4 additions & 3 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from model.openCv.OpenCv import OpenCV
import threading


print(os.getcwd())
with open('app_cfg.json') as file:
app_cfg = json.load(file)

Expand All @@ -18,10 +18,11 @@
#configuracion inicial

app.config['UPLOAD_FOLDER'] = app_cfg['videos_path']
#model_cfg = app_cfg['default_model'] # por defecto opencv_320
#app.config['UPLOAD_FOLDER'] = "../server/files"
#model_cfg = app_cfg['x'] # por defecto opencv_320
#para cambiar modelo ----> remplazar x con un numero del 1 al 5
# 1 = opencv_320 2 = opencv_416 3 = opencv_608 4 = opencv_tiny 5 = keras
model_cfg = app_cfg['models']['5']
model_cfg = app_cfg['5']


#homepage
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def run(self):
# entry_points={
# 'console_scripts': ['mycli=mymodule:cli'],
# },
install_requires= [ "flask","gdown","numpy==1.19.2","python-opencv","tensorflow-gpu","keras","pillow","matplotlib","tqdm"],
install_requires= [ "flask","gdown","numpy==1.19.2","opencv-python","tensorflow-gpu","keras","pillow","matplotlib","tqdm"],
include_package_data=True,
license='GNU Affero General Public License v3 or later (AGPLv3+)',
classifiers=[
Expand Down

0 comments on commit 37f0566

Please sign in to comment.