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
# Clone fresh copy of OpenCV | |
git clone https://github.com/Itseez/opencv.git opencv-node | |
# Prepare build and install dirs | |
mkdir opencv-node-build | |
mkdir opencv-node-bin | |
cd opencv-node-build | |
# Configure OpenCV | |
cmake -DCMAKE_BUILD_TYPE=RELEASE \ |
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 <node.h> | |
#include <opencv2/opencv.hpp> | |
#include <string> | |
using namespace v8; | |
// This function returns a JavaScript number that is either 0 or 1. | |
Handle<Value> buildInformation(const Arguments& args) | |
{ | |
// At the top of every function that uses anything about v8, include a |
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/sh | |
cd ~/ | |
curl -L http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux-i386.sh > cmake.sh | |
sh cmake.sh --prefix='~/lib/cmake' | |
curl -L https://github.com/Itseez/opencv/archive/master.zip 2> /dev/null > opencv.zip | |
unzip opencv.zip |
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
General configuration for OpenCV 2.9.0 ===================================== | |
Version control: unknown | |
Platform: | |
Host: Linux 2.6.32-358.14.1.el6.mmapsem.x86_64 x86_64 | |
CMake: 2.8.10.2 | |
CMake generator: Unix Makefiles | |
CMake build tool: /usr/bin/gmake | |
Configuration: Release |
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
# Prepare system | |
apt-get update | |
apt-get upgrade | |
apt-get install build-essential | |
apt-get install cmake | |
apt-get install git | |
apt-get install pkg-config | |
# Grab frest opencv library | |
curl -sL https://github.com/Itseez/opencv/archive/master.zip > opencv.zip |
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
void drawHistogram(cv::Mat src, cv::Mat& histImage) | |
{ | |
using namespace cv; | |
using namespace std; | |
/// Separate the image in 3 places ( B, G and R ) | |
vector<Mat> bgr_planes; | |
split( src, bgr_planes ); | |
/// Establish the number of bins |
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
# Show a little love for IOS (configure toolchain) | |
set(SDKVER "7.1") | |
set(DEVROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer") | |
set(SDKROOT "iphoneos7.1") | |
set(CMAKE_OSX_SYSROOT "${SDKROOT}") | |
set(CMAKE_OSX_ARCHITECTURES "armv7 armv7s") | |
set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2") |
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
/** | |
* @brief Image enchancement and Hough transform example | |
* @author Eugene Khvedchenya <[email protected]> | |
* @copyright computer-vision-talks.com/articles/how-to-detect-circles-in-noisy-image/ | |
*/ | |
#include <opencv2/opencv.hpp> |
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
/** | |
* @brief Mapping functions from Eigen data types to OpenCV | |
* @author Eugene Khvedchenya <[email protected]> | |
* @details This header file contains code snippet for easy mapping Eigen types to OpenCV and back with minimal overhead. | |
* @more computer-vision.talks.com/articles/mapping-eigen-to-opencv/ | |
* Features: | |
* - Mapping plain data types with no overhead (read/write access) | |
* - Mapping expressions via evaluation (read only acess) | |
* | |
* Known issues: |
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
/********************************************************************************** | |
* OpenCV Rocks - Image mosaic demo | |
* | |
* This tutorial shows how to create mosaic image | |
* from digital photography using OpenCV. | |
* | |
* Author: Eugene Khvedchenya <[email protected]> | |
* | |
* More information: | |
* - http://computer-vision-talks.com |
OlderNewer