abhisheks008 / DL-Simplified

Deep Learning Simplified is an Open-source repository, containing beginner to advance level deep learning projects for the contributors, who are willing to start their journey in Deep Learning. Devfolio URL, https://devfolio.co/projects/deep-learning-simplified-f013
https://quine.sh/repo/abhisheks008-DL-Simplified-499023976
MIT License
357 stars 299 forks source link

[Feature Addition]: Web Application for Anti Spoofing Project #544 #581

Closed PABITRA34 closed 4 months ago

PABITRA34 commented 4 months ago

Pull Request for DL-Simplified πŸ’‘

Issue Title : [Feature Addition]: Web Application for Anti Spoofing Project #544

Closes: issue number #544

Describe the add-ons or changes you've made πŸ“ƒ

  1. Setting Up the Environment

    • Backend (Flask) : Install Flask and dependencies: Use pip or pipenv to install Flask and any other necessary Python libraries (e.g., OpenCV, TensorFlow).
  2. Loading and Preparing the Model

    • Load the pre-trained model: Use TensorFlow/Keras to load the trained anti-spoofing model.
    • Define helper functions: Create functions to process input images/videos and make predictions using the model.
  3. Developing the Backend -Flask Routes

    • Upload route: Serve the main HTML page.
    • Process route: Handle file uploads from the user (images or videos).
    • Prediction route: Process the uploaded files, run them through the model, and return the results.
  4. Building the Frontend

    • HTML Templates
    • Main Page: Include a form for uploading images/videos and a section to display results. -Result Display: Use placeholders in the HTML to dynamically show the prediction results.
    • CSS Styling : Styling Elements: Style buttons, forms, and results display for better user experience.
  5. Integrating Backend and Frontend Form Handling: Ensure the form in the HTML template correctly posts data to the Flask backend.

  6. Testing Local Testing: Run the Flask app locally to test all functionalities and ensure the model predictions are correct. Debugging: Checked for and fixed arising issues or bugs.

    Type of change β˜‘οΈ

What sort of change have you made:

How Has This Been Tested? βš™οΈ

I have tested the Anti-Spoofing WebApp in running it on my local machine

Checklist: β˜‘οΈ

github-actions[bot] commented 4 months ago

Our team will soon review your PR. Thanks @PABITRA34 :)

PABITRA34 commented 4 months ago

@abhisheks008 hello sir , ok sir, let me try