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
| <!-- | |
| Cohen-Sutherland outcode algorithm using html5 canvas and javascript. Click to clip lines sequentially | |
| Copyright (C) 2014 Kevin Martin Jose | |
| --> | |
| <!-- | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. |
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
| from aubio import source, pitch, freqtomidi, sink | |
| from pysoundcard import Stream | |
| if __name__ == '__main__': | |
| win_s = 1024 #fft size | |
| hop_s = 512 #hop size. Whatever that means | |
| s = Stream(block_length = hop_s) |
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,math | |
| import time | |
| import numpy as np | |
| from pymouse import PyMouse | |
| class ColourTracker: | |
| def __init__(self): | |
| cv2.namedWindow("colourTrackerWindow",cv2.CV_WINDOW_AUTOSIZE) | |
| cv2.namedWindow("alternateWindow",cv2.CV_WINDOW_AUTOSIZE) | |
| self.capture=cv2.VideoCapture(1) | |
| self.scale_down=1 |
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
| /* | |
| Usage : ./a.out <pythonfile> | |
| The transliterated file will be saved as original filename + ml.py | |
| Remember to place the file in the examples subdir in the libvarnam codebase | |
| wont work for multiple literals in the same line | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |
NewerOlder