Month 4 — Exercises set
🟢 Easy
Computer Vision
- Load an image with OpenCV, convert to RGB/HSV/Grayscale.
- Canny edge detection + contour finding.
- Inference on an image with pretrained YOLOv8n model.
- Top-5 classification on an image with pretrained EfficientNet.
- OCR on a simple text image with Tesseract.
NLP
- Tokenization, stop words removal, lemmatization with NLTK.
- NER and POS tagging with spaCy.
- TF-IDF + Logistic Regression baseline (Spam SMS dataset).
- HuggingFace
pipeline("sentiment-analysis")for 10 sentences. - Cosine similarity matrix between 5 sentences with Sentence Transformers.
🟡 Medium
CV — Real projects
- Document Scanner: “Flatten” a document from phone photo (contour + perspective).
- Custom YOLO training: Label 100-200 images in Roboflow, fine-tune YOLOv8 (Colab GPU).
- OCR pipeline: Extract name, surname, numbers from a passport image.
- Image similarity search: Embed 1000 images with pretrained CNN, find the 10 closest to a query image.
- Real-time webcam YOLO: webcam → bounding box + label.
NLP — Real projects
- News classifier: BBC News dataset (5 categories), compare TF-IDF + LR vs BERT.
- Uzbek text dataset: Collect 5000+ posts from Telegram, create a classifier.
- Multilingual sentiment: One model for 3 languages (en/ru/uz).
- Custom BPE tokenizer: Train BPE on an Uzbek corpus.
- Zero-shot classifier: Classify 10 news items into 5 categories without giving “labels”.
🔴 Hard (Production)
1. CV — Object Counter Service
Requirements:
- FastAPI + YOLOv8 custom trained model
- Endpoint: image/video upload → count by class
- Celery + Redis (async processing)
- WebSocket real-time updates
- Docker + docker-compose
- Streamlit or React frontend
**Example use case:**number of cars in parking lot, people flow in a store
2. OCR — ID Card Reader
Requirements:
- Detect ID card type (YOLO)
- Perspective correction (OpenCV)
- Field-by-field OCR (PaddleOCR)
- Validation + parsing (regex)
- Save to PostgreSQL
- REST API + admin panel
3. NLP — Multilingual Customer Support Classifier
Requirements:
- Classify support tickets coming in 3 languages (en/ru/uz) into 10 categories
- Fine-tune mBERT or XLM-R
- FastAPI + caching
- Prediction monitoring (concept drift detection)
- Telegram bot integration
4. CV+NLP — Visual Question Answering
Requirements:
- BLIP or similar VLM (Vision-Language Model)
- Image + question → answer
- Streamlit demo
- Mobile app integration
Mini-projects
Mini-project 1: Uzbek Plate Number Recognition
- Collect a dataset of Uzbek license plates (100+ photos from phone)
- Plate detection with YOLO
- Read the number with OCR
- FastAPI service
Mini-project 2: Receipt Scanner
- OCR of a store receipt image
- Extract products and prices
- Total amount and grouping by category
- Telegram bot
Mini-project 3: Sport Highlights Generator
- Football game video
- Object detection (player, ball)
- Event detection (goal, foul)
- Automatic highlights montage (FFmpeg)
Mini-project 4: Smart Document Search
- Index 100+ PDF documents
- Sentence embeddings + FAISS
- Natural language search
- Streamlit UI
Quiz
CV
- Difference between object detection and classification?
- What are IoU and mAP?
- Difference in speed and accuracy between YOLO and Faster R-CNN?
- What is an anchor box and how do anchor-free detectors work?
- When is NMS (Non-Maximum Suppression) used?
- Difference between Tesseract and modern OCR (EasyOCR/PaddleOCR)?
- What’s special about SAM (Segment Anything)?
NLP
- Difference between Stemming and Lemmatization?
- TF-IDF formula and intuition?
- Difference between Skip-gram and CBOW in Word2Vec?
- Difference between BPE and WordPiece tokenization?
- Difference between BERT, GPT, T5 (architecture)?
- What are Q, K, V in attention mechanism?
- How does Zero-shot classification work?
Production
- How do you deploy a pretrained model to production?
- Why is batching useful for GPU inference?
- Model versioning strategies?
- How do you reduce Docker image size for a CV service?
- Caching strategies for an NLP service?
✅ Month 4 final checklist
- Classical image processing with OpenCV
- YOLOv8 inference and fine-tuning (Colab/Kaggle)
- OCR (at least one library: Tesseract/EasyOCR/PaddleOCR)
- Classical NLP: TF-IDF + LR baseline
- NER, POS with spaCy
- HuggingFace Transformers (pipeline + Auto*)
- Sentence embeddings (ready for RAG)
- CV or NLP service in FastAPI
- Capstone project on GitHub
- LinkedIn post
Congratulations! Ready for Month 5 — LLM, RAG, and AI Agents — now you enter the LLM era!