Skip to content

This project detects whether an image was taken during the day or night using OpenCV and image processing. It converts the image to the HSV color model and analyzes the V (Value) channel, which represents brightness. If the average brightness is above a threshold, it's classified as day; otherwise, it's night. πŸš€πŸŒžπŸŒ™

Notifications You must be signed in to change notification settings

Zahra-Gholami/DayOrNight-MinimalProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DayOrNight-MinimalProject

This project detects whether an image was taken during the day or night using OpenCV and image processing. It converts the image to the HSV color model and analyzes the V (Value) channel, which represents brightness. If the average brightness is above a threshold, it's classified as day; otherwise, it's night. πŸš€πŸŒžπŸŒ™

Day or Night Detection πŸŒžπŸŒ™

This is a simple image processing project using OpenCV that detects whether an image was taken during the day or night based on brightness levels.

πŸ“Œ How It Works

  • The image is converted from BGR to HSV color space.
  • The V (Value) channel, which represents brightness, is extracted.
  • The mean brightness is calculated.
  • If the brightness is above a threshold, the image is classified as Day β˜€οΈ; otherwise, it is classified as Night πŸŒ™.

πŸš€ Installation

  1. Clone the repository:
    git clone https://github.com/Zahra-Gholami/DayOrNight-MinimalProjrct.git
    cd DayOrNight-MinimalProject
    

About

This project detects whether an image was taken during the day or night using OpenCV and image processing. It converts the image to the HSV color model and analyzes the V (Value) channel, which represents brightness. If the average brightness is above a threshold, it's classified as day; otherwise, it's night. πŸš€πŸŒžπŸŒ™

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published