Submit Search
Upload
ブラウザからカメラを呼び出し手書きのサインを読み取って認証するぞ
•
0 likes
•
573 views
K
Kohei Kawasaki
Follow
We Are JavaScripters! @18th 登壇資料 #wejs
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 35
Download now
Download to read offline
Recommended
今日からはじめる「じぶんブランディング」
今日からはじめる「じぶんブランディング」
Sunami Hokuto
JSと仲良くなるための心得
JSと仲良くなるための心得
鈴木 安美
名刺作った話
名刺作った話
Iruyan_Zak Hirouji
JavaOne2014 報告会:Java Embedded 関連のアップデート
JavaOne2014 報告会:Java Embedded 関連のアップデート
Hiroki Ooyama
親切なお店屋さん、身障者支援のビジネス・アイデア
親切なお店屋さん、身障者支援のビジネス・アイデア
勇 茂森
ゼロから始める技術書執筆 by 湊川あい
ゼロから始める技術書執筆 by 湊川あい
Ai Minatogawa
1-div CHALLENGE
1-div CHALLENGE
Kohei Kawasaki
node-canvasでアニメーションGifをつくって遊ぶぞ!
node-canvasでアニメーションGifをつくって遊ぶぞ!
Kohei Kawasaki
Recommended
今日からはじめる「じぶんブランディング」
今日からはじめる「じぶんブランディング」
Sunami Hokuto
JSと仲良くなるための心得
JSと仲良くなるための心得
鈴木 安美
名刺作った話
名刺作った話
Iruyan_Zak Hirouji
JavaOne2014 報告会:Java Embedded 関連のアップデート
JavaOne2014 報告会:Java Embedded 関連のアップデート
Hiroki Ooyama
親切なお店屋さん、身障者支援のビジネス・アイデア
親切なお店屋さん、身障者支援のビジネス・アイデア
勇 茂森
ゼロから始める技術書執筆 by 湊川あい
ゼロから始める技術書執筆 by 湊川あい
Ai Minatogawa
1-div CHALLENGE
1-div CHALLENGE
Kohei Kawasaki
node-canvasでアニメーションGifをつくって遊ぶぞ!
node-canvasでアニメーションGifをつくって遊ぶぞ!
Kohei Kawasaki
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
ブラウザからカメラを呼び出し手書きのサインを読み取って認証するぞ
1.
ブラウザからカメラを呼び出 し手書きのサインを読み取っ て認証するぞ @kawasako We Are
JavaScripters! @18th
2.
@kawasako3 かわさこ
3.
今日は コード出てきません!
4.
発端
5.
ロゴステッカー作ろうぜ
6.
せっかく配るなら何か 遊びたい 🤔
7.
また来たいな∼と 思ってもらいたい
8.
塚田○場
9.
ステッカーが会員証に なったらおもろくない?
10.
でも印刷時にバーコー ドを刷るというのも…
11.
署名だ
12.
ストーリー • ステッカーを配る • ステッカーにマジックでサインしてもらう •
サインしたステッカーをカメラで読み取って ユーザー名を登録してもらう
13.
ストーリー • ステッカーをカメラ読み取ったらユーザー名がわかる! • 受付が簡単になる
とか • 参加者同士でフレンド登録できる? とか • それで前に会った人が今日参加してるかわかる とか • ブラウザで実現すればアプリを入れてもらう必要もない!
14.
やるぞ 🙄
15.
要素技術 • カメラ MediaDevices.getUserMedia •
画像処理 OpenCV (wasm-build) • 二階調化 • 輪郭検出 • 透視変換 • 画像モーメント
16.
MediaDevices.getUserMedia
17.
MediaDevices.getUserMedia • カメラ呼び出すやつ • streamが得られるのでmediaElementに渡す •
一旦canvasにdrawImageすると好きに加工できる
18.
19.
OpenCV (wasm-build)
20.
OpenCV (wasm-build) • 画像処理するやつ •
古くからあるので知見が豊富 • emscriptenでcompileする • new Mat()したやつdeleteし忘れるとメモリリークする • めんどい
21.
レシピ 🍳
22.
二階調化 白黒の世界 = 形だけの世界
23.
輪郭検出 五角形かつ一定以上の面積があるものだけ抽出
24.
透視変換 (1) 元のロゴについて最小矩形を作っておく Except where
otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License https://www.w3.org/html/logo/
25.
透視変換 (2) 入力画像についても最小矩形を作る
26.
透視変換 (3) 元のロゴに矩形を合わせるようにして変形する
27.
二階調化 (再) 閾値を調整 特に赤っぽい色が0になるように
28.
デモ
29.
ロゴを認識してサインを 抽出できてえらい!🎉
30.
ここからが本題
31.
どうやってマッチングするか • 1:1の比較ではないので単純な画像比較で登録された全データと 照合するわけにはいかない • どの方式で数値化すれば速度面と精度面が担保できるか •
ベクトルとして? • 面積・重心? • 特異点? • コーナー検出?
32.
まだテスト中
33.
ちょっと思ってること • 今まで所謂フロントエンドエンジニアと他の技術領域は少 し距離があった • これからは一気に距離が近づくかもしれない
ブラウザか らデバイスにアクセスするAPI 機械学習系ライブラリ Tensorflow.jsの登場など • どこまでがフロントエンドエンジニアか?とか気にしなく ていい 昨今はJSの知識でなんでも挑戦できる 楽しい
34.
完成したらまた発表し に来ます!たぶん!
35.
Thanks!
Download now