Update helpers.py

This commit is contained in:
pkwhiuqat 2021-11-20 21:40:45 +08:00
parent 4f61205050
commit b5de475d96
1 changed files with 0 additions and 2 deletions

View File

@ -10,7 +10,6 @@ def pop_and_add(l, val, max_length):
l.pop(0)
l.append(val)
def last_ip(ips):
for i, ip in enumerate(reversed(ips)):
if ip is not None:
@ -71,5 +70,4 @@ def get_hist(img, bbox, nbins=3):
hist = cv2.calcHist([img], [0, 1], mask, [nbins, 2*nbins], [0, 180, 0, 256])
cv2.normalize(hist, hist, alpha=1, norm_type=cv2.NORM_L1)
return hist