Coder Social home page Coder Social logo

dwtcourses / fe-credit-card-fault-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hxtruong6/fe-credit-card-fault-detection

0.0 1.0 0.0 62.81 MB

Card ID fault detection

Jupyter Notebook 87.54% Python 6.63% JavaScript 5.08% Java 0.15% Objective-C 0.39% Ruby 0.21%

fe-credit-card-fault-detection's Introduction

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

fe-credit-card-fault-detection's People

Contributors

hxtruong6 avatar lannguyenit598 avatar chienpm304 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.