<s> from vision . track . realprior import * <EOL> import vision . detectionreader <EOL> import vision . drawer <EOL> import os . path <EOL> from vision import visualize <EOL> import random <EOL> import multiprocessing <EOL> pool = multiprocessing . Pool ( multiprocessing . cpu_count ( ) ) <EOL> import vision . track . dp <EOL> logging . basicConfig ( level = logging . DEBUG ) <EOL> path = "<STR_LIT>" <EOL> video = vision . flatframeiterator ( path + "<STR_LIT>" , start = <NUM_LIT:1> ) <EOL> root = os . path . join ( path , "<STR_LIT>" ) <EOL> patches , projections = pmvs . read ( root , start = <NUM_LIT:1> ) <EOL> seed = vision . Box ( <NUM_LIT> , <NUM_LIT:30> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT:30> + <NUM_LIT> , <NUM_LIT:0> ) <EOL> seed2 = vision . Box ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT:200> ) <EOL> seed3 = vision . Box ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> ) <EOL> seed4 = vision . Box ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> ) <EOL> seed5 = vision . Box ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> ) <EOL> seed6 = vision . Box ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT> ) <EOL> badseed = vision . Box ( <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT> + <NUM_LIT> , <NUM_LIT:12> + <NUM_LIT> , <NUM_LIT> ) <EOL> seeds = [ seed , seed2 , seed5 , seed6 ] <EOL> category = '<STR_LIT>' <EOL> detfile = '<STR_LIT>' . format ( category ) <EOL> detections = vision . detectionreader . exemplarsvm ( detfile ) <EOL> detections = list ( detections ) <EOL> detections . sort ( key = lambda x : - x . score ) <EOL> print detections [ <NUM_LIT:0> ] <EOL> realprior = ThreeD ( video , patches , projections ) . build ( detections ) <EOL> predicted = vision . track . dp . fill ( [ detections [ <NUM_LIT:0> ] ] , video , last = detections [ <NUM_LIT:0> ] . frame + <NUM_LIT:1000> , pool = pool , hogbin = <NUM_LIT:4> , pairwisecost = <NUM_LIT> , c = <NUM_LIT:0.1> , realprior = realprior ) <EOL> vit = visualize . highlight_paths ( video , [ predicted ] ) <EOL> visualize . save ( vit , lambda x : "<STR_LIT>" . format ( x ) ) </s>
