How to Enable an Application to Utilize the Terminal's Camera Function: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
Please refer to the [https://developer.android.com/training/camera/index.html camera] of Android SDK. Please note that when calling camera.open (ID), the IDs of different product models are different, see the definition in the following table:
== 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 [https://developer.android.com/training/camera/index.html the document]
== 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.
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 20: Line 24:
| Q3 || 0: back camera, 1: front camera
| Q3 || 0: back camera, 1: front camera
|}
|}
We also wrote a demonstration for taking photos. Please [http://ftp.wizarpos.com/advanceSDK/cloudpos/PhotographDemo.zip download it].
== Demo Application for Reference: ==
* We have developed a demo application that illustrates how to implement the photographing function.
* Please [http://ftp.wizarpos.com/advanceSDK/cloudpos/PhotographDemo.zip download the demo] for a practical example and better understanding.

Revision as of 21:51, 8 January 2024

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

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 for a practical example and better understanding.