diff --git a/examples/detect.py b/example.py similarity index 100% rename from examples/detect.py rename to example.py diff --git a/examples/adaptive-threshold.py b/examples/adaptive-threshold.py deleted file mode 100644 index 60adaef..0000000 --- a/examples/adaptive-threshold.py +++ /dev/null @@ -1,18 +0,0 @@ -import cv2 -import numpy - -cap = cv2.VideoCapture(2) - -cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640) -cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) - -while True: - _, frame = cap.read() - grey = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) - t1 = cv2.adaptiveThreshold(grey, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY_INV, 3, 7) - t2 = cv2.adaptiveThreshold(grey, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY_INV, 13, 7) - t3 = cv2.adaptiveThreshold(grey, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY_INV, 23, 7) - - threshed = numpy.concatenate((t1, t2, t3), axis=1) - cv2.imshow('threshed', threshed) - cv2.waitKey(1) diff --git a/examples/threshold.py b/examples/threshold.py deleted file mode 100644 index f362628..0000000 --- a/examples/threshold.py +++ /dev/null @@ -1,14 +0,0 @@ -import cv2 - -cap = cv2.VideoCapture(2) - -cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640) -cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) - -while True: - _, frame = cap.read() - grey = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) - _, thresh = cv2.threshold(grey, 127, 255, cv2.THRESH_BINARY) - cv2.imshow('original', frame) - cv2.imshow('thresh', thresh) - cv2.waitKey(1) diff --git a/src/index.html b/src/index.html index 5b7bec4..743d9b5 100644 --- a/src/index.html +++ b/src/index.html @@ -72,13 +72,12 @@

2. Thresholding

-

Demo 🤞

-
-

3. Edge Detection

- -
-
-

3a. Contour Refinement

- -
+

3. Edge Detection

+

4. Distortion

@@ -149,16 +134,6 @@ - Search "Hamming code" for more
-
-

And done!

-

...Almost

- -

7. Pose Estimation

-

Another demo 🙏

+

Demo 🙏