You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get this package up and running in a docker image (Ubuntu 18.04), and everything seems to go smoothly until I try and run the video example. When I run it I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/fer/classes.py", line 176, in analyze
assert self.cap.open(self.filepath), "Video capture not opening"
AssertionError: Video capture not opening
I'm assuming that this is because in docker you can't open Xwindow by default, so I turned the display=True to display=False but I still get the error. The image example works fine. Outside of docker, I can run the video example OK, and can even run:
Without it opening an additional window. Any ideas on a work-around?
Thanks
PS - I noticed when I built my docker image that you are missing requests from requirements.txt, and some of the code seems to only be compatible with python >= 3.6, not 3.4. Just a heads up!
The text was updated successfully, but these errors were encountered:
Thanks for your feedback and suggestions! I updated requirements and fixed a bug in the pandas and csv conversions in 61afcaa. Please feel free to try the new fer==0.1.2.
Regarding the docker issue, can you provide the code where this issue occurs? I didn't have the same problem, but it may be due to the docker image. Please try it with something similar:
FROM jjanzic/docker-python3-opencv
COPY . /usr/local/src
WORKDIR /usr/local/src
RUN pip3 install fer
ENTRYPOINT ["bash"]
The opencv installed must have support for FFMPEG to handle video capture, and not all pip binaries are built with that.
@d-bohn. I ran into the same issue on Travis CI, and fixed it by unpinning the opencv version and adding both opencv-python and opencv-contrib-python. Please try again with fer==0.1.3.
Hey,
Great package. Thank you for developing this!
I'm trying to get this package up and running in a docker image (Ubuntu 18.04), and everything seems to go smoothly until I try and run the video example. When I run it I get:
I'm assuming that this is because in docker you can't open Xwindow by default, so I turned the
display=True
todisplay=False
but I still get the error. The image example works fine. Outside of docker, I can run the video example OK, and can even run:Without it opening an additional window. Any ideas on a work-around?
Thanks
PS - I noticed when I built my docker image that you are missing
requests
fromrequirements.txt
, and some of the code seems to only be compatible with python >= 3.6, not 3.4. Just a heads up!The text was updated successfully, but these errors were encountered: