About Augmented Reality and ARKit(翻譯)

Discover supporting concepts, features, and best practices for building great AR experiences.

為了構(gòu)建好的AR體驗(yàn),發(fā)現(xiàn)支持的概念,特征和好的例子.

Overview
總欄
Figure 1
場(chǎng)景1


The basic requirement for any AR experience—and the defining feature of ARKit—is the ability to create and track a correspondence between the real-world space the user inhabits and a virtual spaceconventionwhere you can model visual content.

  • 體驗(yàn)任何AR所需要的基本需求和ARKit已確定的特性是創(chuàng)建基本的AR模型和追蹤模型和用戶行為的基礎(chǔ).

When your app displays that content together with a live camera image, the user experiences augmented reality: the illusion that your virtual content is part of the real world.

  • 當(dāng)你的app把攝像頭和用戶自己的東西一起顯示,就會(huì)產(chǎn)生你虛擬的東西是現(xiàn)實(shí)世界的一部分的錯(cuò)覺(jué),.

In all AR experiences, ARKit uses world and camera coordinate systems following a right-handed convention: the y-axis points upward, and (when relevant) the z-axis points toward the viewer and the x-axis points toward the viewer's right.

  • 在所有的AR體驗(yàn)中,ARKit使用的顯示世界和攝像頭的坐標(biāo)系遵循右手定則:y軸向上,
    z軸直線觀察者,x軸指向觀察者的右側(cè)

Session configurations can change the origin and orientation of the coordinate system with respect to the real world (see worldAlignment).

  • 原始的坐標(biāo)和方向是遵從現(xiàn)實(shí)世界的,可以通過(guò)會(huì)話配置更改,(參考 worldAlignment).

Each anchor in an AR session defines its own local coordinate system, also following the right-handed, z-towards-viewer convention; for example, the ARFaceAnchor class defines a system for locating facial features..
-每個(gè)在AR會(huì)話中的錨點(diǎn)都遵循它自己的坐標(biāo)系統(tǒng),并且準(zhǔn)守右手定制和z軸指向觀察者的慣例,例如ARFaceAnchor 就是一個(gè)定義面部特征的類.

  • How World Tracking Works
    現(xiàn)實(shí)追蹤如何工作

To create a correspondence between real and virtual spaces, ARKit uses a technique called visual-inertial odometry.

  • ARKit 使用一項(xiàng)視覺(jué)慣性測(cè)試的技術(shù)來(lái)創(chuàng)建現(xiàn)實(shí)世界和虛擬空間的對(duì)應(yīng).

This process combines information from the iOS device’s motion sensing hardware with computer vision analysis of the scene visible to the device’s camera.
-進(jìn)程采集iOS運(yùn)動(dòng)傳感器硬件和從設(shè)備攝像圖采集的影像做分析.

ARKit recognizes notable features in the scene image, tracks differences in the positions of those features across video frames, and compares that information with motion sensing data.

  • ARKit能識(shí)別圖像中的顯著特征,識(shí)別視頻每幀中這些特征的不同,并且把這些信息和運(yùn)動(dòng)傳感器數(shù)據(jù)比較.

The result is a high-precision model of the device’s position and motion.
-結(jié)果是一個(gè)高精度的位置和運(yùn)動(dòng)的模型

World tracking also analyzes and understands the contents of a scene.
-現(xiàn)實(shí)追蹤也分析和理解場(chǎng)景中的內(nèi)容.

Use hit-testing methods (see the ARHitTestResult class) to find real-world surfaces corresponding to a point in the camera image.
-使用擊中測(cè)試方法可以找到顯示世界的面對(duì)應(yīng)相機(jī)照片上的一個(gè)點(diǎn).

