-
kimukou2628
- 5508
- 0
- 2
- 9
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
(#html5j ust at http://t.co/QsDDbFXK9P ) http://t.co/jj9BgGqlwP P16 実際のフィルター処理。ソースコードは P17見てね!
2013-08-26 21:48:29![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
"音声認識は、WebSpeech APIを使ってます。W3Cでドラフトにもなっていない、Chromeのみの実装です。認識は、Googleさんが頑張っています。使い方も簡単です。" #html5j
2013-08-26 21:49:20![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
(#html5j ust at http://t.co/QsDDbFXK9P ) http://t.co/jj9BgGqlwP P18 最新の音声認識(Androidの音声認識の機能を流用してるのかも? とのお話
2013-08-26 21:49:25![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
当日の動画はこちらです。あんまりマンガテレビは出てきませんが・・。http://t.co/b2H0W5QBSi #html5j
2013-08-26 21:49:29![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
"あと意外に重要なのが、先ほどの比留間さんのスライドにもありましたが、httpsにしてやる必要があります。httpだと認識の度にダイアログが出てしまいます" #html5j
2013-08-26 21:50:13![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
(#html5j ust at http://t.co/QsDDbFXK9P ) http://t.co/jj9BgGqlwP P19 httpsにするというテクは実は重要!(httpだと毎回 デバイスにアクセスしますか?とか聞かれてしまうので
2013-08-26 21:50:26![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
"あとHeadTrackr.jsを使って顔検出をしています。Face.jsより高速に動きます。MBPで30fpsくらいです。" #html5j
2013-08-26 21:51:06![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
(#html5j ust at http://t.co/QsDDbFXK9P ) http://t.co/jj9BgGqlwP P20 Face.jsが遅いのでこっちを使う=>ただし複数認識は無理ですよ とのこと
2013-08-26 21:52:12![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
(#html5j ust at http://t.co/QsDDbFXK9P ) http://t.co/jj9BgGqlwP P23 高速化のポイント<=30万回のループを何とかしよう! P24 目標(60フレーム目指そう!
2013-08-26 21:53:38![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
"白石さんという人から目標を出されました。マンガカフィルター処理を60fps @ MBPで。1回あたりの処理を30msec以下に抑える必要があります。パフォーマンスチェックにはChromeのWeb ToolのPerfilesがかなり便利です。" #html5j
2013-08-26 21:54:43![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
"画像を取ってくるのに7ms、マンガ化処理に4msかかっています。高速化するときに何をすればいいのかがすぐにわかります" #html5j
2013-08-26 21:55:50![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
(#html5j ust at http://t.co/QsDDbFXK9P ) http://t.co/jj9BgGqlwP P26 ちょっとした書き方でだいぶパフォーマンスが変わるとのこと プロパティアクセス、関数アクセス =>凄い遅い ベタ書き、変数を使う
2013-08-26 21:58:13![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
60fps出すためには,関数のインライン展開と,パラメータをプロパティではなく変数で渡すことを徹底する. #html5j
2013-08-26 21:58:32![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
マンガテレビのJavaScriptチューニング:関数を使用しない、プロパティアクセスではなく変数を使用 #html5j
2013-08-26 21:58:42![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
(#html5j ust at http://t.co/QsDDbFXK9P ) http://t.co/jj9BgGqlwP P26 構造化プログラミングっぽい奴使うと遅くなるって話に似てるかも(汗
2013-08-26 21:58:57![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
マンガテレビのJavaScriptチューニング:関数呼出し減らす、プロパティ参照を減らす、演算処理を減らす #html5j
2013-08-26 22:00:17