you have to install python > 3.7.0, you can download python for windows from here: https://www.python.org/downloads/windows/
pip install --upgrade virtualenv
virtualenv envname
cd envname/
cd bin/
activate
cd ..
cd ..
pip install -r requirements.txt
python detect.py --source text.jpg --weights arabic_handwritten_text.pt --save-crop
The results will be saved at runs/detect/exp/text.jpg
python train.py --img 640 --batch 16 --epochs 50 --data data.yaml --weights yolov5s.pt
open this link: https://colab.research.google.com/drive/1hSUhID3UHnn5NkZvkEv_qJqA8D6N7Wd3?usp=sharing
Run all the cells to get the output of the text image sample.