/fake_certificate_generator

A simple code for generating certificate image

Primary LanguagePythonMIT LicenseMIT

fake certificate generator

A simple code for generating fake certificate,academic research only

envioriment

pip install -r requirements.txt 

if no pip module found on your machine,you should install one first

usage

  • generate idcard image
python gen_idcard.py

image

  • generate vehicle license
python gen_vehicle_license.py

image

  • generate driving license
python gen_driving_license.py

image

  • generate business license
python gen_business_license.py

image

  • generate image with given text
python gen_text_line.py

image
if no error occurs,you can see the result in res dir ,otherwise you should change the line

_, contours, _= cv2.findContours(binary, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

to

contours, _= cv2.findContours(binary, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)