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
int pin_e1 = 52; | |
int pin_in1_1 = 50; | |
int pin_in1_2 = 48; | |
int pin_e2 = 42; | |
int pin_in2_1 = 40; | |
int pin_in2_2 = 38; | |
void full_right() | |
{ |
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
//Complete Edge Detection Module - Naive Edge Detection + Prewitt + Sobel + Canny | |
//Also shows Gradient images in X and Y directions respectively. | |
#include <iostream> | |
#include <cmath> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#define CAM_INDEX 0 |
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
int pin_e1 = 52; | |
int pin_in1_1 = 50; | |
int pin_in1_2 = 48; | |
int pin_e2 = 42; | |
int pin_in2_1 = 40; | |
int pin_in2_2 = 38; | |
void full_right() | |
{ |
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
#include <iostream> | |
using namespace std; | |
class Computer // Standard way of defining the class | |
{ | |
public: | |
// This means that all of the functions below this(and any variables) | |
// are accessible to the rest of the program. | |
// NOTE: That is a colon, NOT a semicolon... |
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
#include <iostream> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
using namespace cv; | |
using namespace std; | |
int main() | |
{ |
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
#!/bin/bash | |
for n in E2 A2 D3 G3 B3 E4; do play -n synth 4 pluck $n repeat 2; done |
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
#include <iostream> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
//Define Threshold here | |
#define THRESH 127 | |
using namespace std; | |
using namespace cv; |
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
#include <iostream> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
using namespace std; | |
using namespace cv; | |
Mat makebinary(Mat image, int threshold) |
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
#include <iostream> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
//Scale Down Factor | |
#define SCL_FACTOR 10 | |
using namespace std; | |
using namespace cv; |
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
#!/bin/bash | |
# Reference: (Thanks StackOverflow) - http://stackoverflow.com/questions/2859908/iterating-over-each-line-of-ls-l-output | |
# Copy the script into a folder. Run it. This will make a folder for each of your file present in the directory. | |
# Helps me to organize my Movie collection. | |
ls -p | grep -v / | while read x; do if [[ $x != "MakeDirectory.sh" ]]; then mkdir "${x%.*}"; mv "$x" "${x%.*}"; fi done |