Skip to Content
移动端AI与ML应用开发:基于iOS和Android
book

移动端AI与ML应用开发:基于iOS和Android

by Laurence Moroney
January 2023
Intermediate to advanced
288 pages
6h 6m
Chinese
China Machine Press
Content preview from 移动端AI与ML应用开发:基于iOS和Android
iOS
上使用
ML Kit
的计算机视觉应用程序
|
97
因此,作为示例,如图 6-6 所示,该应用程序看到了这张图片并检测到了其中的三个
物体。
物体检测
6-6
iOS
中的物体检测器应用程序
6.2.1
1
步:开始
创建这个应用程序非常简单。像以前一样创建一个新的 iOS 应用程序。给它任何你喜欢
的名字,但确保你在新项目设置对话框中使用 Swift 和故事板。在这种情况下,我将我
的项目称为
MLKitObjectDetector
在项目目录中,你将像在 6.1 节那样创建一个 podfile,但这次你得指定要使用 ML Kit
的物体检测库而不是图像标记库。你的 podfile 应如下所示:
platform :ios, '10.0'
# Comment the next line if you're not using Swift and don't want to use dynamic
# frameworks
use_frameworks!
target 'MLKitObjectDetector' do
pod 'GoogleMLKit/ObjectDetection'
end
请注意,目标设置应该是你在 Xcode 中创建的项目名称(在我的例子中,我使用了
正文.indd 97正文.indd 97 2023-4-30 9:08:352023-4-30 9:08:35
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能驱动的商业智能

人工智能驱动的商业智能

Tobias Zwingmann
Lua游戏AI开发指南

Lua游戏AI开发指南

Posts & Telecom Press, David Young
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9787111713081