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 cv | |
import cv2 | |
import os | |
import Image | |
import json | |
import numpy as np | |
import urllib2 | |
from StringIO import StringIO | |
CASCADE = "./haarcascade_frontalface_alt.xml" |
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 pyaudio | |
import wave | |
import audioop | |
from collections import deque | |
import os | |
import urllib2 | |
import urllib | |
import time | |
import math | |
import json |
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
/* | |
Copyright (c) 2013, Broadcom Europe Ltd | |
Copyright (c) 2013, James Hughes | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright |
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
---------------------------------------------------------------------------------- | |
g++ -o test_1 test_1.cpp `pkg-config opencv --cflags --libs` | |
---------------------------------- using gcc and cmake ---------------------------------- | |
* Create a cmake file CMakeLists.txt | |
* Add the following to cmake file | |
cmake_minimum_required(VERSION 2.8) | |
project( DisplayImage ) | |
find_package( OpenCV REQUIRED ) |
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
time_dataset = [1 2 3 4 5 6 7 8]; | |
grp_size = 3; | |
overlap = 2; | |
% th = length(time_dataset) - overlap; | |
for i=1:grp_size-overlap:length(time_dataset) | |
disp(time_dataset(i:i+grp_size-1)); | |
end |