Skip to content

Instantly share code, notes, and snippets.

View leonidk's full-sized avatar

Leonid Keselman leonidk

View GitHub Profile
@leonidk
leonidk / glb.py
Last active November 8, 2016 23:32
Google Lens Blur Format
import base64
import sys
import os
def processFile(fileName):
f = open(fileName,'rb').read()
x = [('GDepth:Data','.jpg'),('GImage:Data','.jpg')]
for c in x:
start_pos = f.find(c[0])
@leonidk
leonidk / ffmpeg.py
Last active June 6, 2016 05:15
FFMPEG for Video Reading
import subprocess as sp
import numpy as np
import re
import cv2
FFMPEG_BIN = r'C:\Users\Leo\ffmpeg\bin\ffmpeg.exe'
INPUT_VID = 'Ecolipresentation.m4v'
def getInfo():
command = [FFMPEG_BIN,'-i', INPUT_VID, '-']