Skip to content

Commit

Permalink
bugfix: image read error while drawing FN when there is no detection …
Browse files Browse the repository at this point in the history
…on an image
  • Loading branch information
k-maheshkumar authored Mar 15, 2020
1 parent 838d9eb commit 2ca0ff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,9 @@ def draw_plot_func(dictionary, n_classes, window_title, plot_title, x_label, out
img_id = tmp_file[tmp_file.find(start)+len(start):tmp_file.rfind('_ground_truth.json')]
img_cumulative_path = output_files_path + "/images/" + img_id + ".jpg"
img = cv2.imread(img_cumulative_path)
if img is None:
img_path = IMG_PATH + '/' + img_id + ".jpg"
img = cv2.imread(img_path)
# draw false negatives
for obj in ground_truth_data:
if not obj['used']:
Expand Down

0 comments on commit 2ca0ff2

Please sign in to comment.