回答編集履歴
1
d
test
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
```python
|
10
10
|
|
11
|
-
whitePixe
|
11
|
+
whitePixels = cv2.CountNonZero(img)
|
12
|
+
|
13
|
+
blackPixels = img.size - whitePixels
|
12
14
|
|
13
15
|
```
|