opencv/modules/softcascade/misc/roc_caltech.py

18 lines
359 B
Python
Raw Normal View History

2013-01-28 22:31:05 +08:00
#!/usr/bin/env python
import argparse
import sft
import sys, os, os.path, glob, math, cv2, re
from datetime import datetime
import numpy
if __name__ == "__main__":
path = "/home/kellan/datasets/caltech/set00/V000.txt"
# open annotation file
f = open(path)
2013-01-28 22:41:22 +08:00
annotations = sft.parse_caltech(f)
2013-01-28 22:31:05 +08:00
for each in annotations:
print each