如何从iOS中的图像处理中检测对象? [英] How to detect objects from Image Processing in iOS?

查看:98
本文介绍了如何从iOS中的图像处理中检测对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张图片,图片中有一个杯子,一个杯子,两个勺子。

I have a image and the image have in it A glass a cup , two spoon.

这张图片显示在iPad上。
现在我想要当用户只触摸勺子时,勺子的颜色会变成绿色,图像的其余部分保持不变。

This image is showing on the iPad. Now I want when user touch the spoon only, the spoon color will become green rest of the image remain same.

我不知道如何做到这一点?从哪里开始?

I have no Idea how to do this? And where to start?

非常欢迎任何想法或建议。

Any Idea or suggestions would be highly welcome.

推荐答案

使用CALayer,使用所需的帧创建CALayer并将其添加到ImageView。
CALayer文档: CALayer类参考

Use CALayer, create CALayer with needed frame and add its to ImageView. CALayer documentation:CALayer Class Reference

这篇关于如何从iOS中的图像处理中检测对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