To get started, follow these steps:
- Clone this repository using
git clone https://github.com/Intummadee/CardCheck.git
- Install dependencies using
npm install
- Run the app using
npm start
- Frontend: HTML, CSS, Bootstrap,
- Backend: Python, Django
- Framework: Django
- Library: Opencv, Pandas, JQuery
- Database: MongoDB Atlas, Django Database
- Version Control: Git and GitHub
- Code Editor and tools: VS Code
-
create Environment
python -m venv env
-
activate Environment --> 👉
env\Scripts\activate
If you can run it, there will be the word (env) in front of PS in the terminal. -
create app.py
- python -m pip install numpy
- python -m pip install scipy
- python -m pip install matplotlib
- python -m pip install opencv-python
- python -m pip install opencv-contrib-python
- pip install pytesseract : a Python wrapper for Google's Tesseract-OCR Engine, used for optical character recognition (OCR).
- pip install reportlab : a library for generating PDF documents.
- python -m pip install pandas : a powerful data manipulation and analysis library (useful for working with Excel files as well)
- python -mpip install openpyxl : a library specifically for reading and writing Excel 2010 xlsx/xlsm/xltx/xltm files
- python -m pip install python-dotenv : allows you to load environment variables from a .env file into the environment
- pip install pymupdf Pillow : Installs PyMuPDF (for working with PDF files) and Pillow (for image processing tasks)
- python -m pip install "pymongo[srv]"
⚠️ Option, if WARNING is given, update the version.python -m pip install --upgrade pip
🍫 Install Django
python -m pip install Django
-
Option command to check whether django is installed or not.
django-admin --version
--> Run it and get 4.2.10 -
Create a project name my_tennis_club
django-admin startproject my_tennis_club
env\Scripts\activate
cd my_tennis_club (Don't forget that you must be in my_tennis_club)
python manage.py runserver
http://127.0.0.1:8000/ (Open this path)
- To view Django's user information, password and account name are in the .env file.
http://127.0.0.1:8000/admin
- Command to create an admin account to view user information. The password must meet the conditions that Django requires only. Otherwise, it won't be able to be used when created.
python manage.py createsuperuser
Source : https://www.youtube.com/watch?v=GJCKIGeK3qc
python -m pip install "pymongo[srv]"
Howto -> https://gist.github.com/dogterbox/7c0ed7387a388f5e13afd00f0cb8cd50
Download the raw file of this website. -> https://github.com/tesseract-ocr/tessdata_best/blob/main/tha.traineddata
into storage \Tesseract-OCR\tessdata folder
https://github.com/atisawd/boxicons
https://css-loaders.com/progress/
- Better-comments
- Comment Styler
- If the uploaded contacts file is an image, the font size in the file should be greater than 18.
- If the name is drawn from the card The resulting image must be clear. There is enough light. The distance from the camera is not too much or too little.
- Shiny cards, such as ID cards, should not be photographed with too much shadow. Because the program will not capture text that has shadows. (Corrected with the Contrast Limited Adaptive Histogram Equalization (CLAHE) technique to adjust the light in the image better)
- The quality of the camera also affects the capture of names.
For using computer vision OCR to detect text in images. https://github.com/UB-Mannheim/tesseract/wiki
MongoDB and Python https://www.youtube.com/watch?v=GJCKIGeK3qc
How to Install Tesseract OCR on Windows and use it with Python https://www.youtube.com/watch?v=GMMZAddRxs8
Stackoverflow https://stackoverflow.com/questions/37745519/use-pytesseract-ocr-to-recognize-text-from-an-image https://stackoverflow.com/questions/21104664/extract-all-bounding-boxes-using-opencv-python
Python – Extract names from string with python Regex https://itecnote.com/tecnote/python-extract-names-from-string-with-python-regex/
Python | Similarity metrics of strings https://www.geeksforgeeks.org/python-similarity-metrics-of-strings/
using SequenceMatcher.ratio() https://www.geeksforgeeks.org/python-similarity-metrics-of-strings/
alertifyjs https://alertifyjs.com/