001package org.opencv.osgi;
002
003import java.util.logging.Level;
004import java.util.logging.Logger;
005
006/**
007 * This class is intended to provide a convenient way to load OpenCV's native
008 * library from the Java bundle. If Blueprint is enabled in the OSGi container
009 * this class will be instantiated automatically and the init() method called
010 * loading the native library.
011 */
012public class OpenCVNativeLoader implements OpenCVInterface {
013
014    public void init() {
015        System.loadLibrary("opencv_java480");
016        Logger.getLogger("org.opencv.osgi").log(Level.INFO, "Successfully loaded OpenCV native library.");
017    }
018}