maddevsio / go-idmatch

ID cards recognition based on gocv
https://idmatch.co
42 stars 13 forks source link

Get rid of image scaling workaround in pre-processing #40

Closed tzununbekov closed 5 years ago

tzununbekov commented 6 years ago

Right now, when we apply affine transformation on image in pre-processing, we use canvas double size not to loose edges after rotation for specific cases: https://github.com/maddevsio/go-idmatch/blob/master/ocr/preprocessing/contours.go#L245 Need to get rid of these *2 and verify rotation on test image (ask me to share it)