com.craftar
Class CraftARQueryImage
- java.lang.Object
-
- com.craftar.CraftARQueryImage
public class CraftARQueryImage extends java.lang.Object
Image produced by the CraftARSDK that can be used for image recognition queries.
-
-
Constructor Summary
Constructors Constructor and Description CraftARQueryImage(Bitmap src)
Creates a new query image from a Bitmap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Bitmap
toBitmap()
Converts theCraftARQueryImage
to a Bitmapbyte[]
toJPEGByteArray()
Processes theCraftARQueryImage
and converts it to a jpeg byte array ready to be sent to the CraftAR Service.
-
-
-
Constructor Detail
-
CraftARQueryImage
public CraftARQueryImage(Bitmap src)
Creates a new query image from a Bitmap.
-
-
Method Detail
-
toBitmap
public Bitmap toBitmap()
Converts theCraftARQueryImage
to a Bitmap- Returns:
- Bitmap representing the contained image.
-
toJPEGByteArray
public byte[] toJPEGByteArray()
Processes theCraftARQueryImage
and converts it to a jpeg byte array ready to be sent to the CraftAR Service.- Returns:
- byte[] the image bytes.
-
-