If you enable the [planeDetection](apple-reference documentation://hswVcas8JL) setting in your session configuration, ARKit detects flat surfaces in the camera image and reports their position and sizes.

  • 如果你在會(huì)話配置中打開(kāi)planeDetection設(shè)置,ARKit就會(huì)檢測(cè)相機(jī)影像里面的平面表面并輸出他們的位置和尺寸.

You can use hit-test results or detected planes to place or interact with virtual content in your scene.
-你可以使用擊中測(cè)試結(jié)果或檢測(cè)平面或者和場(chǎng)景的虛擬內(nèi)容交互.

  • Best Practices and Limitations
  • 練習(xí)和局限性

World tracking is an inexact science.

  • 現(xiàn)實(shí)追蹤是一個(gè)不精確的科學(xué).

This process can often produce impressive accuracy, leading to realistic AR experiences.
-可以經(jīng)常產(chǎn)生印象深刻的現(xiàn)實(shí)AR的體驗(yàn).

However, it relies on details of the device’s physical environment that are not always consistent or are difficult to measure in real time without some degree of error.
-然后,它依賴于設(shè)置的物理環(huán)境并不是一直可靠的,或很困難測(cè)試和真實(shí)情況的一個(gè)錯(cuò)誤的程度.

To build high-quality AR experiences, be aware of these caveats and tips.
-為了構(gòu)建高質(zhì)量的AR體驗(yàn),記住這些注意事項(xiàng)和提示.

Design AR experiences for predictable lighting conditions.
-為不同燈光條件設(shè)計(jì)AR體驗(yàn).

World tracking involves image analysis, which requires a clear image.
-現(xiàn)實(shí)追蹤涉及圖像分析,且需要一個(gè)清晰的圖像.

Tracking quality is reduced when the camera can’t see details, such as when the camera is pointed at a blank wall or the scene is too dark.
-當(dāng)攝像頭拍不清楚時(shí),例如攝像頭指向一個(gè)黑色的墻或者場(chǎng)景太黑,追蹤的質(zhì)量就會(huì)降低.

Use tracking quality information to provide user feedback.
-使用追蹤質(zhì)量信息來(lái)提供用戶反饋

World tracking correlates image analysis with device motion.
-現(xiàn)實(shí)追蹤把設(shè)備運(yùn)動(dòng)關(guān)聯(lián)到圖像分析

ARKit develops a better understanding of the scene if the device is moving, even if the device moves only subtly.
-ARKit對(duì)設(shè)備在移動(dòng)/甚至巧妙的場(chǎng)景開(kāi)發(fā)出一個(gè)更好的理解.

Excessive motion—too far, too fast, or shaking too vigorously—results in a blurred image or too much distance for tracking features between video frames, reducing tracking quality.

  • 過(guò)多的運(yùn)動(dòng)例如太遠(yuǎn)/太快/晃的太大力會(huì)導(dǎo)致模糊的影像,兩視頻幀之前距離太遠(yuǎn)也會(huì)降低追蹤質(zhì)量.

The ARCamera class provides tracking state reason information, which you can use to develop UI that tells a user how to resolve low-quality tracking situations.
-ARCamera類提供是追蹤狀態(tài)的原因信息,可以用在界面上顯示幫助用戶知道怎么解決低質(zhì)量的追蹤狀態(tài).

Allow time for plane detection to produce clear results, and disable plane detection when you have the results you need.
-允許一定時(shí)間檢測(cè)平面來(lái)生產(chǎn)清晰的結(jié)果,并且獲得到你想要的結(jié)果后可以關(guān)閉平面檢測(cè).

Plane detection results vary over time—when a plane is first detected, its position and extent may be inaccurate.
-平面檢測(cè)有時(shí)會(huì)變化的,當(dāng)首次檢測(cè)平面時(shí),它的位置和擴(kuò)展可能不準(zhǔn)確

As the plane remains in the scene over time, ARKit refines its estimate of position and extent.
-隨著時(shí)間的推移平面一直存在,ARKit會(huì)估算位置和擴(kuò)展.

When a large flat surface is in the scene, ARKit may continue changing the plane anchor’s position, extent, and transform after you’ve already used the plane to place content.
-當(dāng)場(chǎng)景中有一個(gè)大的平面表現(xiàn),ARKit會(huì)在你已經(jīng)使用的平面放在內(nèi)容后也會(huì)更改平面錨點(diǎn)的位置/擴(kuò)展/方向.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • (一) “一、單選:1—4:DBAD; 二、現(xiàn)代文閱讀:5—7:CBB; 三、文言文閱讀:8—9:AB; 四、文言...
    石火火閱讀 497評(píng)論 0 0
  • 滿紙荒唐言,一把辛酸淚;都云作者癡,誰(shuí)解其中味。 人們說(shuō)詩(shī)有眼睛,《紅樓夢(mèng)》的這首開(kāi)篇詩(shī)無(wú)疑是長(zhǎng)了兩只眼睛,分別是...
    與心幽歡閱讀 790評(píng)論 1 10
  • 早知道做快遞這一行會(huì)遇上認(rèn)識(shí)的人,沒(méi)想到這么快。 打電話通知取件的時(shí)候就覺(jué)得這人名字好熟,應(yīng)該是高中同學(xué)吧,可是又...
    水千藥閱讀 307評(píng)論 0 0
  • 現(xiàn)在有大多數(shù)的人迷失在日常生活與工作的兩點(diǎn)一線。想要去看一更多的風(fēng)景、想去追求更廣闊的天空,卻有太多的夢(mèng)因...
    幸?;ê?/span>閱讀 914評(píng)論 4 15
  • 綠水青山就是金山銀山,這是新一屆領(lǐng)導(dǎo)人提出的科學(xué)發(fā)展理念。 某地方長(zhǎng)期污染嚴(yán)重,治污不力被約談,于...
    大氣浩然閱讀 361評(píng)論 0 3

友情鏈接更多精彩內(nèi)容