Python判断一个物体的(照片)是否在另外一张照片中存在
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import cv2
import numpy as np
import matplotlib.pyplot as plt
scale = 1
img = cv2.imread('sourceimg.jpg')#要找的大图
img = cv2.resize(img, (0, 0), fx=scale, fy=scale)
template = cv2.imread('findimg.jpg')#图中.
原创
2021-06-03 09:00:57 ·
2322 阅读 ·
1 评论