How to detect objects from Image Processing in iOS?(如何从 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 中的图像处理中检测对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从 iOS 中的图像处理中检测对象?


- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- android 4中的android RadioButton问题 2022-01-01