Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.14 KB

File metadata and controls

48 lines (31 loc) · 1.14 KB

Card detection with OpenCV

A Python code that allowed detect namecard, business card, ATM/VISA card border using OpenCV library

Installation

You need to install OpenCV version 3.x.x or 4.x.x and Google Vision SDK (take a look in References)

Run

Clone the project

  git clone https://github.com/dthphuong/card-detection-with-opencv.git

Go to the project directory

  cd card-detection-with-opencv

Install packages

pip install -r requirements.txt

Set 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

References

Author

Dương Trần Hà Phương (Mr.) - CEO Công ty TNHH FPO