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 cv2 | |
| img = cv2.imread('knk.jpg', 1) | |
| img = cv2.resize(img, (0, 0), fx=0.5, fy=0.5) | |
| myFilter = np.array([ | |
| [-1, 0, 1], | |
| [-2, 0, 2], | |
| [-1, 0, 1] | |
| ]) # Sobel X |
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 | |
| img = cv2.imread('me.png', 1) | |
| edges = cv2.Canny(cv2.GaussianBlur(img, (5, 5), 0), 50, 200, apertureSize=3) | |
| cv2.imshow('Edges', edges) | |
| lines = cv2.HoughLines(edges, 1, np.pi/200, 200) | |
| for data in lines: | |
| rho, theta = data[0] | |
| a = np.cos(theta) |
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
| using Microsoft.Win32; | |
| using System.Diagnostics; | |
| using System.Windows.Forms; | |
| namespace ForBin | |
| { | |
| public partial class Form1 : Form | |
| { | |
| private const int CP_NOCLOSE_BUTTON = 0x200; | |
| protected override CreateParams CreateParams |
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 speech_recognition as sr | |
| import os | |
| class Listenner(): | |
| def __init__(self, api_key): | |
| self.api_key = api_key | |
| self.R = sr.Recognizer() | |
| def recognize(self, AUDIO_FILE): | |
| with sr.AudioFile(AUDIO_FILE) as source: |
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
| #include <opencv2/core.hpp> | |
| #include <opencv2/imgcodecs.hpp> | |
| #include <opencv2/highgui.hpp> | |
| #include <opencv2/imgproc/imgproc.hpp> | |
| #include <opencv2/objdetect/objdetect.hpp> | |
| #include <iostream> | |
| #include <string> | |
| using namespace cv; | |
| using namespace std; |
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
| #include "opencv2/core/core.hpp" | |
| #include "opencv2/contrib/contrib.hpp" | |
| #include "opencv2/highgui/highgui.hpp" | |
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| using namespace cv; | |
| using namespace std; |
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 tensorflow as tf | |
| import tflearn | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy.stats import norm | |
| import tflearn.datasets.mnist as mnist | |
| trainX, trainY, testX, testY = mnist.load_data(one_hot=True) | |
| TENSORBOARD_DIR='./logs/vae' |
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 tensorflow as tf | |
| import tflearn | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy.stats import norm | |
| import tflearn.datasets.mnist as mnist | |
| trainX, trainY, testX, testY = mnist.load_data(one_hot=True) | |
| TENSORBOARD_DIR='./tmp/tflearn/vae' |
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 tensorflow as tf | |
| import tflearn | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy.stats import norm | |
| import cv2 | |
| import tflearn.datasets.mnist as mnist | |
| trainX, trainY, testX, testY = mnist.load_data(one_hot=True) |
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 origami | |
| APP_TOKEN = "nongh::2113789:5001:8000:54.158.186.33" | |
| app = origami.register(APP_TOKEN) | |
| @origami.crossdomain | |
| @app.listen() | |
| def concat(): | |
| allText = origami.getTextArray() |