File size: 1,042 Bytes
e08a3a6
a13b505
d284d57
467846a
443384f
 
 
 
e1b7b71
d284d57
 
6ebfee3
eb23f33
 
 
35ff902
eb23f33
 
e08a3a6
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
sudo pip install -U jupyter
conda install -c conda-forge tesseract
pip install -r https://raw.githubusercontent.com/stafazzoli/FarsiOCR/master/requirements.txt
sudo apt update && apt upgrade
sudo apt-get update && apt-get install libgl1
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y
sudo apt-get update && apt-get install ffmpeg libsm6 libxext6  -y
sudo mkdir -p /usr/local/share/tessdata && wget -O /usr/local/share/tessdata/fas.traineddata "https://github.com/tesseract-ocr/tessdata/raw/main/fas.traineddata"
git clone https://github.com/Aliync/FarsiOCR.git
sudo python FarsiOCR/src/ocr.py
apt install wget
pip install tensorflow
pip install sentencepiece
pip install keras_nlp
pip install -U scikit-learn scipy matplotlib
pip install pandas
pip install huggingface_hub
# Write some commands here that will run on root user before startup.
# For example, to clone transformers and install it in dev mode:
# git clone https://github.com/huggingface/transformers.git
# cd transformers && pip install -e ".[dev]"