Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8d07bfa

Browse files
committed
\-
1 parent 41707ab commit 8d07bfa

File tree

2 files changed

+3
-3
lines changed
  • ch02-安装OpenCV/最简单-使用pip安装opencv-python和opencv-contrib-python
  • my08-opencv玩游戏game/连连看

2 files changed

+3
-3
lines changed

‎ch02-安装OpenCV/最简单-使用pip安装opencv-python和opencv-contrib-python/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
- pip install opencv-python
77
- pip install matplotlib
88
- 验证
9-
- python -c "import cv2;print(cv2.__version__,cv2.__doc__,cv2.__file__)"
9+
- python -c "import cv2;print(cv2.\_\_version__,cv2.\_\_doc__,cv2.\_\_file__)"
1010

1111

1212
## 安装 opencv-contrib-python
1313
强烈建议先卸载opencv-python
1414
- pip uninstall opencv-python
1515
- pip install opencv-contrib-python
1616
- 验证
17-
- python -c "import cv2;print(cv2.__version__,cv2.__doc__,cv2.__file__)"
17+
- python -c "import cv2;print(cv2.\_\_version__,cv2.\_\_doc__,cv2.\_\_file__)"
1818
- python -c "import cv2;print(help(cv2.CascadeClassifier))"
1919

2020
- 运行,2个特性

‎my08-opencv玩游戏game/连连看/compare_photos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def compare(i, j, img):
5050
# if abs(image_difference-1)>0.5:
5151
# if image_difference < 0.1:
5252
# pairs.append((i, j, x, y, image_difference))
53-
if res[0][0] >= 0.8 :#and (i != x and j != y):
53+
if res[0][0] >= 0.8 :#and (i != x and j != y): # 0.9较好
5454
if i ==x and j ==y:
5555
continue
5656
pairs.append((i, j, x, y, res[0][0]))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /