Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
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
import cv2 | |
from PIL import Image, ImageOps | |
from dataclasses import dataclass | |
@dataclass | |
class VideoStatus: | |
time: float = 0 | |
videoObject: cv2.VideoCapture = None | |
def __deepcopy__(self, memo): | |
return self |
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
decompose <- function(expr) { | |
expr <- substitute(expr) | |
funs <- setdiff(all.names(expr), all.vars(expr)) | |
wrapped <- list() | |
for (fun in funs) { | |
fun_env <- environment(get(fun, envir = parent.frame())) | |
if(is.null(fun_env)) | |
namespace <- "base" | |
else | |
namespace <- getNamespaceName(fun_env) |