Calculated camera parameters as (w,h,fps)?
in
Android Processing
•
5 months ago
how do i get this parameters (w,h,fps) to work on my sketch instead of seting those at the begining of the app?
im doing this:
- import ketai.camera.*;
- KetaiCamera cam;
- void setup(){
- orientation(LANDSCAPE);
- cam = new KetaiCamera(this,800,480,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();
- }
thx for any help
1