Package com.banuba.sdk.recognizer
Interface UtilityManager
- All Known Implementing Classes:
UtilityManager.CppProxy
public interface UtilityManager
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
UtilityManager.CppProxy
-
Method Summary
Static Methods Modifier and Type Method Description 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.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.
-
Method Details
-
initialize
static void initialize(@NonNull java.util.ArrayList<java.lang.String> resourcePaths, @NonNull java.lang.String clientToken) -
release
static void release() -
addResourcePath
static void addResourcePath(@NonNull java.lang.String resourcePath)Add resources search path -
removeResourcePath
static void removeResourcePath(@NonNull java.lang.String resourcePath)Remove resources search path -
diagnosticCrash
static void diagnosticCrash()Diagnostic crash. Use this to check you crash analytics systems. -
cpuEnv
@NonNull static java.lang.String cpuEnv()Get information about CPU capabilities. Mainly for usage on Android- Returns:
- JSON-string describing CPU capabilties
-
getHardwareClass
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
Set callback to recieve log events from Banuba SDK.- Parameters:
cb
- Callbacklvl
- recieve logs with specified and higher levels
-
getBanubaSdkVersionString
@NonNull static java.lang.String getBanubaSdkVersionString()Returns SDK version as string -
getBanubaSdkVersion
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 % 1000 -
getBanubaSdkNnVersionString
@NonNull static java.lang.String getBanubaSdkNnVersionString()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
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 % 1000 -
getBanubaSdkNnVersionArchiveString
@NonNull static java.lang.String getBanubaSdkNnVersionArchiveString()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
static boolean checkBanubaSdkNnVersion()Checks if the current version of NN resources is equal to Banuba SDK expected NN resources version -
checkBanubaSdkNnVersionIgnorePatch
static boolean checkBanubaSdkNnVersionIgnorePatch()Checks if Banuba SDK treats as valid the version of external NN resources -
loadGlFunctions
static void loadGlFunctions()load GL functions, for dynamic libraries only should be called with active GL context
-