SlideShare a Scribd company logo
1 of 35
食肉の画像評価における
モバイルデバイスの活用につい
て
KOMINE.WORKS / Meat Image Japan
小峰 央志
代表
KOMINE.WORKS
兼
CTO
小峰 央志 / Hisashi KOMINE
hisashi@komine.works
特任研究員
兼
もくじ
• ミート・イメージ ジャパンの事業について
• Keras+Tensorflowによるロース芯抽出
• iOSでの学習済みモデルの利用・画像解析
ミート・イメージ ジャパン /
MIJ
https://www.meatij.or.jp
• 食肉評価用カメラの研究開発
• 枝肉情報データベースの研究開
発
• 食肉画像解析システムの研究開
発
帯広畜産大学の
大学ベンチャー
食肉評価用カメラ
ミラー型カメラ
◆利点
●フィルムミラー
⇒ ロース芯に対して鉛直方向から撮影
●高精細画像の解析
⇒ 脂肪交雑の詳細な評価 etc.
●撮影範囲が広く、横断面全体の観察が可能
食肉評価用カメラ
◆新型撮影装置(MIJ-15)
☞(一社)ミート・イメージ ジャパンを中心に開発
枝肉横断面
MIJ-15
ミラー型撮影装置
・重量 約 2.6 kg
・撮影速度 200~300 頭/h
・リアルタイムな解析が可能
( 10 秒/頭 )
・重量 約 8 kg
・撮影速度 200 頭/h
カメラ
枝肉画像データベース
https://carcassdb.meatij.or.jp
枝肉画像解析
脂肪面積割合と小ザシの評価
値である「新細かさ指数」を
利用した脂肪交雑基準の策定
枝肉画像解析 - 新細かさ指数/NFI
● 脂肪交雑の周囲長 (粒子の外周の長さ) を算出
白が脂肪交雑粒子
すべての粒子の周囲長を算出
総和
(左図の黒い線
)
● 周囲長の総和を
ロース芯面積 の
平方根あたりに換算
=総周囲長
NFI=
総周囲長
ロース芯面積√
枝肉画像解析 - 食味試験
アラザシ
小ザシ
カメラ x 枝肉DB x 画像解析
MIJ 枝肉データベース
枝肉データベース
生産者・流通業者
もくじ
• ミート・イメージ ジャパンの事業について
• Keras+Tensorflowによるロース芯抽出
• iOSでの学習済みモデルの利用・画像解析
ロース芯抽出
DeepLearningによる画像処理の種別
1. Image Classification
その画像に何が写っているのかを分類する
2. Object detection
その画像のどこに何が写っているのかを検出する
3. Image Segmentation
その画像のどの領域があるオブジェクトに属するのかを判定する
Image Segmentation
Non-semantic vs Semantic
Image Segmentation
1. Non-semantic segmentation
各画素の局所的な値のみをもとにセグメンテーションを行う
2. Semantic segmentation
画像全体の大局的な情報も利用してセグメンテーションを行う
例) 画像の上にあるから空、下にあるから地面など
Fully convolutional semantic
segmentation, Long et. al., 2014
ロース芯自動抽出結果
acc > 99.8 (v.7)
もくじ
• ミート・イメージ ジャパンの事業について
• Keras+Tensorflowによるロース芯抽出
• iOSでの学習済みモデルの利用・画像解析
サーバ側解析の問題
サーバでロース芯抽出
&画像解析
サーバ側解析の問題
サーバでロース芯抽出
&画像解析
サーバ側解析の問題
• カメラの台数が増えた場合にスケールが難しい
• 解析結果を即座にカメラ側で確認できない
カメラ側でロース芯抽出
&画像解析
サーバ側解析の問題
ロース芯抽出 & 画像解析 on
iOS
https://github.com/tensorflow/tensorflow/tree/m
aster/tensorflow/examples/ios
ロース芯抽出
Tensorflow
画像解析
OpenCV 3
https://opencv.org/releases.html
どちらもiOSで使える!が、、
C++ & Objective-C
Bridging-Header
SwiftプロジェクトでObjective-Cの
資産が使える仕組み
三段論法的
Tensorflow & OpenCV on Swift
1. Objective-CではC++が使える
2. SwiftではObjective-Cが使える
3.SwiftではC++が使える!
- (UIImage *)analyze:(UIImage *)image predImage:(UIImage *)predImage {
...
}
let resultImage = self.tfWrapper.analyze(cropImage, predImage: predImage)
実装例 - TFWrapper.analyze
@interface TFWrapper : NSObject
- (UIImage *)analyze:(UIImage *)image predImage:(UIImage *)predImage;
@end
#import "TFWrapper.h"
TFWrapper.mm
TFWrapper.h
Bridging-Header.h
ViewController.swift
カメラ映像
撮影画像
解析結果プレビュー
Appendix - Kerasのh5モデルファイルから
pb形式ファイルへの変換
• Kerasの保存するモデルはh5py形式
• iOSのTensorflowで利用するためには
Protocol Buffers形式に変換する必要がある
tensorflow.python.framework.graph_io および
tensorflow.python.tools.feeze_graph を利用して
h5 -> pb変換を行う
https://gist.github.com/hisashi-
komine/dcc4d3e0271c729f1450af0b27f8
1cb2
GIST
今後の予定
• ロース芯抽出モデルの精度改善
• iPhoneに繋いだ外部カメラによる画像撮影
Thank you!

More Related Content

Recently uploaded

Recently uploaded (11)

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)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 2024How 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 InsightsSocial 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 2024Trends 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 summary5 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 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 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 IntentGoogle'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 How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe 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...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

食肉の画像評価におけるモバイルデバイスの活用について