Getting Pastec Installed on Mac

Not that I don’t have a zillion other things to do, but what the hell. Here’s how I got Pastec.io installed on my Mac laptop. (I have several thousand images from Instagram related to the bone trade. I’m hoping that Pastec can help me find/deduce/map/elucidate the visual grammar of all this).

  1. requires opencv, jsoncpp , and libmicrohttpd. If you’ve got homebrew installed:
    1.  $brew install homebrew/science/opencv
    2. $ brew install jsoncpp  (see https://github.com/cuber/homebrew-jsoncpp)
    3. Go to http://macappstore.org/libmicrohttpd/ which has a ruby script you’ll need. Only then can you run: $brew install libmicrohttpd
    4. You now need cmake & git: $brew install cmake git
  2. then you follow the instructions on the Pastec.io documentation page
    1. git clone https://github.com/Visu4link/pastec.git
    2. cd pastec
    3. mkdir build
    4. cd build
    5. cmake ../
    6. make
  3. then download the http://pastec.io/files/visualWordsORB.tar.gz file, unzip, and put it in your build directory.
  4. then fire it up:
    ./pastec visualWordsORB.dat

Now to figure out what happens next.

Screen Shot 2016-05-17 at 12.12.28 PM

… and Matthew Lincoln has a wrapper for R once you’ve done all this: https://github.com/mdlincoln/PastecR

…and Ryan Baumann has an excellent post with scripts he’s written to get images into Pastec and matches back out again: http://ryanfb.github.io/etc/2015/11/03/finding_near-matches_in_the_rijksmuseum_with_pastec.html

(update, a day later): Ryan’s scripts are awesome. Note that the third one requires ‘parallel‘ to be installed on your machine; $ brew install parallel did the trick for me. I’m now feeding pastec 2000 images I’ve gathered for my #bonetrade project with Damien Huffer, just to see what happens next…

Advertisements