Package com.banuba.sdk.recognizer
Class UtilityManager.CppProxy
java.lang.Object
com.banuba.sdk.recognizer.UtilityManager.CppProxy
- All Implemented Interfaces:
UtilityManager
- Enclosing interface:
- UtilityManager
public static final class UtilityManager.CppProxy extends java.lang.Object implements UtilityManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.recognizer.UtilityManager
UtilityManager.CppProxy
-
Method Summary
Modifier and Type Method Description void
_djinni_private_destroy()
static void
addResourcePath(java.lang.String resourcePath)
Add resources search pathstatic boolean
checkBanubaSdkNnVersion()
Checks if the current version of NN resources is equal to Banuba SDK expected NN resources versionstatic boolean
checkBanubaSdkNnVersionIgnorePatch()
Checks if Banuba SDK treats as valid the version of external NN resourcesstatic java.lang.String
cpuEnv()
Get information about CPU capabilities.static void
diagnosticCrash()
Diagnostic crash.protected void
finalize()
static int
getBanubaSdkNnVersion()
Returns NN version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000static java.lang.String
getBanubaSdkNnVersionArchiveString()
The Banuba SDK supports external NN resources archives.static java.lang.String
getBanubaSdkNnVersionString()
The Banuba SDK tracks the resource version of Neural Networks (NN) resources it built for.static int
getBanubaSdkVersion()
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000static java.lang.String
getBanubaSdkVersionString()
Returns SDK version as stringstatic HardwareClass
getHardwareClass()
Check device SoC class.static void
initialize(java.util.ArrayList<java.lang.String> resourcePaths, java.lang.String clientToken)
static void
loadGlFunctions()
load GL functions, for dynamic libraries only should be called with active GL contextstatic void
release()
static void
removeResourcePath(java.lang.String resourcePath)
Remove resources search pathstatic void
setLogLevel(SeverityLevel level)
static void
setLogRecordCallback(LogRecordCallback cb, SeverityLevel lvl)
Set callback to recieve log events from Banuba SDK.Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
initialize
public static void initialize(@NonNull java.util.ArrayList<java.lang.String> resourcePaths, @NonNull java.lang.String clientToken) -
release
public static void release() -
addResourcePath
public static void addResourcePath(@NonNull java.lang.String resourcePath)Description copied from interface:UtilityManager
Add resources search path -
removeResourcePath
public static void removeResourcePath(@NonNull java.lang.String resourcePath)Description copied from interface:UtilityManager
Remove resources search path -
diagnosticCrash
public static void diagnosticCrash()Description copied from interface:UtilityManager
Diagnostic crash. Use this to check you crash analytics systems. -
cpuEnv
@NonNull public static java.lang.String cpuEnv()Description copied from interface:UtilityManager
Get information about CPU capabilities. Mainly for usage on Android- Returns:
- JSON-string describing CPU capabilties
-
getHardwareClass
Description copied from interface:UtilityManager
Check device SoC class. On Android first call may require presence of OpenGL context to get info about GPU.- Returns:
- hardware class of device
-
setLogLevel
-
setLogRecordCallback
public static void setLogRecordCallback(@Nullable LogRecordCallback cb, @NonNull SeverityLevel lvl)Description copied from interface:UtilityManager
Set callback to recieve log events from Banuba SDK.- Parameters:
cb
- Callbacklvl
- recieve logs with specified and higher levels
-
getBanubaSdkVersionString
@NonNull public static java.lang.String getBanubaSdkVersionString()Description copied from interface:UtilityManager
Returns SDK version as string -
getBanubaSdkVersion
public static int getBanubaSdkVersion()Description copied from interface:UtilityManager
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000 -
getBanubaSdkNnVersionString
@NonNull public static java.lang.String getBanubaSdkNnVersionString()Description copied from interface:UtilityManager
The Banuba SDK tracks the resource version of Neural Networks (NN) resources it built for. Returns version of NN resources as string, represented in the following format “Major.Minor.Patch”. -
getBanubaSdkNnVersion
public static int getBanubaSdkNnVersion()Description copied from interface:UtilityManager
Returns NN version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000 -
getBanubaSdkNnVersionArchiveString
@NonNull public static java.lang.String getBanubaSdkNnVersionArchiveString()Description copied from interface:UtilityManager
The Banuba SDK supports external NN resources archives. After the initialization of the Banuba SDK, API provides the capability to request the version of the archive. Returns version of NN resources archive as string, represented in the following format “Major.Minor.Patch”. Such a version coincides with the Banuba SDK NN resources version if no external NN resources are used. -
checkBanubaSdkNnVersion
public static boolean checkBanubaSdkNnVersion()Description copied from interface:UtilityManager
Checks if the current version of NN resources is equal to Banuba SDK expected NN resources version -
checkBanubaSdkNnVersionIgnorePatch
public static boolean checkBanubaSdkNnVersionIgnorePatch()Description copied from interface:UtilityManager
Checks if Banuba SDK treats as valid the version of external NN resources -
loadGlFunctions
public static void loadGlFunctions()Description copied from interface:UtilityManager
load GL functions, for dynamic libraries only should be called with active GL context
-