Search in sources :

Example 6 with FilterElement

use of de.serviceflow.frankenstein.vf.FilterElement in project Frankenstein by olir.

the class ProcessingSceneController method videoStarted.

@Override
public void videoStarted(int frames, double fps) {
    this.fps = fps;
    this.frames = frames;
    adjustVideoLengthDisplay();
    Platform.runLater(() -> {
        this.slider.setMin(1);
        this.slider.setValue(1);
        this.currentFrameIndex.setText("1");
        this.currentTime.setText("" + time(0));
        btnMark.setDisable(false);
        currentTime.setDisable(false);
        currentFrameIndex.setDisable(false);
    });
    FilterElement val = new FilterElement(new Range(1, frames), this);
    filterListData.add(val);
    Platform.runLater(() -> {
        drawEditCanvas();
    });
}
Also used : FilterElement(de.serviceflow.frankenstein.vf.FilterElement) Range(org.opencv.core.Range)

Aggregations

FilterElement (de.serviceflow.frankenstein.vf.FilterElement)6 FilterContext (de.serviceflow.frankenstein.plugin.api.FilterContext)3 SegmentVideoFilter (de.serviceflow.frankenstein.plugin.api.SegmentVideoFilter)3 DefaultFilterContext (de.serviceflow.frankenstein.vf.DefaultFilterContext)3 VideoFilter (de.serviceflow.frankenstein.vf.VideoFilter)3 Mat (org.opencv.core.Mat)3 Range (org.opencv.core.Range)2 Task (de.serviceflow.frankenstein.task.Task)1 TimeTaskHandler (de.serviceflow.frankenstein.task.TimeTaskHandler)1 VideoStreamSource (de.serviceflow.frankenstein.vf.VideoStreamSource)1 File (java.io.File)1 IOException (java.io.IOException)1 DateTimeParseException (java.time.format.DateTimeParseException)1 FXML (javafx.fxml.FXML)1 GraphicsContext (javafx.scene.canvas.GraphicsContext)1 CvException (org.opencv.core.CvException)1 Size (org.opencv.core.Size)1