示例#1
0
 def setUp(self):
     logging.basicConfig(level=logging.ERROR)
     video_uri = md().video_uri
     print video_uri
     self.video = Video(video_uri,begin=0,end=42)
     self.sd = ShotDetector()
     self.cuts,self.diss = self.sd.process(self.video.uri,profile='relax')
示例#2
0
 def setUp(self):
     logging.basicConfig(level=logging.DEBUG)
     video_uri = md().video_uri
     self.video = Video(video_uri,begin=0,end=42)
     self.sd = ShotDetector()
示例#3
0
 def setUp(self): 
     self.uri = uri = md().video_uri
     self.video = Video(uri,begin=0,end=42)
     self.short_video = Video(uri,begin=0,end=5)
示例#4
0
 def setUp(self):
     logging.basicConfig(level=logging.DEBUG)
     video_uri = md().video_uri
     self.video = Video(video_uri,begin=0,end=42)#,hdf5file='/tmp/data')
示例#5
0
 def setUp(self):
     logging.basicConfig(level=logging.DEBUG)
     self.video_uri = md().video_uri
     video = Video(self.video_uri)
     self.fe = FrameExtractor(video)
示例#6
0
文件: dendo.py 项目: StevenLOL/pimpy
from pimpy.video.video import Video
from pimpy.video.cluster import *
from pimpy.video.dendogram import VideoDendogram
from tests.multimedia_data import multimediaData as md


uri = md().video_uri
v = Video(uri)
gc = gistClustering()
gc.getcluster(v,smoothbyhisto=True)

dd = VideoDendogram(gc,v)
dd.drawdendogram("gistclust_smooth.svg")

示例#7
0
 def setUp(self):
     logging.basicConfig(level=logging.DEBUG)
     video_uri = md().video_uri
     video = Video(video_uri)
     self.video_req = Video(video_uri,begin=60,end=70)
     self.cbr = ContentBasedRetrieval(video)
示例#8
0
 def setUp(self):
     video_uri = md().video_uri
     #self.video = Video(video_uri,begin=10,end=11)
     self.video = Video(video_uri,begin=10,end=11)
     print "HDF5 file %s " % self.video.hdf5.filename
示例#9
0
 def test_full_video(self):
     video_uri = md().video_uri
     self.video = Video(video_uri,hdf5file="test.hdf5")
     self.video.get_feature('bindct')        
示例#10
0
 def setUp(self):
     self.im = Image()
     im_path = md().image_path
     self.im.load(im_path)