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

查看:20
本文介绍了如何从 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,用需要的frame创建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天全站免登陆