-
Email : [email protected]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
starting_salary = int(input("Enter the starting salary: ")) | |
semi_annual_rise = 0.07 | |
annual_return = 0.04 | |
total_cost = 1000000 | |
portion_down_payment = total_cost * 0.25 | |
months = 36 | |
min_rate = 0 # 0% | |
max_rate = 10000 # 100% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LiFailed(): | |
pass | |
class TrFailed(): | |
pass | |
try: | |
# whole code of li structure | |
if a == " ": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
from tkinter import Tk | |
from tkinter import filedialog | |
import zipfile | |
def select_folder(): | |
root = Tk() | |
root.withdraw() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
import os | |
import cv2 | |
train_folder = 'GTRSB/train/GTSRB/Final_Training/Images' | |
image_paths = [os.listdir(x[0]) for x in os.walk(train_folder)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
# from keras.models import load_model | |
rgb = cv2.VideoCapture(1) | |
facec = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') | |
font = cv2.FONT_HERSHEY_SIMPLEX | |
# d_faces = np.load('./dataset/face_data.npy') | |
# l_faces = np.load('./dataset/face_lab.npy') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import opencv as cv2 | |
train_folder = 'path/to/Image_folder' | |
image_paths = [os.listdir(x[0]) for x in os.walk(train_folder)] | |
for a in image_paths: | |
resized_a = cv2.resize(a, (32, 32)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# library | |
import numpy as np | |
# b_size is batch size | |
# inp_dim is input dimension | |
# hid_dim is hidden dimension | |
# out_dim is output dimension | |
b_size, inp_dim, hid_dim, out_dim = 64, 1000, 100, 10 | |
# Create random dataset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install build-essential | |
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev | |
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev | |
mkdir ~/Documents/temp | |
cd ~/Documents/temp | |
git clone https://github.com/opencv/opencv.git | |
cd opencv | |
git checkout 3.3.1 | |
cd .. | |
git clone https://github.com/opencv/opencv_contrib.git |