소스 검색

Add question to the FAQ

customisations
alemart 1 개월 전
부모
커밋
d932cc5f19
2개의 변경된 파일18개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      docs/api/image-tracker.md
  2. 17
    0
      docs/faq.md

+ 1
- 1
docs/api/image-tracker.md 파일 보기

28
 **Example**
28
 **Example**
29
 
29
 
30
 ```js
30
 ```js
31
-const imageTracker = AR.Tracker.Image({
31
+const tracker = AR.Tracker.Image({
32
     resolution: "sm"
32
     resolution: "sm"
33
 });
33
 });
34
 ```
34
 ```

+ 17
- 0
docs/faq.md 파일 보기

45
 
45
 
46
 Yes. You can increase the [resolution of the tracker](api/image-tracker.md#instantiation), as well as the [resolution of the camera](api/camera-source.md#instantiation), using the API. You can also increase the resolution of the rendered virtual scene by setting the [resolution of the viewport](api/viewport.md#instantiation). Performance is affected by various factors such as upload times (GPU). Test your AR experience on your target devices to find a good balance between performance and increased resolution.
46
 Yes. You can increase the [resolution of the tracker](api/image-tracker.md#instantiation), as well as the [resolution of the camera](api/camera-source.md#instantiation), using the API. You can also increase the resolution of the rendered virtual scene by setting the [resolution of the viewport](api/viewport.md#instantiation). Performance is affected by various factors such as upload times (GPU). Test your AR experience on your target devices to find a good balance between performance and increased resolution.
47
 
47
 
48
+## How do I know which image is detected?
49
+
50
+Add an [event listener](api/image-tracker.md#targetfound) to the Image Tracker, as in the example:
51
+
52
+```js
53
+const tracker = AR.Tracker.Image();
54
+
55
+// ...
56
+
57
+tracker.addEventListener('targetfound', event => {
58
+
59
+    // print the name of the Reference Image
60
+    console.log('Found target: ' + event.referenceImage.name);
61
+
62
+});
63
+```
64
+
48
 ## Any recommendations?
65
 ## Any recommendations?
49
 
66
 
50
 Refer to the [recommendations](./recommendations.md).
67
 Refer to the [recommendations](./recommendations.md).

Loading…
취소
저장