This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ctime> | |
#include <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <raspicam/raspicam.h> | |
#include <signal.h> | |
//#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.models import load_model | |
import keras.backend as K | |
from PIL import Image | |
import numpy as np | |
import uuid | |
import os, time | |
from random import randint | |
import constants as P | |
GENERATOR_MODEL = 'model.h5' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<String> generateVideo(String videoPath, List<StyleChangeRecord> videoChangeRecords, Function(data.Stack<ProgressItem> progress) callback) async { | |
await _checkDirs(); | |
_cleanBasePathWithFilter(".aac"); | |
_pushProgress(ProgressItem("Transformation Step", 1, 4, "Clean folder.."), callback); | |
List<Future> futures = <Future>[]; | |
new Directory('$basePath/$_framesFolder').listSync().forEach((frame) async { | |
if (FileSystemEntity.typeSync(frame.path) == FileSystemEntityType.file) { | |
futures.add((frame as File).delete()); | |
} |