Skip to content

stefanycos/aws-rekognition-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Rekognition

Using AWS Rekognition to detect credit card numbers.

Requirements

  • Maven
  • JDK 1.8

Running

  • mvn spring-boot:run

Usage

Detecting credit card number

  • Request (image was converted to base64)
{
    "type": "CREDIT_CARD",
    "base64": "iVBORw0KGgoAAAANSUhEUgAAAloAAAF7CAMAAAA9ndXWAAAAAXNSR0IArs4c6QAAAwBQ..."
}
  • Response
{
    "number": "4000 1234 5678 9010",
    "brand": "VISA"
}

Detecting full image content

  • Request
{
    "type": "DETECT_TEXT",
    "base64": "iVBORw0KGgoAAAANSUhEUgAAAloAAAF7CAMAAAA9ndXWAAAAAXNSR0IArs4c6QAAAwBQ..."
}
  • Response
{
    "lines": [
        "Mission",
        "Lane",
        "4000 1234 5678 9010",
        "4000",
        "GOOD 09/22",
        "THRU",
        "CARDHOLDER NAME",
        "VISA"
    ]
}

About

Using AWS Rekognition to extract credit cards number

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages