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
/** | |
* Usage: | |
* phantomjs screenshot.js http://google.de /pi/a.png | |
*/ | |
var page = require('webpage').create(), | |
system = require('system'); | |
page.viewportSize = { width: 1280, height: 800 }; | |
if (system.args.length === 1) { |
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
tar xfvz [ARCHIV].tar.gz | |
tar xfvj [ARCHIV].tar.bz2 | |
tar xfvJ [ARCHIV].tar.xz | |
tar xfv [ARCHIV].tar | |
unzip [ARCHIV].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
<!-- Organisations Logo --> | |
<div itemscope itemtype="http://schema.org/Organization"> | |
<a itemprop="url" href="http://www.example.com/">Startseite</a> | |
<img itemprop="logo" src="http://www.example.com/logo.png" /> | |
</div> |
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
Scene scene = new Scene(new Group(new Text(10,10, "My Window"))); | |
Stage stage = new Stage(); | |
stage.setScene(scene); | |
stage.show(); |
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
public static void main(String[] args) { | |
System.out.println("Welcome to OpenCV " + Core.VERSION); | |
System.loadLibrary("libs/x64-" + Core.NATIVE_LIBRARY_NAME); | |
VideoCapture vc = new VideoCapture(0); // Funktioniert auch wenn man die NUmmer einer nicht vorhanden Webcam eingibt! | |
if (!vc.isOpened()) { | |
System.out.println("Auf Webcam konnte nicht zugeriffen werden"); | |
System.exit(1); | |
} |
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 <stdio.h> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
using namespace cv; | |
int main( int argc, char** argv ) { | |
Mat image; | |
image = imread( argv[1], 1 ); |
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
mkdir opencv-build | |
cd opencv-build | |
git clone https://github.com/Itseez/opencv.git | |
cd opencv | |
cmake . | |
make | |
sudo make install |
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
// wget https://gist.github.com/b-oern/5654064/raw/927314608acb75a1f91be64a05111e77f26636d8/hw.sh ; chmod +x hw.sh ; sh hw.sh | |
echo "Hallo Welt" |
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
sudo apt-get install build-essential cmake git-core libgtk2.0-dev pkg-config python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev |
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
cmake_minimum_required(VERSION 2.8) | |
project( DisplayImage ) | |
find_package( OpenCV REQUIRED ) | |
add_executable( DisplayImage DisplayImage.cpp ) | |
target_link_libraries( DisplayImage ${OpenCV_LIBS} ) |
OlderNewer