Skip to content

rohith4521/CODSOFT

Repository files navigation

CodSoft Artificial Intelligence Internship Projects

Welcome to my CodSoft Artificial Intelligence Internship repository! This repository hosts a collection of practical AI implementations completed during the internship program. It contains five tasks, all featuring robust Python backend engines and interactive, responsive web-based user interfaces.


πŸ“‚ Repository Structure

The repository is organized into distinct directories for each task:

CODSOFT/
β”œβ”€β”€ Task1_Chatbot/              # Task 1: Rule-Based Chatbot with Personalities
β”‚   β”œβ”€β”€ web/                    # Chatbot Web GUI (HTML, CSS, JS)
β”‚   β”œβ”€β”€ chatbot.py              # Rule-Based Dialog Manager Engine
β”‚   β”œβ”€β”€ main.py                 # Chatbot launcher (Console + Web)
β”‚   └── test_chatbot.py         # Chatbot unit tests
β”‚
β”œβ”€β”€ Task2_TicTacToe/            # Task 2: Unbeatable Tic-Tac-Toe AI Game
β”‚   β”œβ”€β”€ web/                    # Game Web GUI (HTML, CSS, JS)
β”‚   β”œβ”€β”€ game.py                 # Minimax with Alpha-Beta Pruning Logic
β”‚   β”œβ”€β”€ main.py                 # Game launcher (Console + Web)
β”‚   └── test_game.py            # Game unit tests
β”‚
β”œβ”€β”€ Task3_ImageCaptioning/      # Task 3: Image Captioning AI Dashboard
β”‚   β”œβ”€β”€ web/                    # Dashboard Web GUI (HTML, CSS, JS)
β”‚   β”œβ”€β”€ caption_engine.py       # Simulated CNN Feature & LSTM Trace Engine
β”‚   β”œβ”€β”€ main.py                 # Captioner launcher (Console + Web)
β”‚   └── test_caption.py         # Captioner unit tests
β”‚
β”œβ”€β”€ Task4_RecommendationSystem/ # Task 4: Content & Collaborative Recommender
β”‚   β”œβ”€β”€ web/                    # Dashboard Web GUI (HTML, CSS, JS)
β”‚   β”œβ”€β”€ recommend.py            # TF-IDF, Cosine Similarity & Pearson CF Math
β”‚   β”œβ”€β”€ main.py                 # Recommender launcher (Console + Web)
β”‚   └── test_recommend.py       # Recommender unit tests
β”‚
└── Task5_FaceDetection/        # Task 5: Face Detection & Recognition Profile Manager
    β”œβ”€β”€ web/                    # Live Scanner Web GUI (HTML, CSS, JS)
    β”œβ”€β”€ face_engine.py          # OpenCV Haar Cascades + Cosine Similarity matching
    β”œβ”€β”€ main.py                 # FaceID launcher (Console + Web)
    └── test_face.py            # FaceID unit tests

πŸ“– Tasks Overview

Task Project Name AI & Algorithm Core Key Web GUI Features
Task 1 Multi-Personality Chatbot Stateful dialog manager & Regex parsing Glassmorphism chat bubble interface, 4 voice modes
Task 2 Unbeatable Tic-Tac-Toe Minimax Algorithm + Alpha-Beta Pruning Neon dark mode grid, real-time difficulty selectors
Task 3 Image Captioning AI Client-side Transformers.js (BLIP/ViT-GPT2) + CNN-LSTM simulator Drag-and-drop file upload, CNN filter layer viewer, LSTM step trace
Task 4 Recommendation System TF-IDF Cosine Similarity & Pearson User Correlation from scratch Dynamic rating sliders, TF-IDF weights overlap math table, peer similarity graph
Task 5 Face Detection & Recognition OpenCV Haar Cascades & Facial Grayscale Descriptor match HTML5 webcam live capture, scan overlay sweep, crops grid, save name modal

πŸ› οΈ Global Requirements & Setup

This repository uses Python 3 and minimal, lightweight dependencies. No heavy machine learning frameworks (like PyTorch or TensorFlow) are required locally!

Installation

Install dependencies (OpenCV and NumPy) using pip:

pip install -r requirements.txt

πŸ“¦ How to Run the Projects

Each project supports two execution modes: Web Mode (which hosts a local server and automatically opens a browser GUI) and Console Mode (which runs directly in the terminal).

πŸ€– Run Task 1: Chatbot

cd Task1_Chatbot
python main.py             # Web Mode (Default)
python main.py --console   # Console Mode

❌ Run Task 2: Tic-Tac-Toe AI

cd Task2_TicTacToe
python main.py             # Web Mode (Default)
python main.py --console   # Console Mode

πŸ‘οΈβ€πŸ—¨οΈ Run Task 3: Image Captioning AI

cd Task3_ImageCaptioning
python main.py             # Web Mode (Default)
python main.py --console   # Console Mode

🎯 Run Task 4: Recommendation System

cd Task4_RecommendationSystem
python main.py             # Web Mode (Default)
python main.py --console   # Console Mode

πŸ‘€ Run Task 5: Face Detection & Recognition

cd Task5_FaceDetection
python main.py             # Web Mode (Default)
python main.py --console   # Console Mode

πŸ§ͺ Testing Suite

You can validate the backend algorithms by running unit tests in their respective directories:

  • Task 1: python Task1_Chatbot/test_chatbot.py
  • Task 2: python Task2_TicTacToe/test_game.py
  • Task 3: python Task3_ImageCaptioning/test_caption.py
  • Task 4: python Task4_RecommendationSystem/test_recommend.py
  • Task 5: python Task5_FaceDetection/test_face.py

Releases

No releases published

Packages

 
 
 

Contributors