Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV Color / Gray Viewer

Shows one image in two windows side by side: original color and grayscale.


English

About

The app searches the project for a single image, opens it in color, converts it to grayscale with OpenCV, and shows both views next to each other. Window sizes adapt to the screen. Press q to quit.

Author: Veronika Yuzik
Context: Prepared during training for the IOAI Ukraine olympiad (International Olympiad in Artificial Intelligence).

Features

  • Recursive search for one image in the project tree
  • BGR → grayscale conversion
  • Two OpenCV windows: Color and Gray
  • Layout sized for the current screen
  • Press q to quit

Project structure

main.py                 # entry point
ImageDiscovery/         # recursive image finder
Processing/             # color → gray transform
UI/                     # dual-window display
myTest.png              # sample image

Requirements

  • Python 3.10+
  • Dependencies from requirements.txt

Install

python -m venv .venv
# Windows PowerShell:
.\.venv\Scripts\Activate.ps1
# macOS / Linux:
# source .venv/bin/activate

pip install -r requirements.txt

Run

Put exactly one image in the project (for example myTest.png), then:

python main.py

Controls

Key Action
q Quit

Українською

Про проєкт

Програма шукає в проєкті одне зображення, відкриває його в кольорі, перетворює в відтінки сірого через OpenCV і показує обидва вікна поруч. Розмір вікон підлаштовується під екран. Вихід — клавіша q.

Автор: Veronika Yuzik
Контекст: Підготовка до олімпіади IOAI України (Міжнародна олімпіада зі штучного інтелекту).

Можливості

  • Рекурсивний пошук одного зображення в дереві проєкту
  • Перетворення BGR → grayscale
  • Два вікна OpenCV: Color і Gray
  • Розмір під поточний екран
  • Вихід клавішею q

Структура проєкту

main.py                 # точка входу
ImageDiscovery/         # рекурсивний пошук зображень
Processing/             # перетворення в сіре
UI/                     # два вікна попереднього перегляду
myTest.png              # приклад зображення

Вимоги

  • Python 3.10+
  • Залежності з requirements.txt

Встановлення

python -m venv .venv
# Windows PowerShell:
.\.venv\Scripts\Activate.ps1
# macOS / Linux:
# source .venv/bin/activate

pip install -r requirements.txt

Запуск

Покладіть рівно одне зображення в проєкт (наприклад myTest.png), потім:

python main.py

Керування

Клавіша Дія
q Вийти

About

OpenCV viewer: show one image in color and grayscale side by side. Prep for IOAI Ukraine olympiad.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages