Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
商品がスキャンできない!ちょっとおバカな Vision フレームワーク
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Yu Takahashi
September 20, 2025
Programming
0
7
商品がスキャンできない!ちょっとおバカな Vision フレームワーク
Yu Takahashi
September 20, 2025
Tweet
Share
More Decks by Yu Takahashi
See All by Yu Takahashi
Swift をつくろう!
taka2120
0
35
Foundation Models で On-device AI を実現する / Foundation Models for On-device AI
taka2120
0
98
Other Decks in Programming
See All in Programming
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
2
170
atmaCup #23でAIコーディングを活用した話
ml_bear
4
700
CSC307 Lecture 10
javiergs
PRO
1
690
AIプロダクト時代のQAエンジニアに求められること
imtnd
1
490
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
7
1.2k
CSC307 Lecture 09
javiergs
PRO
1
850
AWS Infrastructure as Code の新機能 2025 総まとめ~ SA 4人による怒涛のデモ祭り ~
konokenj
8
2.1k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
270
並行開発のためのコードレビュー
miyukiw
2
2k
ふん…おもしれぇ Parser。RubyKaigi 行ってやるぜ
aki_pin0
0
110
要求定義・仕様記述・設計・検証の手引き - 理論から学ぶ明確で統一された成果物定義
orgachem
PRO
1
450
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
310
Featured
See All Featured
Docker and Python
trallard
47
3.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Design in an AI World
tapps
0
160
The Art of Programming - Codeland 2020
erikaheidi
57
14k
How to Ace a Technical Interview
jacobian
281
24k
Fireside Chat
paigeccino
41
3.8k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
810
GraphQLとの向き合い方2022年版
quramy
50
14k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
530
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Visualization
eitanlees
150
17k
Transcript
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