The main purpose of using OCR and cropping a particular portion of the image was to accurately extract Hindi and Sanskrit text.