A Python code that allowed detect namecard, business card, ATM/VISA card border using OpenCV library
You need to install OpenCV version 3.x.x or 4.x.x and Google Vision SDK (take a look in References)
Clone the project
git clone https://github.com/dthphuong/card-detection-with-opencv.gitGo to the project directory
cd card-detection-with-opencvInstall packages
pip install -r requirements.txtSet the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path of the JSON file that contains your service account key
Let's rock
python run.py -i c8.jpg -o o8.jpg- https://cloud.google.com/vision/docs/quickstart-client-libraries
- https://cloud.google.com/vision/docs/ocr#vision_text_detection-python
Dương Trần Hà Phương (Mr.) - CEO Công ty TNHH FPO
- Email: phuongduong@fpo.vn
- Website: https://phuongduong.fpo.vn
- Gitlab: @dthphuong1
- Github: @dthphuong