This file contains 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 axios from 'axios'; | |
import Raven from 'raven-js'; | |
const getClient = (baseUrl = null) => { | |
const opt = { | |
baseURL: baseUrl, | |
crossdomain: true | |
}; | |
opt.headers = { |
This file contains 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 cv2 | |
import random | |
cap = cv2.VideoCapture(0) | |
cat_cascade = cv2.CascadeClassifier('haarcascade_frontalcatface.xml') | |
cv2.namedWindow('img') | |
while True: |
This file contains 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
from tensorflow.keras.models import Sequential | |
from tensorflow.keras.callbacks import EarlyStopping | |
from tensorflow.keras.layers import Activation, Dropout, Flatten, Dense, Conv2D, MaxPooling2D | |
model = Sequential() | |
model.add(Conv2D(filters = 32, kernel_size = (3, 3), input_shape = image_shape, activation = 'relu')) | |
model.add(MaxPooling2D(pool_size = (2, 2))) | |
model.add(Conv2D(filters = 32, kernel_size = (3, 3), input_shape = image_shape, activation = 'relu')) |