### Navigation

- index
- next |
- previous |
- OpenCV 2.4.13.4 documentation »
- OpenCV4Android Reference »
- Android OpenCV Manager »

# Java OpenCV Loader

class `OpenCVLoader`

Helper class provides common initialization methods for OpenCV library.

## boolean initDebug()

`static boolean initDebug()`

  Loads and initializes OpenCV library from within current application package. Roughly it is analog of `system.loadLibrary("opencv_java")`.

  Return type: | boolean;
  Returns: | returns true if initialization of OpenCV was successful.

Note

This method is deprecated for production code. It is designed for experimental and local development purposes only. If you want to publish your app use approach with async initialization.

## boolean initAsync()

`static boolean initAsync(String Version, Context AppContext, LoaderCallbackInterface Callback)`

  Loads and initializes OpenCV library using OpenCV Manager.

  Parameters: | Version – OpenCV Library version. AppContext – application context for connecting to the service. Callback – object, that implements `LoaderCallbackInterface` for handling connection status (see `BaseLoaderCallback`).
  Return type: | boolean;
  Returns: | returns true if initialization of OpenCV starts successfully.

## OpenCV version constants

`OPENCV_VERSION_2_4_2`

  OpenCV Library version 2.4.2

`OPENCV_VERSION_2_4_3`

  OpenCV Library version 2.4.3

`OPENCV_VERSION_2_4_4`

  OpenCV Library version 2.4.4

`OPENCV_VERSION_2_4_5`

  OpenCV Library version 2.4.5

`OPENCV_VERSION_2_4_6`

  OpenCV Library version 2.4.6

`OPENCV_VERSION_2_4_7`

  OpenCV Library version 2.4.7

`OPENCV_VERSION_2_4_8`

  OpenCV Library version 2.4.8

`OPENCV_VERSION_2_4_9`

  OpenCV Library version 2.4.9

`OPENCV_VERSION_2_4_10`

  OpenCV Library version 2.4.10

`OPENCV_VERSION_2_4_11`

  OpenCV Library version 2.4.11

`OPENCV_VERSION_2_4_12`

  OpenCV Library version 2.4.12

`OPENCV_VERSION_2_4_13`

  OpenCV Library version 2.4.13

## Help and Feedback

You did not find what you were looking for?

- Ask a question on the Q&A forum.
- If you think something is missing or wrong in the documentation, please file a bug report.

### Navigation

- index
- next |
- previous |
- OpenCV 2.4.13.4 documentation »
- OpenCV4Android Reference »
- Android OpenCV Manager »