GSVIdeo: the function resolutions() does not exist (using linux)
in
Contributed Library Questions
•
2 years ago
processing.app.debug.RunnerException: The function resolutions() does not exist.
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Compiler.compile(Compiler.java:149)
at processing.app.Sketch.build(Sketch.java:1573)
at processing.app.Sketch.build(Sketch.java:1553)
at processing.app.Editor$DefaultRunHandler.run(Editor.java:1485)
at java.lang.Thread.run(Thread.java:636)
Using the example script getting started capture linux:
int[][] res = cam.resolutions();
also tried
int[][] res = GSCapture.resolutions();
int[][] res = new GSCapture.resolutions(this);
gives this error as does any other method called GSCapture except available.
Are these methods not available in linux?
/**
* Getting Started with Capture.
*
* GSVideo version by Andres Colubri.
*
* Reading and displaying an image from an attached Capture device.
*/
import codeanticode.gsvideo.*;
import codeanticode.gsvideo.GSCapture;
GSCapture cam;
void setup() {
size(640, 480);
// size(1024, 768);
/*
However, different cameras can be selected by using their device file:
cam = new GSCapture(this, 640, 480, "/dev/video0");
cam = new GSCapture(this, 640, 480, "/dev/video1");
etc.
*/
cam = new GSCapture(this, 640, 480);
int[][] res = cam.resolutions();
}
void draw() {
if (cam.available() == true) {
cam.read();
image(cam, 0, 0);
// The following does the same, and is faster when just drawing the image
// without any additional resizing, transformations, or tint.
//set(160, 100, cam);
}
}
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Compiler.compile(Compiler.java:149)
at processing.app.Sketch.build(Sketch.java:1573)
at processing.app.Sketch.build(Sketch.java:1553)
at processing.app.Editor$DefaultRunHandler.run(Editor.java:1485)
at java.lang.Thread.run(Thread.java:636)
Using the example script getting started capture linux:
int[][] res = cam.resolutions();
also tried
int[][] res = GSCapture.resolutions();
int[][] res = new GSCapture.resolutions(this);
gives this error as does any other method called GSCapture except available.
Are these methods not available in linux?
/**
* Getting Started with Capture.
*
* GSVideo version by Andres Colubri.
*
* Reading and displaying an image from an attached Capture device.
*/
import codeanticode.gsvideo.*;
import codeanticode.gsvideo.GSCapture;
GSCapture cam;
void setup() {
size(640, 480);
// size(1024, 768);
/*
However, different cameras can be selected by using their device file:
cam = new GSCapture(this, 640, 480, "/dev/video0");
cam = new GSCapture(this, 640, 480, "/dev/video1");
etc.
*/
cam = new GSCapture(this, 640, 480);
int[][] res = cam.resolutions();
}
void draw() {
if (cam.available() == true) {
cam.read();
image(cam, 0, 0);
// The following does the same, and is faster when just drawing the image
// without any additional resizing, transformations, or tint.
//set(160, 100, cam);
}
}
1