Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

入渠時間と建造時間を自動で入力されるようにしたい #91

Closed
about518 opened this issue Sep 8, 2013 · 11 comments
Closed
Labels

Comments

@about518
Copy link
Contributor

about518 commented Sep 8, 2013

http://defr4gment.blogspot.jp/2013/08/googlechrome.html

そっか、内部的にスクリーンショット取って文字読み取れば!(無茶

@otiai10
Copy link
Member

otiai10 commented Sep 8, 2013

たしかにそれやってるの有りますね。

jsでキャプチャできることが判明したので、jsで画像解析できればいけますね。
どこを解析するか、とか結構ウザいと思いますけど

@about518
Copy link
Contributor Author

about518 commented Sep 8, 2013

JavaScript自体でOCRするのは難しそうなので、
https://recognize.jp/index.html
Web API使えればいいかしらー?

@about518
Copy link
Contributor Author

about518 commented Sep 9, 2013

とりあえず上記のWeb APIに利用申請してみました
どのくらい使えるかはわかりませんが・・・w

@otiai10
Copy link
Member

otiai10 commented Sep 9, 2013

そもそも盛り込むかどうかは未定です 😔

@about518
Copy link
Contributor Author

#113 と被ってる?かしら
docomoからAPIキーが送られてきたので試してみました。

ocrtest

スクリーンショットを取って入渠時間でトリミングし、画像をAPIにPOSTしてレスポンスを受け取ってます。
2~3秒かかるのが難点かな・・・

@otiai10
Copy link
Member

otiai10 commented Sep 12, 2013

どうやって使うんですか?

@otiai10
Copy link
Member

otiai10 commented Sep 12, 2013

入渠時間のトリミングのところは盛り込みたいですね

@about518
Copy link
Contributor Author

http://recognize.jp/reference/linewebapi.html
にAPIの利用方法があります。

とりあえずこれだと自前でサーバー用意しなくて済むので~
後ほど自分のブランチにサンプル上げておきます

@otiai10
Copy link
Member

otiai10 commented Sep 12, 2013

サーバサイド書いちゃってるんで、多分サーバはこっちでやりますよ。
クライアントサイドのトリミングが1番難点だったので、助かります

@about518
Copy link
Contributor Author

はいはーい。サーバー立ててやるんですねー
じゃあ、うちはクライアントサイドの方作りますかー

とりあえずテストコード
https://github.com/about518/kanColleWidget/commit/89432bb0020eb7dbf502f2934721f26b771344fc

@about518
Copy link
Contributor Author

#113 でやるのでClose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants