How to check matches


In [32]:
from lib.exp.featx import Featx
warnings.filterwarnings("ignore", category=DeprecationWarning)
root = 'univ_07'; name = 'coates'

Build Features data

Time consuming work


In [6]:
ft = Featx(root, name)
ft.get_slide_feats()
ft.get_frame_feats()


'No object named rtlog in the file'

Compute matches

Now the matchx get single_match pretty fast after first loop


In [35]:
from lib.exp.match import Matchx
mm = Matchx(root, name)

In [37]:
fid = 50570
mm.single_match(fid, auto_save=False)

Use plotter to check similarity and improve them


In [38]:
from lib.plotter.matching import MatchingPlotter as MP
mp = MP(root, name)
mp.set_data(mm.matches)

In [8]:
fig = plt.figure(figsize=(18, 28))
mp.result_grid(fig, from_=30)


Guess and get the answer from ground_truth


In [25]:
from lib.exp.evaluator.ground_truth import GroundTruth as GT
gt = GT(root, name)

In [26]:
gt.answer(fid)


Out[26]:
35

In [31]:
gt.guess(fid, 35)


Out[31]:
True

In [33]:
keg = ['lib.exp.base', 'lib.exp.evaluator.ground_truth', 
       'lib.plotter', 'lib.plotter.matching', 'lib.plotter.matching.core', 'lib.exp.featx']
reload_mods(keg)

In [ ]: