This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import pytesseract | |
def get_captcha(path): | |
img = cv2.imread(path) | |
h,w=img.shape[:2] | |
# cropping borders | |
# img = img[5:h-4,5:w-5] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Simple YOLOv5 Inference in Pytorch | |
Run following commands: | |
git clone https://github.com/ultralytics/yolov5.git | |
cd yolov5 | |
pip install -r requirements.txt | |
run this script in /path/to/yolov5 directory | |
''' |
NewerOlder