相机覆盖随轴承和高程变化 [英] camera overlay change with bearing and elevation

查看:222
本文介绍了相机覆盖随轴承和高程变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人们,

我想获得一个实用程序,如下图所示。基本上,相机显示窗口覆盖设备屏幕的一部分,并且通过曲线或直线连接的点列表作为覆盖显示在相机视图上。我知道这可以使用石英绘制,但这不到我的问题的一半。

I am trying to get a utility as shown in the picture below. Basically the camera display window covers part of the device's screen and a list of points that are connected by a curve or straight line are presented over the camera view as an overlay. I understand this can be drawn using quartz but this is less than half of my problem.

真正的问题是,叠加应该呈现不同的点,因为方位和高程变化。

The real issue is that the overlay should present different points as the bearing and elevation changes.

例如:


  • 如果方位角必须改变+5度,高度+2度,则 PT1 将在相机视图的右边缘旁边, PT2 也会向右移动, PT3

  • 另一个更改方位+10度的运动会使PT1 不可见, PT2 在右侧,

  • if the bearing has to change +5 degrees and elevation +2 degrees, then PT1 will be next to the right edge of the camera view, PT2 will also move to the right and PT3 will be visible.
  • Another movement that changes the bearing +10 degrees would make PT1 not visible, PT2 at the right, PT3 middle and PT4 on the left edge of the camera view.

我的问题后的图片:


  1. 可以拥有远大于摄像机视图大小的视图一些方法(我需要研究这些)在轴承/高程变化时移动视图?是否建议性能明智?

  2. 石英是否可以去这里?我还需要什么(当然还有其他当然AVFoundation的相机和corelocation /运动)?由于我的应用程序只有iOS 7,我可以使用iOS 7专有的任何新方法/ API。

  3. 除了教程,有没有任何教程,你知道,可以帮助我这一努力?


推荐答案

请看下面的内容,每篇文章或链接都有不同的关键要求使您的最终产品。您最终将使用地理位置,指南针/或iphone的陀螺仪数据的组合。

Have a look at the following, each article or link has different key things required to make your final product. You eventually will be using a combination of geolocation, the compass/or the iphone's gyroscope data coming in.

读取所有引用,并在不同项目中逐一实现它们将给你一个坚实的开始,如何将它们组合在一起创建您的应用程序。但首先,您需要对如何操作您将学习的知识有充分的理解,以及如何应用它来创建您的项目。

Reading all the references combined and implementing them one by one in different projects will give you a solid start on how to then combine it all together to create your application. But first you need to get a solid understanding on how to manipulate the knowledge you will learn and how you can then apply it to create your project.

参考文献:

来自Ray Winderlech的酷项目教您如何在应用程式中使用位置GPS坐标

A cool project from Ray Winderlech teach you how to use location gps coordinates in your application

  • Augmented reality location based tutorial

接下来的两个链接将告诉您如何抓取陀螺仪数据,了解俯仰,偏航和旋转,空间中的当前位置。

The next two links show you how to grab gyroscope data to find out the pitch, yaw and rotation and find out the device current position in space.

  • Apple gyroscope example app
  • Another core motion gyroscope example

将教你如何使用指南针

  • Ray Winderlichs augmented reality compass tutorial for ios

这里是一些更多的现实东西在相机视图上重叠的东西

Here's some more augmented reality stuff on overlaying stuff on the camera view

  • iPhone AR Toolkit
  • Augmented reality marker tracking tutorial

这篇关于相机覆盖随轴承和高程变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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