Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not change camera preview FPS #30

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 4 comments
Open

Can not change camera preview FPS #30

GoogleCodeExporter opened this issue Mar 15, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use Processing 2.1 and add the latest Ketai library as of today (Dec. 27, 
2013).
2. Use the example CameraGettingStarted.
3. I am using Nexus 7 with Android version 4.4.2.

What is the expected output? What do you see instead?
I see the camera preview with no color distortion or other issues. My intention 
is to do real time preview as humanly possible. However, the video is delayed 
little bit. I am looking at the camera frame capture rate and the preview rate. 
However, when I try to change the FPS in 
cam = new KetaiCamera(this, 320, 240, 24);
to 24, 30 or even 15, I always get the same information on the console.
***********
Supported preview FPS: 5
Supported preview FPS: 8
Supported preview FPS: 10
Supported preview FPS: 15
Supported preview FPS: 20
Supported preview FPS: 24
Supported preview FPS: 25
Supported preview FPS: 30
calculated preview FPS: 5
Calculated camera parameters as (w,h,fps):320,240,24
Using preview format: 17
Preview size: 320x240,24
Photo size: 320x240
***********

What version of the product are you using? On what operating system?
Processing 2.1 with latest Ketai library on Windows 7. Android 4.4.2 running on 
Nexus 7.

Please provide any additional information below.

You've built a great library for novice hobbyists like me. Thanks!

Original issue reported on code.google.com by [email protected] on 27 Dec 2013 at 4:25

@GoogleCodeExporter
Copy link
Author

Hello, sorry for the incomplete question. I always get "calculated preview FPS: 
5" and "Using preview format: 17", no matter what fps I use.
Thanks.

Original comment by [email protected] on 27 Dec 2013 at 4:27

@GoogleCodeExporter
Copy link
Author

Yes, please! I have the same issue.. I have EXACTLY the same config, running on 
Android kitkat nexus 7. It certainly has a good memory(and processor), and the 
normal camera runs fine, but when I run any processor intensive task, like 
texturing or even face detection, it is really really slow(as soon as I turn it 
on)! making the process unfeasible to use.. Tried changing frameRate; not much 
luck there! But any suggestions for making the processing fast in any way? I 
plan to do to optical flow and hand detection..Thanks

Original comment by [email protected] on 10 Mar 2014 at 7:31

@GoogleCodeExporter
Copy link
Author

The Android mode in Processing 2.1. does not work. Use Processing 2.0.3 instead

Original comment by [email protected] on 12 Mar 2014 at 2:21

@GoogleCodeExporter
Copy link
Author

I do have the same problem using Processing 2.0.3 (as well as Processing 3a5). 
I am using a Oneplus One with Android 4.4.4. 

Original comment by [email protected] on 11 Jan 2015 at 11:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant