A simple code for generating fake certificate,academic research only
pip install -r requirements.txt
if no pip module found on your machine,you should install one first
- generate idcard image
python gen_idcard.py
- generate vehicle license
python gen_vehicle_license.py
- generate driving license
python gen_driving_license.py
- generate business license
python gen_business_license.py
- generate image with given text
python gen_text_line.py
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)