Skip to content

swank-rats/image-processing

Repository files navigation

Image processing

Installation and project setup

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.

  1. Install OpenSSL
  2. Download OpenSSL Installer for Windows
  3. Run installer
  4. Add a new system environment variable. To do so open Control Panel -> System -> Advanced system settings -> Environment variables.
  5. 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!)
  6. OpenSSL installation is finished
  7. Install Poco C++ Libraries
  8. Download Poco C++ Libraries 1.5.4 (development version) all - direct link - download poco-1.5.4-all.zip
  9. Unpack the archive file to e.g. C:\Poco
  10. Navigate to the folder
  11. Open the file "components" and remove "CppUnit", "Data", "Data/SQLite", "Data/ODBC", "Data/MySQL", "Zip"
  12. You have to edit the path to your OpenSSL installation in the file "buildwin.cmd", if it is not "C:\OpenSSL"
  13. Double click build_vs120.cmd -> this command will build the needed files
  14. Make sure that the folder e.g."C:\Poco" contains a folder "bin" and "lib".
  15. Again add a new system environment variable.
  16. 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!)
  17. Edit the variable PATH
  18. Add "C:\Poco\bin" at the end (between the last and the new entry must be a ";"!)
  19. Poco installation is finished.
  20. Install OpenCV
  21. Download OpenCV 2.4.9
  22. Unpack the archive file
  23. Copy all the files to the location where you want it to have on your compute
  24. OpenCV is already delivered with prebuild VS120 libs. So we have nothing to build.
  25. Again add a new system environment variable. To do so open Control Panel -> System -> Advanced system settings -> Environment variables.
  26. 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".
  27. Modify the PATH variable. Add "%OPENCV%\x86\vc12\bin;" (without ") at the end of the value of your PATH variable.
  28. OpenCV installation is finished.,
  29. Clone this repository
  30. Open the solution with VS 2013
  31. Build the project
  32. Click right on the solution and go to -> properties -> debugging -> additional command line parameters
  33. add /uri=ws://127.0.0.1:3001/ where the IP and port should be the address of the NodeJS server
  34. Finish - now you can run the application!

Troubleshooting

Build & Start application

  1. Open the solution with VS 2013
  2. Right click on the solution image-processing -> Properties
  3. Now navigate to Configuration properties -> Debugging -> Command line arguments
  4. Enter /uri=wss://IP:3001/ (replace the IP with the IP of your game server)
  5. Build it
  6. 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/

Project documentation

The whole project documentation can be found here: http://swank-rats.github.io/docs/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages