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.
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| 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 |
This repository uses Python 3 and minimal, lightweight dependencies. No heavy machine learning frameworks (like PyTorch or TensorFlow) are required locally!
Install dependencies (OpenCV and NumPy) using pip:
pip install -r requirements.txtEach 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).
cd Task1_Chatbot
python main.py # Web Mode (Default)
python main.py --console # Console Modecd Task2_TicTacToe
python main.py # Web Mode (Default)
python main.py --console # Console Modecd Task3_ImageCaptioning
python main.py # Web Mode (Default)
python main.py --console # Console Modecd Task4_RecommendationSystem
python main.py # Web Mode (Default)
python main.py --console # Console Modecd Task5_FaceDetection
python main.py # Web Mode (Default)
python main.py --console # Console ModeYou 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