Skip to content

Instantly share code, notes, and snippets.

@SiddharthSudhakar
SiddharthSudhakar / Crop_To_Bounded_Box
Created August 27, 2017 19:49
Tensorflow Crop to bounded box and save output image file
import tensorflow as tf
# Import the image
image = tf.image.decode_png(tf.read_file("./data/Input_image.png"), channels=1)
## Set the variable values here
# Offset variables values
offset_height= 20
offset_width = 20
# Target variables values
@SiddharthSudhakar
SiddharthSudhakar / webcrawler_buckysroomtrade.py
Last active March 14, 2017 07:33
A web crawler to extract the data on ranking and dislay rank, name and profile details. This project is soley for learning purposes
__author__ = 'Siddharth'
import requests
from bs4 import BeautifulSoup
def ranking_list(max_pages):
page=1
while page <= max_pages :
url="https://www.thenewboston.com/search.php?type=0&sort=reputation&page=" + str(page)
source_code= requests.get(url)