Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
商品がスキャンできない!ちょっとおバカな Vision フレームワーク
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yu Takahashi
September 20, 2025
Programming
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
商品がスキャンできない!ちょっとおバカな Vision フレームワーク
Yu Takahashi
September 20, 2025
Transcript
30 slides
Yu Takahashi (@yutk_941) ͕εΩϟϯͰ͖ͳ͍ʂ ͪΐͬͱ͓όΧͳ Vision ϑϨʔϜϫʔΫ
/ 31 ࣗݾհ ߴڮ ༝ (Yu Takahashi) • STORES ϨδνʔϜ
iOS ΞϓϦΤϯδχΞ 26 ଔఆऀΞϧόΠτ • SwiftUI ͕ग़ͨࠒʹ Swift ࢝Ίͨ 2 X: @yutk_941
ϨδΞϓϦͷεΩϟϯͷ͘͠Έ
/ 31 ϨδΞϓϦͷεΩϟϯͷ͘͠Έ 4 όοΫΤϯυ όʔίʔυͰݕࡧ ߹க͢Δ ΞΠςϜΛฦ٫ ϨδΞϓϦ όʔίʔυεΩϟϯ
/ 31 όʔίʔυεΩϟϯͷ͘͠Έ 5 Apple Vision ϑϨʔϜϫʔΫ import Vision let
request = VNDetectBarcodesRequest() let handler = VNImageRequestHandler(•••) try handler.perform([request]) if let results = request.results, let barcode = results.first?.payloadStringValue { print(barcode) }
ϨδΞϓϦͰൃੜͨ͠
/ 31 12 ܻόʔίʔυ͕ಡΊͳ͍!!! 7 073854000861
/ 31 0073854000861 12 ܻόʔίʔυ͕ಡΊͳ͍!!! 8 !?
/ 31 ݱঢ় 9 όοΫΤϯυ _073854000861 0073854000861 Ͷ͐ΑͦΜͳΜ! ϨδΞϓϦ
ͳΜͰͶΜ!
/ 31 11 όʔίʔυͷن֨ ԿΛنఆ͍ͯ͠Δ? • ͑Δจࣈ • ܻ etc…
ྫ) • JAN (EAN-13) • UPC-A • Code 128 etc…
/ 31 12 ༧ EAN-13 UPC-A Խ͚ͨΜ͡ΌͶ?
/ 31 υΩϡϝϯτݟͯΈͨ 13 VNBarcodeSymbology Vision ͕αϙʔτ͍ͯ͠Δ όʔίʔυҰཡ UPC-A ͕αϙʔτ͞Εͯͳ͍!?
UPC-A (12 ܻόʔίʔυ)
/ 31 15 UPC-A (12 ܻόʔίʔυ) ίʔυ νΣοΫσδοτ
/ 31 16 0 7 3 8 5 4 0
0 0 8 61 0 7 3 8 5 4 0 0 0 8 6 = 69 ••• 8+18 × 3 × 1 × 3 × 1 × 3 × 1 × 3 × 1 × 3 × 1 × 3 69 % 10 = 9 10 - 9 = 1 UPC-A νΣοΫσδοτܭࢉํ๏
ݕূ
/ 31 ݕূ 18 UPC-A ͷઌ಄ʹ 0 Λ͚ͯΈΔ ҟৗͳ EAN-13
ͳΒ 0 Λফͯ͠ݕࡧ~ ♪
EAN-13 (13 ܻόʔίʔυ)
/ 31 EAN-13 (13 ܻόʔίʔυ) 20 ࠃίʔυ
/ 31 21 0 0 7 3 8 5 4
0 0 0 8 61 = 69 × 3 × 1 × 3 × 1 × 3 × 1 × 3 × 1 × 3 × 1 × 3 × 1 70 - 69 = 1 EAN-13 (13 ܻόʔίʔυ) 0 7 9 8 15 4 0 0 0 8 18 0
/ 31 22 ݕূ݁Ռ Խ͚ͨ UPC-A = ਖ਼ৗͳEAN-13 ·͔͡Α 😇
/ 31 ͱ͍͏͜ͱ… Vision ϑϨʔϜϫʔΫ… UPC-A ʹҙਤతʹ 0 Λ͚ͯ EAN-13
ʹ͍ͯ͠Δ 23 υΩϡϝϯτʹॻ͍ͯ͘ΕΑʂ
/ 31 Ͳ͏͠Α͏ ઌ಄ 0 ͷ EAN-13 όʔίʔυओʹถ༻Ͱ༻ ୯ʹ 0
Λফ͚ͩ͢Ͱ͍͚ͳ͍ ʮUPC-A ͩͬͨՄೳੑ͕͋Δ͔ʯ Λผ͢Δ͔͠ͳ͍ 24
/ 31 ༨ஊ 25 Google ͷ ML Kit Ͱ ͪΌΜͱ
UPC-A (12 ܻ) ͷ·· ಡΈऔΕΔ
मਖ਼
/ 31 ΞΠςϜݕࡧϑϩʔͷमਖ਼ 27
/ 31 ݁Ռ 28
None
Thank you! X (@yutk_941) Blog
More Decks by Yu Takahashi
See All by Yu Takahashi
How Swift runs on Android ~Swift SDK for Android & KMP~
taka2120
0
310
Why Can't We Have Nice Macros for #Preview?
taka2120
0
34
Swift をつくろう!
taka2120
0
56
Foundation Models で On-device AI を実現する / Foundation Models for On-device AI
taka2120
0
140
Other Decks in Programming
See All in Programming
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
120
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
640
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
240
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.3k
Spec-driven Development with AI
simas
PRO
0
2.3k
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
200
Distance field of Julia set
kinakomoti321
0
320
Seven New Principles of Software Engineering
yegor256
0
490
小さなアプリを作って公開するまで
onozaty
0
170
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
Getting Started with Vibe Coding
miccheng
0
220
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
310
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
590
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
830
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Agile that works and the tools we love
rasmusluckow
331
22k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
Done Done
chrislema
187
17k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
280
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k