Skip to content

About

Wykrywanie krawędzi metodą Canny

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

Canny Edge Detection

Cel

Prosty projekt do wykrywania krawędzi metodą Canny'ego:

  • jako kod eksperymentalny w experiment.py,
  • jako aplikacja GUI w gui/main.py (podgląd obrazu i suwaków progów).

Instalacja

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Uruchomienie

GUI:

python3 gui/main.py

Kod eksperymentalny (we własnym skrypcie / notebooku):

from experiment import Experiment, ExperimentPlotter

exp = Experiment("sciezka/do/obrazu.jpg", threshold1=100, threshold2=200)
exp.run()
ExperimentPlotter.plot_edges(exp)

Własny preprocessing (opcjonalnie):

import cv2 as cv
from experiment import Experiment

def blur(image):
    return cv.GaussianBlur(image, (5, 5), 0)

exp = Experiment(
    "sciezka/do/obrazu.jpg",
    threshold1=100,
    threshold2=200,
    preprocessing_function=blur,
)

About

Wykrywanie krawędzi metodą Canny

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages