зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-28 20:54:14 +02:00
* read image into nb * test * added keras-ocr and google vision * google cloud vision by far the best * setting up docker for text 1 * move widgets and analysis to display module * move widgets and analysis to display module - 2 * text on image through widgets
27 строки
780 B
Docker
27 строки
780 B
Docker
FROM jupyter/base-notebook:2022-06-06
|
|
|
|
# Install system dependencies for computer vision packages
|
|
USER root
|
|
RUN apt update && apt install -y gcc libgl1 libglib2.0-0 libsm6 libxrender1 libxext6 tesseract-ocr
|
|
USER $NB_USER
|
|
|
|
# Copy the repository into the container
|
|
COPY --chown=${NB_UID} . /opt/misinformation
|
|
|
|
# Install the Python package
|
|
RUN python -m pip install /opt/misinformation
|
|
|
|
# Make JupyterLab the default for this application
|
|
ENV JUPYTER_ENABLE_LAB=yes
|
|
|
|
# Export where the data is located
|
|
ENV XDG_DATA_HOME=/opt/misinformation/data
|
|
|
|
# Copy notebooks into the home directory
|
|
RUN rm -rf $HOME/work
|
|
RUN cp /opt/misinformation/notebooks/*.ipynb $HOME
|
|
|
|
# Bundle the pre-built models (that are downloaded on demand) into the
|
|
# Docker image.
|
|
RUN misinformation_prefetch_models
|