Skip to content

Instantly share code, notes, and snippets.

@nolll77
nolll77 / main.py
Created February 8, 2021 09:24 — forked from khanhnamle1994/main.py
FCN - Full Code
#--------------------------
# USER-SPECIFIED DATA
#--------------------------
# Tune these parameters
num_classes = 2
image_shape = (160, 576)
EPOCHS = 40
BATCH_SIZE = 16
@nolll77
nolll77 / main.py
Created February 8, 2021 09:24 — forked from khanhnamle1994/main.py
FCN - Full Code
#--------------------------
# USER-SPECIFIED DATA
#--------------------------
# Tune these parameters
num_classes = 2
image_shape = (160, 576)
EPOCHS = 40
BATCH_SIZE = 16
X = np.array([[0.0], [1.0], [2.0], [3.0]])
y = np.array([0.0, 2.0, 4.0, 6.0])
model_parameters = {'b': 0.0, 'w': np.array([0.5])}
y_predicted = [predict(x, model_parameters) for x in X]
plt.figure(figsize=(8, 5))
plt.yticks(np.arange(0, 7, 0.5))
plt.xticks(np.arange(0, 4, 1))
plt.ylabel("y")
@nolll77
nolll77 / basic_motion_detection_opencv_python.py
Created May 29, 2020 09:55 — forked from pknowledge/basic_motion_detection_opencv_python.py
Motion Detection and Tracking Using Opencv Contours
import cv2
import numpy as np
cap = cv2.VideoCapture('vtest.avi')
frame_width = int( cap.get(cv2.CAP_PROP_FRAME_WIDTH))
frame_height =int( cap.get( cv2.CAP_PROP_FRAME_HEIGHT))
fourcc = cv2.VideoWriter_fourcc('X','V','I','D')
@nolll77
nolll77 / node_tutorial.md
Created May 24, 2020 09:18 — forked from nlaz/node_tutorial.md
Build a Backend from Scratch