-
Fork/clone the repository from GitHub.
-
Install opencv libraries:
$ sudo apt-get install "libopencv-*" -
Install sbt:
$ sudo echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
$ sudo apt-get update
$ sudo apt-get install sbt -
Go to
/usr/share/OpenCV/java/folder and copyopencv-248.jarintolibsubfolder of the project:$ cd $PATH_TO_LOGO_DETECTION_REPO
$ mkdir -p lib
$ cp /usr/share/OpenCV/java/opencv-248.jar lib/ -
Run sbt compile to ensure that everything is ok:
$ sbt compile -
Create a
twitter.configintoconfigsubfolder with your Twitter account data:$ mkdir -p config
$ touch config/twitter.configThe file should look like this (don't use
",<or>, just copy paste the keys and secrets):consumerKey=<your consumer key>
consumerSecret=<your consumer secret>
accessToken=<your access token>
accessTokenSecret=<your access token secret> -
Create two named pipes, in order to run the PipeConsumer/PipeProducer pairs.
$ cd $PATH_TO_LOGO_DETECTION_REPO
$ mkfifo links.fifo images.fifo -
Run each component (only pipe-based fetch and download implemented so far):
$ sbt "run-main fetch.Main"
$ sbt "run-main imgretrieve.Main"
-
Add sbteclipse plugin to your sbt plugin file:
$ echo addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0") >> ~/.sbt/0.13/plugins/plugins.sbt -
Build the Eclipse project:
$ cd $PATH_TO_LOGO_DETECTION_REPO
$ sbt eclipse -
Import the project in Eclipse
- Didn't manage to get in running on OS X :(