Skip to content

tahashieenavaz/homa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Homa is an easy way to start learning Computer Vision with OpenCV.

Loading Images

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)

Smoothing

Blur

from homa import *

horse = Image("horse.jpg")
horse.blur(7) .   # using (7, 7) kernel
horse.blur(7, 19) # using (7, 19) kernel
showWait(horse)

Gaussian Blur

from homa import *

horse = Image("horse.jpg")
horse.gaussian(7) .   # using (7, 7) kernel
horse.gaussian(7, 19) # using (7, 19) kernel
showWait(horse)

Median Blur

from homa import *

horse = Image("horse.jpg")
horse.median(7)

Stacking

from homa import *

horse = Image("horse.jpg")
horse.blur(9, 7)

show(
	vstack(horse),
)

Camera

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"
	)

Releases

No releases published

Packages

No packages published

Languages