Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
darival
darival's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Calculated camera parameters as (w,h,fps)?
[0 Replies]
24-Apr-2013 03:20 AM
Forum:
Android Processing
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();
}
but not all the cameras are 800*480, so, is there a way to get those parameters automaticaly from the device?
thx for any help
«Prev
Next »
Moderate user : darival
Forum