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
#!/bin/bash | |
input_video=$1 | |
# Parameters | |
scene_detection_score="0.3" | |
tesseract="/Users/vvzen/Desktop/framestore/experimental-development/automatic-TO-recognition/ocr/tesseract/tesseract" | |
# My testing has been done with | |
# tesseract 5.0.1-9-g31a968 | |
# leptonica-1.81.1 |
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
IFS=$'\n'; for author in `git shortlog --summary --numbered | awk '{print $2 " " $3}'`; do echo -e $author; git log --author="$author" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "\tadded lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }'; done |
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
#!/bin/env python3 | |
import os | |
current_dir = os.path.dirname(os.path.realpath(__file__)) | |
source = 'my_ProRes.mov' | |
ffmpeg_command_template = ( 'ffmpeg \\\n' | |
'-loop 1 -r {fps} -t 5 -i black.jpg \\\n' | |
'-ss {start} -r {fps} \\\n' |
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
""" | |
This is currently highly experimental!! | |
Please make a backup before testing it.. | |
""" | |
from __future__ import print_function | |
import os | |
import re | |
import sys |
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
# This stuff was tested on zsh. It should work on bash but won't work on tcsh for sure! | |
# Dumb way to sort du output by size and only list up to the 50 top dirs that we can access | |
# |& is used to pipe stderr to the next command | |
# | |
du -k |& grep -v "Permission denied" | sort -nr | cut -f2 | head -n 50 | xargs du -sh |& grep -v "Permission denied" |& grep -v "No such" |& grep -v "Operation not" | |
# Compute the percentage of something | |
# 710 here is final expected number of files, we use `ls | wc -l` to get the current num of files | |
# then we pipe it into bc to do the math, then print to the console and save to file at the same time using tee |
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
// The cluster node in houdini creates 2 groups: | |
// attributepoints and clusterpoints | |
// but I need an attribute to store, for each cluster, the centroid | |
// So what I've come up is to... | |
// 1. Create an attribute on each point, called centroid | |
// and formatted like this: "{index_of_the_point}_{index_of_the_cluster}" | |
// See set_centroid_attribute.cpp | |
// 2. Use it so that each point will loop in all other points |
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 QtQuick 2.0 | |
ListModel { | |
id: assetModel | |
ListElement { | |
name: 'env_building_020' | |
cbPublishAsset: true | |
assetsComponents:[ |
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
#!/bin/sh | |
# Replace all python3.5 with your version | |
export CONDA_ENV_DIR=~/miniconda3/envs/cv | |
export CPLUS_INCLUDE_PATH=$CONDA_ENV_DIR/lib/python3.5 | |
export OPENCV_CONTRIB_DIR=~/Documents/code/learning/python/opencv/opencv_contrib | |
cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D OPENCV_EXTRA_MODULES_PATH=$OPENCV_CONTRIB_DIR/modules \ | |
-D PYTHON3_LIBRARY=$CONDA_ENV_DIR/lib/python3.5m.dylib \ |
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
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0}" |
NewerOlder