> For the complete documentation index, see [llms.txt](https://smartpossdk.gitbook.io/cloudpossdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/use-terminal-camera.md).

# Use Terminal Camera

### Introduction:

This guide explains how to enable your application to access and use the camera functionality of a terminal device using the Android SDK. Please refer to [the document](https://developer.android.com/media/camera/camera2)

### Understanding Camera IDs:

* When you use the command 'camera.open(ID)', it's important to note that the ID values vary across different terminal models.
* Refer to the provided table for the specific ID definitions corresponding to each product model.

| Product Model | Camera ID                                   |
| ------------- | ------------------------------------------- |
| W1            | 0                                           |
| W1V2          | 0                                           |
| Q1            | 0: zoom camera, 1: fixed focus camera       |
| Q1V2          | 0: zoom/zebra camera, 1: fixed focus camera |
| Q2            | 0: back camera, 1: front camera             |
| K2            | 0                                           |
| PAD1          | 0                                           |
| Q3            | 0: back camera, 1: front camera             |

### Demo Application for Reference:

* We have developed a demo application that illustrates how to implement the photographing function.
* Please [download the demo](https://github.com/SmartPOSSamples/PhotographDemo) for a practical example and better understanding.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/use-terminal-camera.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
