Skip to content

Commit

Permalink
UPDATE: use headless version of opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
Segelzwerg committed Nov 24, 2020
1 parent 4905f4f commit 157b6ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arm64.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN uname -a
RUN apt-get update -qq
RUN apt-get install build-essential git -yq
# this is temporary until opencv-python is released on pypi with arm64 support
RUN pip install --default-timeout=1000 git+https://github.com/skvark/opencv-python.git
# RUN pip install --default-timeout=1000 git+https://github.com/skvark/opencv-python.git
RUN pip install --default-timeout=1000 -r requirements.txt
WORKDIR /app
ENV FLASK_APP family_foto
Expand Down
2 changes: 1 addition & 1 deletion family_foto/models/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ def thumbnail(self, width: int, height: int):
raise IOError(f'could not write {path}')
path = resize(path, self.filename, width, height)
video.release()
cv2.destroyAllWindows()
#cv2.destroyAllWindows()
return path
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Flask-Reuploaded~=0.3.2
Flask-WTF~=0.14.3
Werkzeug~=1.0.1
WTForms~=2.3.3
opencv-python~=4.4.0.46
opencv-python-headless~=4.4.0.46
pylint~=2.6.0
pylint-flask~=0.6
pylint-flask-sqlalchemy~=0.2.0
Expand Down

0 comments on commit 157b6ca

Please sign in to comment.