To get this project running you need OpenCV 2.4.9 and Poco C++ Libraries 1.5.4. We developed on Windows 7 by using Visual Studio 2013 as IDE and the Microsoft Visual C++ Compiler 18.00.21005.1 for x86 platform. The installation instructions are for Visual Studio 2013 and Windows.
It is necessary to add new system environment variables. So do not close the window, if you have opened it during the installation process.
- Install OpenSSL
- Download OpenSSL Installer for Windows
- Run installer
- Add a new system environment variable. To do so open Control Panel -> System -> Advanced system settings -> Environment variables.
- At system variables press the "new" button and add a variable with name "OPENSSL" and path to e.g. "C:\OpenSSL" (or to your new location) (with "" at the end!)
- OpenSSL installation is finished
- Install Poco C++ Libraries
- Download Poco C++ Libraries 1.5.4 (development version) all - direct link - download poco-1.5.4-all.zip
- Unpack the archive file to e.g. C:\Poco
- Navigate to the folder
- Open the file "components" and remove "CppUnit", "Data", "Data/SQLite", "Data/ODBC", "Data/MySQL", "Zip"
- You have to edit the path to your OpenSSL installation in the file "buildwin.cmd", if it is not "C:\OpenSSL"
- Double click build_vs120.cmd -> this command will build the needed files
- Make sure that the folder e.g."C:\Poco" contains a folder "bin" and "lib".
- Again add a new system environment variable.
- At system variables press the "new" button and add a variable with name "POCO" and path to "C:\Poco" (or to your new location) (with "" at the end!)
- Edit the variable PATH
- Add "C:\Poco\bin" at the end (between the last and the new entry must be a ";"!)
- Poco installation is finished.
- Install OpenCV
- Download OpenCV 2.4.9
- Unpack the archive file
- Copy all the files to the location where you want it to have on your compute
- OpenCV is already delivered with prebuild VS120 libs. So we have nothing to build.
- Again add a new system environment variable. To do so open Control Panel -> System -> Advanced system settings -> Environment variables.
- At system variables press the "new" button and add a variable with name "OPENCV" and path to e.g. "C:\opencv\build" (with "" at the end!). This is the path to the OpenCV installation including the folder "build". The folder "build" must contain the folder "include" and "x86\vc12\lib".
- Modify the PATH variable. Add "%OPENCV%\x86\vc12\bin;" (without ") at the end of the value of your PATH variable.
- OpenCV installation is finished.,
- Clone this repository
- Open the solution with VS 2013
- Build the project
- Click right on the solution and go to -> properties -> debugging -> additional command line parameters
- add /uri=ws://127.0.0.1:3001/ where the IP and port should be the address of the NodeJS server
- Finish - now you can run the application!
- OpenCV: install instructions windows
- OpenCV: instruction for setting up the environment variables
- OpenCV: general install instructions
- OpenCV: Installing & Configuring OpenCV with Visual Studio
- Poco: Building On Windows
- Open the solution with VS 2013
- Right click on the solution image-processing -> Properties
- Now navigate to Configuration properties -> Debugging -> Command line arguments
- Enter /uri=wss://IP:3001/ (replace the IP with the IP of your game server)
- Build it
- Run it
When you run the .exe manually do not forget to pass the /uri parameter.
//to get help:
image-processing.exe /help
//to start the image processing server (important use wss and add a "/" at the end!)
image-processing.exe /uri=wss://127.0.0.1:3001/
The whole project documentation can be found here: http://swank-rats.github.io/docs/