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
orb = cv2.ORB_create() | |
kp1, des1 = orb.detectAndCompute(l, None) | |
kp2, des2 = orb.detectAndCompute(r, None) | |
# create BFMatcher object | |
bf = cv2.BFMatcher(cv2.NORM_HAMMING, crossCheck=True) | |
# Match descriptors. | |
matches = bf.match(des1, des2) |
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 rawpy | |
import imageio | |
raw = rawpy.imread('RAW_2017_12_12_22_08_32_701.dng') | |
print(raw.raw_image.shape) | |
# (3032, 4032) | |
def save_plane(plane, name): |
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
// | |
// !!WARNING: Not recommended for production code!! | |
// | |
public class ClassLoaderActivity extends Activity | |
{ | |
public void onCreate(Bundle savedInstanceState) | |
{ | |
// file.jar has a dex'd "classes.dex" entry that you can generate with "dx" from any number of JARs or class files | |
ClassLoader dexLoader = new DexClassLoader("/path/to/file.jar", getCacheDir().getAbsolutePath(), null, getClassLoader()); | |
setAPKClassLoader(dexLoader); |