INNER CODE UNIT · Python

FP

andrewssobral/bgslibrary · tools/fet/fet.py:66

        FP = FP + 1
        img_res[i,j] = red
      if(pixel_gt == 0 and pixel_fg == 0):
        TN = TN + 1
        img_res[i,j] = black
      if(pixel_gt == 255 and pixel_fg == 0):
        FN = FN + 1
        img_res[i,j] = green
  cv2.imshow('GT',img_gt)
  cv2.imshow('FG',img_fg)
  cv2.imshow('SC',img_res)
  cv2.imwrite(path_sc + file_gt, img_res)
  cv2.waitKey(1) # 33
  k = k + 1
  #break
cv2.destroyAllWindows()

Recall = TP / (TP + FN)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…