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
46
|
3
在本章的其余部分,我们将切换平台并看看如何构建相同的应用程序,尤其是在
iOS 上!
3.2
iOS
构建人脸检测器应用程序
现在让我们探索如何使用 ML Kit 的人脸检测为 iOS 构建一个非常相似的应用程序。对于
iOS,你需要使用 Mac 计算机作为开发机器,以及用于编码、调试和测试的 Xcode 环境。
3.2.1
1
步:在
Xcode
中创建项目
首先,启动 Xcode 并选择 New Project。你将看到新的项目模板对话框,如图 3-10 所示。
3-10
:新的项目模板对话框
确保你在屏幕顶部选择 iOS,然后选择 App 作为应用程序类型。单击 Next(下一步)
系统会要求你填写一些详细信息。保留除项目名称外的所有默认值,我称它为 firstFace
但这取决于你使用的名称。Interface 项选择 StoryboardLife Cycle 项选择 UIKit App
DelegateLanguage 项选择 Swift,如图 3-11 所示。
单击 Next 后,Xcode 将为你创建一个模板项目。此时你应该关闭 Xcode,因为在开始编
码之前你需要在 IDE 之外进行一些配置。你将在下一步使用 CocoaPods 添加 ML Kit
时看到这一点。
正文.indd 46正文.indd 46 2023-4-30 9:07:562023-4-30 9:07:56
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