Initial commit with project files
This commit is contained in:
10
CV-App/algorithms/image_to_gray.py
Normal file
10
CV-App/algorithms/image_to_gray.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import cv2
|
||||
|
||||
from . import Algorithm
|
||||
|
||||
|
||||
class ImageToGray(Algorithm):
|
||||
""" Converts a BGR image to grayscale"""
|
||||
def process(self, img):
|
||||
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
|
||||
return img
|
||||
Reference in New Issue
Block a user