fix(blob_detector): blob_detector détecte une étoile claire sur fond sombre
This commit is contained in:
1 parent
6af462858b
commit
75911c8a49
1 file changed
+3
-1
@@ -22,7 +22,9 @@ def blob_detector(picture):
|
|||||||
params.minConvexity = 0.87
|
params.minConvexity = 0.87
|
||||||
params.filterByInertia = True
|
params.filterByInertia = True
|
||||||
params.minInertiaRatio = 0.01
|
params.minInertiaRatio = 0.01
|
||||||
# TODO: valeurs provisoires, à recalibrer avec de vraies images de test cette semaine.
|
params.filterByColor = True
|
||||||
|
params.blobColor = 255
|
||||||
|
# TODO: valeurs provisoires, à recalibrer avec de vraies images de test
|
||||||
detector = cv2.SimpleBlobDetector.create(params)
|
detector = cv2.SimpleBlobDetector.create(params)
|
||||||
stars = detector.detect(picture)
|
stars = detector.detect(picture)
|
||||||
result = [star.pt for star in stars]
|
result = [star.pt for star in stars]
|
||||||
|
|||||||
Reference in new issue
Block a user