GithubHelp home page GithubHelp logo

masui / gyazolink Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 9.82 MB

Gyazo画像の属性を利用して芋蔓検索する実験

Makefile 5.81% Ruby 54.61% HTML 11.65% JavaScript 7.05% CoffeeScript 19.39% CSS 1.50%

gyazolink's Introduction

GyazoLink

Gyazo画像のコメント/属性を利用して芋蔓検索を行なう。

  • (JSONデータを使う旧版はLocalディレクトリに入れた)
  • express + Mongo 利用

gyazo.masuilab.org で運用中

  • 約5万枚の写真やGyazoデータのコメントを利用
  • 画像の類似度はTF-IDFで計算
  • クリックした画像に近いものをリストする
  • コメントからテキスト検索も可能

GeoJSONというのを使う場合

> use gyazo
> db.attrs.ensureIndex({'loc': '2dsphere'})

とするようなのだがRubyからこれを呼べないので

> db.attrs.ensureIndex({'loc': '2d'})

という「legacy」なやり方で登録する。

db.attrs.find({loc: {$near: [139.73, 35.63]}})

のようにして近いデータを検索できる。

新しい近傍検索のやり方 http://docs.mongodb.org/manual/reference/operator/query/near/ http://stackoverflow.com/questions/22881401/mongodb-find-query-with-near-and-coordinates-not-working GeoJSON http://s.kitazaki.name/docs/geojson-spec-ja.html 2Dshpere index http://docs.mongodb.org/manual/core/2dsphere/

gyazolink's People

Contributors

masui avatar

Stargazers

pastak avatar

Watchers

 avatar James Cloos avatar  avatar

gyazolink's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.