#!/bin/sh
set -e

if [ "$1" = "configure" ]; then
    echo "================================================================="
    echo " Copa OCR (AILinux): Installing EasyOCR & AI Dependencies...     "
    echo " This download is about ~1 GB and may take several minutes!    "
    echo "================================================================="
    PIP_BREAK_SYSTEM_PACKAGES=1 pip3 install --ignore-installed easyocr || echo "Warning: Failed to completely install easyocr via pip."
fi

#DEBHELPER#

exit 0
