We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello Processing gods,
We are working on a project were we would like to manipulate an android's tablets camera in real time. Everything is fine and dandy except the fps! We are only getting 5!
This is the log when we run the sketch on the device
17
842094169
842094169
default imageformat:17
supported flashmode: off
supported flashmode: auto
supported flashmode: on
supported flashmode: torch
Requested camera parameters as (w,h,fps):800,480,24
Checking supported preview size:1920,1080
Checking supported preview size:1280,720
Checking supported preview size:960,720
Checking supported preview size:800,480
Found matching camera size
Checking supported preview size:720,480
Checking supported preview size:640,480
Checking supported preview size:320,240
Checking supported preview size:176,144
Checking supported preview size:144,176
Supported preview FPS: 5
Supported preview FPS: 6
Supported preview FPS: 7
Supported preview FPS: 8
Supported preview FPS: 9
Supported preview FPS: 10
Supported preview FPS: 11
Supported preview FPS: 12
Supported preview FPS: 13
Supported preview FPS: 14
Supported preview FPS: 15
Supported preview FPS: 16
Supported preview FPS: 17
Supported preview FPS: 18
Supported preview FPS: 19
Supported preview FPS: 20
Supported preview FPS: 21
Supported preview FPS: 22
Supported preview FPS: 23
Supported preview FPS: 24
Supported preview FPS: 25
Supported preview FPS: 26
Supported preview FPS: 27
Supported preview FPS: 28
Supported preview FPS: 29
Supported preview FPS: 30
calculated preview FPS: 5
Calculated camera parameters as (w,h,fps):800,480,24
Face detection supported!
Using preview format: 17
Preview size: 800x480,2
The code we are using is the exampel from the ketai lib called CameraGettingStarted, where we have tryed the original and a modified with the same result.
/**
* <p>Ketai Sensor Library for Android: http://KetaiProject.org</p>
*
* <p>Ketai Camera Features:
* <ul>
* <li>Interface for built-in camera</li>
* <li></li>
* </ul>
* <p>Updated: 2012-10-21 Daniel Sauter/j.duran</p>
*/
import ketai.camera.*;
KetaiCamera cam;
void setup() {
orientation(LANDSCAPE);
imageMode(CENTER);
cam = new KetaiCamera(this, width, height, 24);
}
void draw() {
image(cam, width/2, height/2);
}
void onCameraPreviewEvent()
{
cam.read();
}
// start/stop camera preview by tapping the screen
void mousePressed()
{
if (cam.isStarted())
{
cam.stop();
}
else
cam.start();
}
We have tried running the sketch on different hardware
a) Samsung Galaxy Tab 2 b) Samsung Galaxy S4 Mini
Thank you in advanced!
Answers
Have you managed to resolve this issue?