Skip to content

Instantly share code, notes, and snippets.

@tomyjany
tomyjany / segmentation.py
Created March 26, 2025 12:27
Cviceni 7 UZO
import cv2 as cv
from pathlib import Path
import numpy as np
import matplotlib.pyplot as plt
def filter_out_green_color(image: np.array) -> np.array:
R = np.float32(image[:, :, 0])
G = np.float32(image[:, :, 1])
B = np.float32(image[:, :, 2])