scanflowTextAndroidSdk
1.2.3
scanflowTextAndroidSdk
/
com.scanflow.datacapture.text.ocrengine.detection
/
ImageUtils
Image
Utils
open
class
ImageUtils
Content copied to clipboard
Utility class for manipulating images.
Functions
Functions
convert
YUV420SPTo
ARGB8888
Link copied to clipboard
open
fun
convertYUV420SPToARGB8888
(
input
:
Array
<
Byte
>
,
width
:
Int
,
height
:
Int
,
output
:
Array
<
Int
>
)
Content copied to clipboard
convert
YUV420To
ARGB8888
Link copied to clipboard
open
fun
convertYUV420ToARGB8888
(
yData
:
Array
<
Byte
>
,
uData
:
Array
<
Byte
>
,
vData
:
Array
<
Byte
>
,
width
:
Int
,
height
:
Int
,
yRowStride
:
Int
,
uvRowStride
:
Int
,
uvPixelStride
:
Int
,
out
:
Array
<
Int
>
)
Content copied to clipboard
get
Transformation
Matrix
Link copied to clipboard
open
fun
getTransformationMatrix
(
srcWidth
:
Int
,
srcHeight
:
Int
,
dstWidth
:
Int
,
dstHeight
:
Int
,
applyRotation
:
Int
,
maintainAspectRatio
:
Boolean
)
:
Matrix
Content copied to clipboard
Returns a transformation matrix from one reference frame into another.
get
YUVByte
Size
Link copied to clipboard
open
fun
getYUVByteSize
(
width
:
Int
,
height
:
Int
)
:
Int
Content copied to clipboard
save
Bitmap
Link copied to clipboard
open
fun
saveBitmap
(
bitmap
:
Bitmap
)
Content copied to clipboard
open
fun
saveBitmap
(
bitmap
:
Bitmap
,
filename
:
String
)
Content copied to clipboard
Saves a Bitmap object to disk for analysis.