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
56
4
Android 上使用 ML Kit
计算机视觉应用程序
3 章向你介绍了 ML Kit 以及如何将其用于移动应用程序中的人脸检测。但 ML Kit
不止这些
它使你能够快速构建常见视觉场景原型、托管自定义模型或实施其他交钥
匙解决方案场景,例如条形码检测。在本章中,我们将探索 ML Kit 中一些用于计算机
视觉场景(包括图像标记和分类,以及静止和运动图像中的物体检测)的模型。我们将
Android 上执行此操作,使用 Kotlin 作为编程语言。第 6 章将介绍与使用 Swift 进行
iOS 开发相同的内容。
4.1
图像标记和分类
图像分类在机器学习界是一个众所周知的概念,也是计算机视觉的主要内容。从最简单
的意义上讲,当你向计算机显示图像,它告诉你该图像包含什么时,就会发生图像分
类。例如,你给它看一张猫的图片,如图 4-1 所示,它会将其标记为一只猫。
ML Kit 中的图像标记更进一步,以概率级别为你提供在图像中看到的事物的列表,因此
4-1 不只是显示一只猫,它可能会说它看到了一只猫,以及花、草、雏菊等。
让我们探索如何创建一个非常简单的 Android 应用程序,它可以标记图像!我们将使用
Android Studio Kotlin。如果你还没有安装它们,则可以在
https://developer.android.
google.cn/studio/
下载。
正文.indd 56正文.indd 56 2023-4-30 9:08:042023-4-30 ...
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

快速提升人工智能产品的实用指南

快速提升人工智能产品的实用指南

Hamel Husain
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
AI原生软件交付

AI原生软件交付

Nick Durkin, Eric Minick, Chinmay Gaikwad

Publisher Resources

ISBN: 9787111713081