mirror of
https://github.com/RustyRaptor/learnopencv.git
synced 2026-12-03 22:15:16 -07:00
22 lines
366 B
Python
22 lines
366 B
Python
import cv2
|
|
import sys
|
|
sys.path.append('build')
|
|
import bv
|
|
|
|
|
|
im = cv2.imread('holes.jpg', cv2.IMREAD_GRAYSCALE)
|
|
imfilled = im.copy()
|
|
bv.fillHoles(imfilled)
|
|
|
|
filters = bv.bv_Filters()
|
|
imedge = filters.edge(im)
|
|
|
|
|
|
cv2.imshow("Original image", im)
|
|
cv2.imshow("Python Module Function Example", imfilled)
|
|
cv2.imshow("Python Module Class Example", imedge)
|
|
cv2.waitKey(0)
|
|
|
|
|
|
|