Skip to content

hxtruong6/fe-credit-card-fault-detection

Repository files navigation

fe-credit-card-fault-detection

Project in Developer Circle (DevC) is sponsored by Facebook. The course is ogranized at CoderSchool. The problem is selected among company in Vietnam which is of Fe-Credit.

Sumary

For detection fake or real Vietnam identity card.

  • Input: the identity card image
  • Output: card fake or real

Assumtion: a straight image is considered template image. Not for distorted or dark or low resolution image.

Result: detect fake card on

  • card template: size, ratio size of card
  • profile image with a selfie image (user capture thier picture manually)
  • national emblem: just check with templage image
  • information of identity card: Id number, full name, day of birth, address

Method

  1. Card teamplate Border of card is main factor to verify. We find border of image then crop exactly follow by border to facilitate later steps.

To detect border, we filter image by color (dark green) then get contour image.

Result:

green_edges_color green_edges_mask green_edges

Cropped card: (example)

1_134

  1. Profile image We crop profile image and apply some algorithms:

2_profile

  • Profile image must be a person (not animal or stuff)
  • Person do not wear glasses
  • Person do not smile/laught ( kind of neutral)
  • Compare with selfie image
  1. National emblem We crop national emblem from cropped card then using opencv image template matching to check

qhExtract qhTemplate 2_qh

  1. Information Thank to the exactly cropped card, we again crop different area on image for extracting information. If a real card, it will has const ratio size so we can know where area has the needed information (ex: card id, name, address,...)

CardName CardNameMask IdName IdNameFilter fsd

Using opencv ocr tesseract, we will get information on card but it is not be exact. Image is filtered in many differnce range colors then we get the best result from previour filter color to apply OCR on that image by frequently appear resutl.

card-detect-result

Application

To easily in checking fault card, we build a mobile app. Mobile app allow user take a picture of identity card then verify.

Application is an app for student participate the entry exam. So each student must be verify their identiy card to join the online test.

UI & Result

Screenshot_1570289047 Screenshot_1570289050 Screenshot_1570289099 Screenshot_1570289112 Screenshot_1570289119 Screenshot_1570289132 Screenshot_1570289807 Screenshot_1570290096 Screenshot_1570290322

About

Card ID fault detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published