vendor: OpenCV 5.0.0 snapshot at 755e50675d97db9b7d449d8bd6b09888646f6c6e

This commit is contained in:
Gitea Mirror Bot
2026-08-22 00:11:13 +08:00
commit 12022378a3
3872 changed files with 2513409 additions and 0 deletions
@@ -0,0 +1,29 @@
using OpenCV
println("")
println("This is a simple exmample demonstrating the use of SimpleBlobDetector")
println("")
print("Path to image: ")
img_dir = readline()
img = OpenCV.imread(img_dir)
img_gray = OpenCV.cvtColor(img, OpenCV.COLOR_BGR2GRAY)
OpenCV.namedWindow("Img - Color")
OpenCV.namedWindow("Img - Gray")
OpenCV.imshow("Img - Color", img)
OpenCV.imshow("Img - Gray", img_gray)
OpenCV.waitKey(Int32(0))
OpenCV.destroyAllWindows()
detector = OpenCV.SimpleBlobDetector_create()
kps = OpenCV.detect(detector, img_gray)
println("Number of keypoints: ", size(kps))
for kp in kps
println(kp.pt, "\t", kp.size)
end