How to use packages that depend on Node.js core modules in React Native.
See the [node-libs-react-native][node-libs-react-native] library as a convenience for implementing this method.
#!/usr/bin/env python | |
""" Video stabilization with OpenCV (>=2.3) and Hugin | |
Adrien Gaidon | |
INRIA - 2012 | |
TODO: add cropping, clean-up and improve doc-strings | |
""" |
from __future__ import division | |
import cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import os | |
os.chdir('C:/Users/gennady.nikitin/Dropbox/Coding/OpenCV') | |
# define variable for resize tratio | |
ratio = 1 |
# Based on this answer: https://stackoverflow.com/a/61859561/1956278 | |
# Backup old data | |
Rename-Item -Path "./data" -NewName "./data_old" | |
# Create new data directory | |
Copy-Item -Path "./backup" -Destination "./data" -Recurse | |
Remove-Item "./data/test" -Recurse | |
$dbPaths = Get-ChildItem -Path "./data_old" -Exclude ('mysql', 'performance_schema', 'phpmyadmin') -Recurse -Directory | |
Copy-Item -Path $dbPaths.FullName -Destination "./data" -Recurse |