Matlab社区

Matlab,社区和更多

使用Matlab Mobile从您的设备相机获取图像

将您的图像和Matlab Mobile贴在一起

在我们的最后博客文章,我们开始阐述我们将图像和Matlab Mobile更靠近在一起的第一阶段。通过从您的图像库启用直接上传到Matlab驱动器(以及具有“共享”提供“的任何应用程序),使用Matlab处理您的图像即可更轻松。

While this provided a way to get your images into the app, we still had no ways to support in-app workflows, especially for acquiring live images (as opposed to the ones already in your gallery). Don’t take my word for it, this was the first comment we got on that blog post:

In today’s blog, we would like to describe phase two of our camera integration: access to the device camera from within the app.

从“文件”选项卡中获取图像

One way to acquire images is to do so through our UI affordance. This can be accomplished through 4 simple steps, as illustrated below. To begin, select the ‘+’ affordance from the ‘Files’ tab and then select ‘Camera’.

When you tap on ‘Use Photo’ in step 4, your image is automatically saved to your MATLAB Drive (in the same folder as you were on in step 1). This post focuses on images, but as you can see in Step 3, you can acquire videos as well.

要从图像库中使用图像,只需一个小调整:在步骤2中,选择“照片”并按照UI导航。

Acquire Images Using MATLAB Code

如果您想拍照,我们所描述的工作流程,然后将其插入代码。但是,如果您希望图像获取是代码的一部分,该怎么办?我们有你覆盖。现有的传感器功能已经扩大,包括进入前方和后方的相机。我可以与上一节共享类似的工作流程图......但是视频胜过一千个图像(我认为)!这是我的同事Carlos Sanchis创作的,涵盖了这个功能:

简而言之:“MobileDev”对象还允许您连接到您的设备摄像机,Snapshot命令允许您从设备摄像机获取单帧。

到你了

您如何使用Matlab Mobile获取和处理您的图像?建立了任何图像分类器?让我们在下面的评论中了解。

|
  • 打印
  • 发送电子邮件

Comments

要发表评论,请点击here要登录您的MathWorks帐户或创建新的。