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, math, os | |
from pathlib import Path | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy.signal | |
import shutil, subprocess | |
from scipy.io import wavfile | |
import skimage as ski |
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, math, os | |
from pathlib import Path | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy.signal | |
import shutil, subprocess | |
from scipy.io import wavfile | |
# %% |
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
from enum import Enum | |
import copy | |
class FoldDirection(Enum): | |
Right = "r" | |
Left = "l" | |
class FoldingPaper: | |
def __init__(self, num_segments, perm_arr=None): |