This file contains hidden or 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
import cv2 | |
import numpy as np | |
import pandas as pd | |
import tqdm | |
import imutils | |
import os | |
class VideoStabilizer: | |
def __init__(self, video_in_path, video_out_path, side_by_side=False, crop_percent=None, max_width=500): |
This file contains hidden or 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
// This sketches a script that will sample images from an AVAsset at a | |
// new framerate. This might be used to transcode a movie or create an | |
// animated GIF. | |
import AppKit | |
import AVFoundation | |
import CoreMedia | |
let FPS = 12 // The target framerate for the new movie. | |
let frameDuration = CMTimeMake(1, Int32(FPS)) |
This file contains hidden or 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
public extension View { | |
func bottomSheet<Content: View>(isPresented: Binding<Bool>, title: LocalizedStringKey? = nil, @ViewBuilder content: @escaping () -> Content) -> some View { | |
self.windowOverlay(isKeyAndVisible: isPresented) { | |
if isPresented.wrappedValue { | |
BottomSheet(isPresented: isPresented) { | |
HStack(spacing: 16) { | |
ZStack { | |
Circle() | |
.fill(Color.darkCharcoal) | |
.frame(width: 32, height: 32) |
OlderNewer