DEV Community

Cover image for [June 2025 UPDATED] Business Card Solution powered with AI
John NG for AWS Community Builders

Posted on • Edited on

[June 2025 UPDATED] Business Card Solution powered with AI

Building a Modern Business Card Scanner with AI: A Deep Dive into AWS and DeepSeek Integration

Hey there, fellow developers! ๐Ÿ‘‹ Today, I'm excited to share my journey of building a modern business card scanner application that leverages AI to transform physical business cards into organized digital contacts. This project combines AWS services with the DeepSeek API to create a powerful networking tool.

๐ŸŽฏ The Problem

In today's digital age, we still exchange physical business cards, but managing them efficiently is a challenge:

  • Cards get lost or damaged
  • Manual data entry is time-consuming and error-prone
  • It's hard to analyze your professional network effectively
  • Finding specific contacts or seeing connections between companies is difficult

There are existing digital business card scanning solution in the market, but they are often:

  • expensive
  • not user friendly
  • only supports internal address book, no integration with device contacts
  • data stored in the providers' database, you don't own the data

๐Ÿ’ก The Solution

I built an open-source web application that solves these problems by:

  • Using AI to extract information from business card images
  • Organizing contacts with rich metadata
  • Allows importing the contacts to your phone contacts in batch!
  • self-deployable solution, meaning you own and control your data!
  • Providing network analysis and visualization
  • Offering an AI-powered chat interface for querying your contact database

๐Ÿ—๏ธ Technical Architecture

The application is built on a modern serverless stack:

infra

Key Components:

  1. Frontend:

    • Frontend hosted on S3 and enhanced with CloudFront CDN
    • Interactive network visualization using D3.js
    • Real-time chat interface
    • Responsive design with Tailwind CSS
  2. Backend:

    • AWS Lambda for serverless compute
    • Amazon Textract for OCR
    • DeepSeek API for intelligent data extraction
    • DynamoDB for contact storage
    • S3 for image storage
  3. Authentication:

    • AWS Cognito for user management
    • Secure API access with IAM roles

๐Ÿ” Key Features

  1. Intelligent Card Scanning

Image description

Image description

  1. Network Analysis

Image description

Image description

  1. AI-Powered Chat Interface

Image description

๐Ÿš€ Getting Started

Want to try it yourself?

  1. Click this demo url
  2. Sign in using the test credentials:
    • Username: testUser
    • Password: 12345678!
  3. Navigate to the "Scan Cards" tab
  4. Upload one or more business card images
  5. View processed contacts in the "My Contacts" tab
  6. Explore network insights in the "Network Analysis" tab

Want to deploy yourself? Check out the repo: https://github.com/john-ng-hk/Biz-card-scanner

๐ŸŽจ User Experience

The application provides a seamless experience:

  1. Upload business card images (single or batch)
  2. AI automatically extracts and categorizes information
  3. View your contacts in a modern, filterable interface
  4. Explore network connections through interactive visualizations
  5. Chat with AI to analyze your professional network
  6. Easily export contacts as vcard files for your phone contacts

๐Ÿ’ฐ Cost Estimation

AWS: Total 12 months cost = 15.00 USD AWS Pricing Calculator

DeepSeek API: minimum spend = 10RMB = 1.38 USD (1USD = 7.24 RMB)

Total Annual Cost = AWS+DeepSeek key = 15+1.38=16.38= around 16.5 USD

main assumptions:

Number of API Requests 1000 API requests each day x 20 working days = 20000 API requests per month
Number of scan card requests: 1 card each day x 30 days = 30 requests

๐Ÿ”ฎ Future Enhancements

I'm planning to add:

  1. Maybe with https so that the can directly scan with device mobile (DONE! You can now directly scan with camera)
  2. Better UI/UX and improve latency with AI chatbot.
  3. The current serverless architecture is a "Lambdalith", which is great for quick development for PoC but does not scale well with more features coming in. So may need decouple this part in the future.

๐Ÿค” Key Learnings

Building this project taught me several valuable lessons:

  1. Serverless architectures need really thoughtful timeout configurations (I had to increaset the integration timeout to 60000ms via service quota request this time...)
  2. User experience is crucial for AI-powered application, I didnt expect most my dev time is on the frontend part.

๐ŸŽ Open Source

This project is open source! Feel free to:

  • Star the repository
  • Submit issues or feature requests
  • Contribute improvements
  • Fork and adapt for your needs

๐Ÿ”— Resources

๐Ÿ‘‹ Connect

I'd love to hear your thoughts and suggestions! Connect with me:

Let me know in the comments if you'd like to see more detailed posts about specific aspects of this project!

Top comments (0)