РК
Читать за тебя почему так происходит мне не хочется, так что дальше разбирайся сам. К тому же ты код не приложил
Size: a a a
РК
БГ
R3
РК
import numpy as np
import cv2 as cv
img = cv.imread('Test_screenshot_14.03.2021.png',0)
h = img.shape[0]
w = img.shape[1]
img = cv.medianBlur(img,5)
cimg = cv.cvtColor(img,cv.COLOR_GRAY2BGR)
circles = cv.HoughCircles(img,cv.HOUGH_GRADIENT,1,20,
param1=50,param2=30,minRadius=0,maxRadius=0)
circles = np.uint16(np.around(circles))
n = 0
for i in circles[0,:]:
# draw the outer circle
cv.circle(cimg,(i[0],i[1]),i[2],(0,255,0),2)
# draw the center of the circle
cv.circle(cimg,(i[0],i[1]),2,(0,0,255),3)
n += 1
print('height = ', h)
print('width = ',w)
print(n, 'Объектов')
#cv.imshow('img', img)
cv.imshow('detected circles',cimg)
cv.waitKey(0)
DY
𝕬
ᅠ
РК
РК
ᅠ
ᅠ
DY
DY
DY
K
ᅠ
𝕬
БГ
БГ