Skip to content

Instantly share code, notes, and snippets.

@ri-sh
ri-sh / googleImageSearch.py
Last active August 9, 2017 14:01
python script for downloading the full resolution original images from google image search
from bs4 import BeautifulSoup
import requests
import re
import urllib2
import os
import cookielib
import json
def get_soup(url,header):
return BeautifulSoup(urllib2.urlopen(urllib2.Request(url,headers=header)),"html.parser")
@ri-sh
ri-sh / imports.py
Created September 3, 2016 00:52
imports1
# imports
import numpy as np
import cv2
import matplotlib.pyplot as plt
@ri-sh
ri-sh / ManualHough.py
Last active November 29, 2022 10:40
Hough Lines from scratch using opencv and numpy
# imports
import numpy as np
import cv2
import matplotlib.pyplot as plt
# The Hough Transform is a popular algorithm for detecting any shape that can
# be represented in a parametric mathmatical form in binary images. This
# usually means that images need to be thresholded or filtered prior to running
@ri-sh
ri-sh / m.json
Created December 22, 2017 08:46
[{'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'existing': 'Y', 'udf': '24X4X3', 'max': 4, 'select': 'T'}, {'min': 2, 'trait': 6200, 'rank': 20, 'exis