npm install
node main.js
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 | |
rate=10 | |
srcdir='org' | |
destdir='optimized'$rate | |
mkdir $destdir | |
for inpath in `\find $srcdir -name '*.jpg' -or -name '*.png' `; do |
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 numpy as np | |
import matplotlib.pyplot as plt | |
import cv2 | |
import glob | |
pathes = glob.glob('./datas/input/*.jpg') | |
for path in pathes: | |
print(path) |
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
count=0 | |
for inpath in `\find /Volumes/20190915/bb -name '*.JPG' `; do | |
outpath=${inpath/bb/dd} | |
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
#include <iostream> | |
#include <codecvt> | |
#include <sstream> | |
// https://onlineutf8tools.com/convert-utf8-to-utf16 | |
// https://cpprefjp.github.io/lang/cpp11/char16_32.html | |
using namespace std; |
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
/* | |
* eos - A 3D Morphable Model fitting library written in modern C++11/14. | |
* | |
* File: examples/fit-model-simple.cpp | |
* | |
* Copyright 2015 Patrik Huber | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at |
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
#pragma once | |
#include "ofMain.h" | |
// lib | |
#include "ofxGui.h" | |
#include "ofxKinectV2.h" | |
#include "format.h" | |
class Const |
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 | |
# 縦 x 横 | |
width=1280 | |
height=720 | |
# crop | |
crop='720:720:0:0' | |
crop2='720:720:510:0' |
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 | |
# | |
# Read-only Root-FS for Raspian | |
# | |
# Modified 2016 by Stefan Bonfert to make it compatible with Raspbian | |
# Jessie (vanilla). | |
# | |
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
# overlayfs integrated in Linux Kernel >= 3.18. | |
# |
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 | |
echo "Hello" | |
for file in *.m4v | |
do | |
echo "-------------" | |
echo "CONVERT $file" | |
ffmpeg -vcodec "h264" -i "$file" "./output/$file.mp4" | |
# ffmpeg -i "$file" -vf scale=960:540 "./output/$file.mp4" |
NewerOlder