fastFree
-------------
+--------
Deallocates a memory buffer.
.. ocv:function:: void fastFree(void* ptr)
:ocv:class:`Exception` constructor.
+getBuildInformation
+-------------------
+Returns full configuration time cmake output.
+
+.. ocv:function:: const std::string& getBuildInformation()
+
+Returned value is raw cmake output including version control system revision, compiler version, compiler flags, enabled modules and third party libraries, etc. Output format depends on target architecture.
+
checkHardwareSupport
--------------------
The function returns true if the host hardware supports the specified feature. When user calls ``setUseOptimized(false)``, the subsequent calls to ``checkHardwareSupport()`` will return false until ``setUseOptimized(true)`` is called. This way user can dynamically switch on and off the optimized code in OpenCV.
getNumThreads
------------------
+-------------
Returns the number of threads used by OpenCV.
.. ocv:function:: int getNumThreads()
getThreadNum
-----------------
+------------
Returns the index of the currently executed thread.
.. ocv:function:: int getThreadNum()
getTickCount
-----------------
+------------
Returns the number of ticks.
.. ocv:function:: int64 getTickCount()
getTickFrequency
---------------------
+----------------
Returns the number of ticks per second.
.. ocv:function:: double getTickFrequency()
getCPUTickCount
-----------------
+---------------
Returns the number of CPU ticks.
.. ocv:function:: int64 getCPUTickCount()
setUseOptimized
------------------
+---------------
Enables or disables the optimized code.
.. ocv:function:: int cvUseOptimized( int on_off )
By default, the optimized code is enabled unless you disable it in CMake. The current status can be retrieved using ``useOptimized``.
useOptimized
------------------
+------------
Returns the status of optimized code usage.
.. ocv:function:: bool useOptimized()
import java.io.File;
import java.util.StringTokenizer;
+import org.opencv.core.Core;
import org.opencv.engine.OpenCVEngineInterface;
import android.content.ComponentName;
{
mServiceInstallationProgress = true;
Log.d(TAG, "Package installation started");
-
}
else
{
if (initOpenCVLibs(path, libs))
{
Log.d(TAG, "First attempt to load libs is OK");
+ String eol = System.getProperty("line.separator");
+ for (String str : Core.getBuildInformation().split(eol))
+ Log.i(TAG, str);
+
status = LoaderCallbackInterface.SUCCESS;
}
else
package org.opencv.android;
-import java.util.StringTokenizer;
+import org.opencv.core.Core;
+import java.util.StringTokenizer;
import android.util.Log;
class StaticHelper {
if (initOpenCVLibs(libs))
{
Log.d(TAG, "First attempt to load libs is OK");
+ String eol = System.getProperty("line.separator");
+ for (String str : Core.getBuildInformation().split(eol))
+ Log.i(TAG, str);
+
result = true;
}
else