Hi,
I wanted to use ketaicam in APDE, but it doesn’t work
I gave camera permission,but I always get the error
"
java.lang.NoClassDefFoundError: Failed resolution of: Lketai/camera/KetaiCamera;
at processing.test.sketch_20200922a.sketch_20200922a.setup(sketch_20200922a.java:26)
at processing.core.PApplet.handleDraw(PApplet.java:1801)
at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:471)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:503)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “ketai.camera.KetaiCamera” on path: DexPathList[[dex file “/data/user/0/com.calsignlabs.apde.sketchpreview/files/sketch.dex”],nativeLibraryDirectories=[/system/lib, /system/vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
"
My code : import ketai.camera.*;
KetaiCamera cam;
void setup()
{
orientation(LANDSCAPE);
cam = new KetaiCamera(this, 1280, 768, 30);
imageMode(CENTER);
}
void draw()
{
if (cam.isStarted()) image(cam, width/2, height/2);
}
void onCameraPreviewEvent()
{
cam.read();
}
void mousePressed()
{
if (cam.isStarted())
{
cam.stop();
}
else cam.start();
}