Update helpers.py
This commit is contained in:
parent
4f61205050
commit
b5de475d96
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue