我试图使用java包装器使用OpenNI将深度图记录到.oni文件中。这是我目前的代码:
Context context = new Context();
DepthGenerator depth = DepthGenerator.create(context);
Recorder recorder = Recorder.create(context, null); //null gives .oni.
recorder.addNodeToRecording(depth);
context.startGeneratingAll();
while(true){
context.waitAnyUpdateAll();
recorder.Record();
}
当我运行它时,产生了这个错误:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005b7bd579, pid=8048, tid=6784
JRE version: 7.0-b147
Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b17 mixed mode windows-amd64 compressed oops)
Problematic frame:
V [jvm.dll+0xed579]
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as:
If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp
有人有什么想法吗?
答案 0 :(得分:0)
我明白了。
Recorder recorder = Recorder.create(context, "oni");
我需要指定文件格式。传递空值并不是最好的想法。