I'm using a pi cam with a jetson nano.
This is the result. https://i.stack.imgur.com/mAShR.jpg
Any ideas on how to make it better, so it detects all the dots and not just some of them.
Can't post the full code. So I shortened it down
# Blur image
blur=cv2.medianBlur(gray,5)
cv2.imshow("blur",blur)
cv2.moveWindow("blur",0,dispH)
# Convert back to color
ColorBlur = cv2.cvtColor(blur, cv2.COLOR_GRAY2BGR)
cv2.imshow("ColorBlur",ColorBlur)
cv2.moveWindow("ColorBlur",dispW,dispH)
# Detect cirkels
circles = cv2.HoughCircles(blur,cv2.HOUGH_GRADIENT,1,15,param1=100,param2=30,minRadius=3, maxRadius=30)
circles = np.uint16(np.around(circles))
N=0
# Count cirkels
for i in circles[0, :]:
# Outer Circel
cv2.circle(diceTray, (i[0],i[1]),i[2],(255,0,0),-1)
N = N +1
print(N)