Skip to content
Snippets Groups Projects
Commit 4638af3f authored by Daniel Gordon's avatar Daniel Gordon
Browse files

tiny changes

parent d7805baf
No related branches found
No related tags found
No related merge requests found
......@@ -6,3 +6,5 @@
logs/
demo/data/
labels/
*.mp4
*.json
......@@ -33,7 +33,7 @@ def subplot(plots, rows, cols, outputWidth, outputHeight, border=BORDER,
if im.dtype != np.uint8 or len(im.shape) < 3:
im = im.astype(np.float32)
im -= np.min(im)
im *= 255 / np.max(im)
im *= 255 / max(np.max(im), 0.0001)
im = 255 - im.astype(np.uint8)
if len(im.shape) < 3:
im = cv2.applyColorMap(
......@@ -102,8 +102,8 @@ def subplot(plots, rows, cols, outputWidth, outputHeight, border=BORDER,
font=FANCY_FONT)
im = np.array(im)
else:
cv2.putText(im, titles[0], (10, 30), CV_FONT, 128, [0,0,0], 4)
cv2.putText(im, titles[0], (10, 30), CV_FONT, 128, [1,1,1], 1)
cv2.putText(im, titles[0], (10, 30), CV_FONT, .5, [0,0,0], 4)
cv2.putText(im, titles[0], (10, 30), CV_FONT, .5, [255,255,255], 1)
return im
......
......@@ -20,7 +20,6 @@ from tracker import re3_tracker
from constants import CROP_PAD
from constants import CROP_SIZE
from constants import MAX_TRACK_LENGTH
from constants import OUTPUT_SIZE
# Display constants
from constants import OUTPUT_WIDTH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment