<commit_before><commit_msg>Add instructions to compile OpenCV from sources and create .deb packaage<commit_after>HOW TO COMPILE
==============
http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html

Required Packages
[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

Check and if necessary install v4l2ucp, v4l-utils and libv4l-dev from synaptic package

Getting  OpenCV and unzip somewhere

cd opencv
mkdir release
cd release
cmake ..

Enter the created temporary directory (<cmake_binary_dir>) and proceed with:

make
sudo make install



HOW TO .deb PACKAGE
===================
From: http://unix.stackexchange.com/a/192950

Inside the build directory (release), it will generate a CMakeCache.txt file.

Edit the CMakeCache.txt file and change:
CPACK_BINARY_DEB:BOOL=ON

Run:
sudo make package

For more info see the CPACK_*_*:BOOL parameters in the cmake files, and consult the CPack documentation:
http://www.cmake.org/Wiki/CMake:CPackPackageGenerators

{'fraction_non_alphanumeric': 0.09531502423263329, 'fraction_numerical': 0.015347334410339256, 'mean_word_length': 5.3538461538461535, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5583261', 'n_tokens_mistral': 414, 'n_tokens_neox': 384, 'n_words': 127}