Exemple #1
0
	def load(self, filename=None):
		if not self.sure(): return
		if filename is None:
			filename, filtr = QtGui.QFileDialog.getOpenFileName(self, 'Choose a file to open', '.', 'SCN (*.scn)')
		if filename == '': return # did not load
		if self.preLoadCB: self.preLoadCB(filename, self)
		State.load(filename)
		self.setFilename(filename)

		if self.loadCB: self.loadCB(filename, self)
Exemple #2
0
        add_image(
            np.frombuffer(md['vbuffer'],
                          dtype=np.uint8).reshape(md['vheight'], md['vwidth'],
                                                  3).copy())
    State.push('Import movie frames')


if __name__ == '__main__':

    if 1:
        grip_dir = os.environ['GRIP_DATA']
        pred_fn = os.path.join(grip_dir, 'face/train.out')
        import_predictor(pred_fn)

    if 0:
        State.load('mu2.scn')
        State.g_dirty.clear()

    if 0:
        vnames = [
            'aEdge1',
            'aEdge2',
            'aEdge3',
            'aEdge4',
            'aEdge5',
            'aEdge6',
            'aEdge7',
            'aEdge8',
            'aEdge9',
            'aEdge10',
            'aEdge11',