本文整理汇总了Java中com.googlecode.javacpp.Loader类的典型用法代码示例。如果您正苦于以下问题:Java Loader类的具体用法?Java Loader怎么用?Java Loader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Loader类属于com.googlecode.javacpp包,在下文中一共展示了Loader类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.avutil.class);
Loader.load(com.googlecode.javacv.cpp.avcodec.class);
Loader.load(com.googlecode.javacv.cpp.avformat.class);
Loader.load(com.googlecode.javacv.cpp.swscale.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception("Failed to load " + FFmpegFrameRecorder.class, t);
}
}
}
}
开发者ID:feigxj,项目名称:VideoRecorder-master,代码行数:19,代码来源:FFmpegFrameRecorder.java
示例2: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.avutil.class);
Loader.load(com.googlecode.javacv.cpp.avcodec.class);
Loader.load(com.googlecode.javacv.cpp.avformat.class);
Loader.load(com.googlecode.javacv.cpp.swscale.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception("Failed to load " + NewFFmpegFrameRecorder.class, t);
}
}
}
}
开发者ID:feigxj,项目名称:VideoRecorder-master,代码行数:19,代码来源:NewFFmpegFrameRecorder.java
示例3: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.avutil.class);
Loader.load(com.googlecode.javacv.cpp.avcodec.class);
Loader.load(com.googlecode.javacv.cpp.avformat.class);
Loader.load(com.googlecode.javacv.cpp.avdevice.class);
Loader.load(com.googlecode.javacv.cpp.swscale.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception("Failed to load " + FFmpegFrameGrabber.class, t);
}
}
}
}
开发者ID:wordin0,项目名称:javacv,代码行数:20,代码来源:FFmpegFrameGrabber.java
示例4: FaceView
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public FaceView(FacePreview context) throws IOException {
super(context);
// Load the classifier file from Java resources.
File classifierFile = Loader.extractResource(getClass(),
"/com/googlecode/javacv/facepreview/haarcascade_frontalface_alt.xml",
context.getCacheDir(), "classifier", ".xml");
if (classifierFile == null || classifierFile.length() <= 0) {
throw new IOException("Could not extract the classifier file from Java resource.");
}
// Preload the opencv_objdetect module to work around a known bug.
Loader.load(opencv_objdetect.class);
classifier = new CvHaarClassifierCascade(cvLoad(classifierFile.getAbsolutePath()));
classifierFile.delete();
if (classifier.isNull()) {
throw new IOException("Could not load the classifier file.");
}
storage = CvMemStorage.create();
}
开发者ID:wordin0,项目名称:javacv,代码行数:21,代码来源:FacePreview.java
示例5: init
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
@Override public void init() {
try {
// Load the classifier file from Java resources.
String classiferName = "haarcascade_frontalface_alt.xml";
File classifierFile = Loader.extractResource(classiferName, null, "classifier", ".xml");
if (classifierFile == null || classifierFile.length() <= 0) {
throw new IOException("Could not extract \"" + classiferName + "\" from Java resources.");
}
// Preload the opencv_objdetect module to work around a known bug.
Loader.load(opencv_objdetect.class);
classifier = new CvHaarClassifierCascade(cvLoad(classifierFile.getAbsolutePath()));
classifierFile.delete();
if (classifier.isNull()) {
throw new IOException("Could not load the classifier file.");
}
storage = CvMemStorage.create();
} catch (Exception e) {
if (exception == null) {
exception = e;
repaint();
}
}
}
开发者ID:wordin0,项目名称:javacv,代码行数:26,代码来源:FaceApplet.java
示例6: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.avutil.class);
Loader.load(com.googlecode.javacv.cpp.avcodec.class);
Loader.load(com.googlecode.javacv.cpp.avformat.class);
Loader.load(com.googlecode.javacv.cpp.swscale.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception) t;
} else {
throw loadingException = new Exception("Failed to load " + FFmpegFrameRecorder.class, t);
}
}
}
}
开发者ID:yinglovezhuzhu,项目名称:AndroidMedia,代码行数:19,代码来源:FFmpegFrameRecorder.java
示例7: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.avutil.class);
Loader.load(com.googlecode.javacv.cpp.avcodec.class);
Loader.load(com.googlecode.javacv.cpp.avformat.class);
Loader.load(com.googlecode.javacv.cpp.avdevice.class);
Loader.load(com.googlecode.javacv.cpp.swscale.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception(t);
}
}
}
}
开发者ID:liuyq,项目名称:aster,代码行数:20,代码来源:FFmpegFrameGrabber.java
示例8: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.freenect.class);
} catch (Throwable t) {
throw loadingException = new Exception("Failed to load " + OpenKinectFrameGrabber.class, t);
}
}
}
开发者ID:wordin0,项目名称:javacv,代码行数:12,代码来源:OpenKinectFrameGrabber.java
示例9: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.videoInputLib.class);
} catch (Throwable t) {
throw loadingException = new Exception("Failed to load " + VideoInputFrameGrabber.class, t);
}
}
}
开发者ID:wordin0,项目名称:javacv,代码行数:12,代码来源:VideoInputFrameGrabber.java
示例10: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.opencv_highgui.class);
} catch (Throwable t) {
throw loadingException = new Exception("Failed to load " + OpenCVFrameGrabber.class, t);
}
}
}
开发者ID:wordin0,项目名称:javacv,代码行数:12,代码来源:OpenCVFrameGrabber.java
示例11: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.PGRFlyCapture.class);
} catch (Throwable t) {
throw loadingException = new Exception("Failed to load " + FlyCaptureFrameGrabber.class, t);
}
}
}
开发者ID:wordin0,项目名称:javacv,代码行数:12,代码来源:FlyCaptureFrameGrabber.java
示例12: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.dc1394.class);
} catch (Throwable t) {
throw loadingException = new Exception("Failed to load " + DC1394FrameGrabber.class, t);
}
}
}
开发者ID:wordin0,项目名称:javacv,代码行数:12,代码来源:DC1394FrameGrabber.java
示例13: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.opencv_highgui.class);
} catch (Throwable t) {
throw loadingException = new Exception("Failed to load " + OpenCVFrameRecorder.class, t);
}
}
}
开发者ID:wordin0,项目名称:javacv,代码行数:12,代码来源:OpenCVFrameRecorder.java
示例14: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.freenect.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception(t);
}
}
}
}
开发者ID:liuyq,项目名称:aster,代码行数:16,代码来源:OpenKinectFrameGrabber.java
示例15: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.videoInputLib.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception(t);
}
}
}
}
开发者ID:liuyq,项目名称:aster,代码行数:16,代码来源:VideoInputFrameGrabber.java
示例16: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.opencv_highgui.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception(t);
}
}
}
}
开发者ID:liuyq,项目名称:aster,代码行数:16,代码来源:OpenCVFrameGrabber.java
示例17: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.PGRFlyCapture.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception(t);
}
}
}
}
开发者ID:liuyq,项目名称:aster,代码行数:16,代码来源:FlyCaptureFrameGrabber.java
示例18: tryLoad
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public static void tryLoad() throws Exception {
if (loadingException != null) {
throw loadingException;
} else {
try {
Loader.load(com.googlecode.javacv.cpp.dc1394.class);
} catch (Throwable t) {
if (t instanceof Exception) {
throw loadingException = (Exception)t;
} else {
throw loadingException = new Exception(t);
}
}
}
}
开发者ID:liuyq,项目名称:aster,代码行数:16,代码来源:DC1394FrameGrabber.java
示例19: buildKernel
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public CLKernel buildKernel(String resourceNames, String kernelName) {
return buildKernels(fastCompilerOptions, Loader.getCallerClass(2), resourceNames, kernelName)[0];
}
开发者ID:wordin0,项目名称:javacv,代码行数:4,代码来源:JavaCVCL.java
示例20: buildKernels
import com.googlecode.javacpp.Loader; //导入依赖的package包/类
public CLKernel[] buildKernels(String compilerOptions, String resourceNames, String ... kernelNames) {
return buildKernels(compilerOptions, Loader.getCallerClass(2), resourceNames, kernelNames);
}
开发者ID:wordin0,项目名称:javacv,代码行数:4,代码来源:JavaCVCL.java
注:本文中的com.googlecode.javacpp.Loader类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论