【问题标题】:How can we get Position of an image and place an other image on that position with android我们如何获取图像的位置并使用android在该位置放置其他图像
【发布时间】:2016-09-06 22:39:44
【问题描述】:

我想在眼睛下面放一层。

我想知道我们如何才能获得图像的确切位置并将另一张图像放置在该位置上?

例外的职位是: 左上、中上、右上 左中、中、右中 左下、中下、右下

Android 可以这样做吗?

【问题讨论】:

  • 使用View的getX()、getY()、getWidth()和getHeight()方法计算所需的位置。

标签: android image-processing


【解决方案1】:

Play 服务可帮助您完成这些工作。

从 Play Services 7.8 起,它包括Mobile Vision API's。

Mobile Vision API 具有检测器,可让您在照片和视频中找到对象。

http://android-developers.blogspot.in/2015/08/face-detection-in-google-play-services.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多