Skip to content

Instantly share code, notes, and snippets.

View vb100's full-sized avatar
🎯
Focusing on A.I., ML and Deep Learning

Vytautas Bielinskas vb100

🎯
Focusing on A.I., ML and Deep Learning
View GitHub Profile
@vb100
vb100 / StockAnalysis.py
Last active July 11, 2017 19:52
This Python application read Finance stock data from Google API and represent it in HTML file.
from pandas_datareader import data
import datetime
from bokeh.plotting import figure, show, output_file
x
start = datetime.datetime(2016,11,1)
end = datetime.datetime(2017,2,10)
df = data.DataReader(name="GOOG", data_source="google", start=start, end=end)
#date_increase = df.index[df.Close > df.Open]
#date_decrease = df.index[df.Close < df.Open]
@vb100
vb100 / FaceDetection.py
Last active July 11, 2017 19:52
This Python application recognize faces from photo and mark it with green rectangular.
import cv2
face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
img=cv2.imread("news.jpg")
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray_img, scaleFactor=1.1,minNeighbors=5)