Homa is an easy way to start learning Computer Vision with OpenCV.
Images could be loaded with the Image
class, that accepts the file name.
from homa import *
horse = Image("horse.jpg"
show(horse, wait=True)
# or alternatively
showWait(horse)
from homa import *
horse = Image("horse.jpg")
horse.blur(7) . # using (7, 7) kernel
horse.blur(7, 19) # using (7, 19) kernel
showWait(horse)
from homa import *
horse = Image("horse.jpg")
horse.gaussian(7) . # using (7, 7) kernel
horse.gaussian(7, 19) # using (7, 19) kernel
showWait(horse)
from homa import *
horse = Image("horse.jpg")
horse.median(7)
from homa import *
horse = Image("horse.jpg")
horse.blur(9, 7)
show(
vstack(horse),
)
Camera frames could be access from the repository with a key of camera
.
from homa import *
for _ in camera():
show("camera")
You can simply combine camera frames with the supported effects.
from homa import *
for _ in camera():
blur("camera", 13, "blurred camera")
show(
vstack("camera", "blurred camera"),
window="Camera Effect"
)