{"id":17017994,"url":"https://github.com/vijethph/credit-card-validation","last_synced_at":"2026-04-26T16:32:08.779Z","repository":{"id":135322849,"uuid":"249893083","full_name":"vijethph/credit-card-validation","owner":"vijethph","description":"A JavaFX project to extract credit card numbers using Tesseract OCR, and validate them using Luhn Algorithm","archived":false,"fork":false,"pushed_at":"2024-10-05T10:44:56.000Z","size":348,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T16:11:11.347Z","etag":null,"topics":["algorithm","bytedeco-javacpp-presets","java","javafx","tesseract-ocr","webcam"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vijethph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-25T05:17:53.000Z","updated_at":"2024-10-05T10:44:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"80a53f30-eecb-4d0b-99e8-720d3ac6afc4","html_url":"https://github.com/vijethph/credit-card-validation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vijethph/credit-card-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijethph%2Fcredit-card-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijethph%2Fcredit-card-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijethph%2Fcredit-card-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijethph%2Fcredit-card-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vijethph","download_url":"https://codeload.github.com/vijethph/credit-card-validation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijethph%2Fcredit-card-validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32305035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","bytedeco-javacpp-presets","java","javafx","tesseract-ocr","webcam"],"created_at":"2024-10-14T06:44:13.052Z","updated_at":"2026-04-26T16:32:08.759Z","avatar_url":"https://github.com/vijethph.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Status](https://img.shields.io/badge/status-active-success.svg?style=flat-square\u0026logo=java)]()\r\n[![GitHub issues](https://img.shields.io/github/issues/vijethph/credit-card-validation?style=flat-square)](https://github.com/vijethph/credit-card-validation/issues)\r\n[![Contributors](https://img.shields.io/github/contributors/vijethph/credit-card-validation?style=flat-square)](https://github.com/vijethph/credit-card-validation/graphs/contributors)\r\n[![GitHub forks](https://img.shields.io/github/forks/vijethph/credit-card-validation?color=blue\u0026style=flat-square)](https://github.com/vijethph/credit-card-validation/network)\r\n[![GitHub stars](https://img.shields.io/github/stars/vijethph/credit-card-validation?color=yellow\u0026style=flat-square)](https://github.com/vijethph/credit-card-validation/stargazers)\r\n[![GitHub license](https://img.shields.io/github/license/vijethph/credit-card-validation?style=flat-square)](https://github.com/vijethph/credit-card-validation/blob/master/LICENSE)\r\n[![forthebadge](https://forthebadge.com/images/badges/made-with-java.svg)](https://forthebadge.com)\r\n[![forthebadge](https://forthebadge.com/images/badges/thats-how-they-get-you.svg)](https://forthebadge.com)\r\n\r\n\u003cbr /\u003e\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/vijethph/credit-card-validation\"\u003e\r\n    \u003cimg src=\"credit-card.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\r\n  \u003c/a\u003e\r\n\r\n  \u003ch2 align=\"center\"\u003eCredit Card Validation\u003c/h2\u003e\r\n\r\n  \u003cp align=\"center\"\u003e\r\n    A JavaFX program that captures credit card image from webcam, parse the numbers using Tesseract OCR, and uses it to determine the validity of credit card number.\r\n    \u003cbr /\u003e\r\n    \u003cbr /\u003e\r\n    \u003ca href=\"https://github.com/vijethph/credit-card-validation/issues\"\u003eReport Bug\u003c/a\u003e\r\n    ·\r\n    \u003ca href=\"https://github.com/vijethph/credit-card-validation/issues\"\u003eRequest Feature\u003c/a\u003e\r\n  \u003c/p\u003e\r\n\u003c/p\u003e\r\n\r\n\r\n\r\n\u003c!-- TABLE OF CONTENTS --\u003e\r\n## Table of Contents\r\n\r\n* [About the Project](#about-the-project)\r\n  * [Built With](#built-with)\r\n* [Getting Started](#getting-started)\r\n  * [Prerequisites](#prerequisites)\r\n  * [Installation](#installation)\r\n* [Usage](#usage)\r\n* [Contributing](#contributing)\r\n* [License](#license)\r\n* [Contact](#contact)\r\n* [Acknowledgements](#acknowledgements)\r\n\r\n\r\n\r\n\u003c!-- ABOUT THE PROJECT --\u003e\r\n## About The Project\r\n\r\n\u003cimg src=\"screenshot1.png\" width=\"250\" height=\"350\" alt=\"Project working\"\u003e   \u003cimg src=\"screenshot2.png\" width=\"250\" height=\"350\" alt=\"second screenshot\"\u003e\r\n\r\nThis is a JavaFX program that uses [Sarxos Webcam Capture API](https://github.com/sarxos/webcam-capture) and [Tesseract OCR Engine](https://github.com/tesseract-ocr/tesseract) to capture credit card image using webcam, parse the numbers in it, and then check the validity of these credit card numbers. It employs an implementation of [Luhn's Algorithm](https://wikipedia.org/wiki/Luhn_algorithm) to validate the credit card numbers.\r\n\r\n\r\n\r\n### Built With\r\nThis project is entirely built with the following components and languages:\r\n* [JavaFX](https://openjfx.io)\r\n* [Sarxos Webcam Capture API](https://github.com/sarxos/webcam-capture)\r\n* [Tesseract OCR Engine](https://github.com/tesseract-ocr/tesseract)\r\n* [JavaCPP Presets](https://github.com/bytedeco/javacpp-presets)\r\n\r\n\r\n\r\n\u003c!-- GETTING STARTED --\u003e\r\n## Getting Started\r\n\r\nTo get a local copy of the program up and running follow these simple steps.\r\n\r\n### Prerequisites\r\n\r\nJava Runtime Environment(JRE)\u003e=8 and Apache Maven should be installed. After installation, check their versions using\r\n\r\n```sh\r\njava --version\r\nmvn --version\r\n```\r\n\r\n\r\n### Installation\r\n\r\n1. Clone the repo\r\n```sh\r\ngit clone https://github.com/vijethph/credit-card-validation.git\r\n```\r\n2. Open the downloaded folder\r\n```sh\r\ncd credit-card-validation\r\n```\r\n3. Install the packages required using the following command:\r\n```sh\r\nmvn clean install\r\n```\r\n4. Finally run the program using\r\n```sh\r\nmvn exec:java -Dexec.mainClass=\"WebcamAppLauncher\"\r\n```\r\nYou can also download the jar file in [Releases](https://github.com/vijethph/credit-card-validation/releases) section and run it by using:\r\n```sh\r\njava pkg.jar\r\n```\r\n\r\n\r\n\r\n\u003c!-- USAGE EXAMPLES --\u003e\r\n## Usage\r\n\r\nOnce the application starts, perform the following steps:\r\n\r\n1. Select one of the available webcams in the dropdown list.\r\n2. Capture the image of credit card with its numbers properly displayed.\r\n3. Click \"Perform OCR\" to parse the digits.\r\n4. You can edit the number in case of an error, and check validity of credit card number.\r\n\r\n\r\n\r\n\u003c!-- CONTRIBUTING --\u003e\r\n## Contributing [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square)](https://github.com/vijethph/credit-card-validation/pulls)\r\n\r\n\r\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\r\n\r\n1. Fork the Project\r\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\r\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\r\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\r\n5. Open a Pull Request\r\n\r\n\r\n\r\n\u003c!-- LICENSE --\u003e\r\n## License\r\n\r\nDistributed under the GNU GPL License.\r\n\r\n\r\n\r\n\u003c!-- CONTACT --\u003e\r\n## Contact\r\n\r\nVijeth P H - [@vijethph](https://github.com/vijethph)\r\n\r\nProject Link: [https://github.com/vijethph/credit-card-validation](https://github.com/vijethph/credit-card-validation)\r\n\r\n## Thank You!\r\n[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)\r\n\r\nIf you like this project, please ⭐ this repo and share it with others 👍\r\n\r\n\r\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\r\n## Acknowledgements\r\n* [JavaFX Docs](https://docs.oracle.com/javafx)\r\n* [Img Shields](https://shields.io)\r\n* [Choose an Open Source License](https://choosealicense.com)\r\n* [Tesseract OCR Docs](https://tesseract-ocr.github.io/tessdoc)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijethph%2Fcredit-card-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvijethph%2Fcredit-card-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijethph%2Fcredit-card-validation/lists"}