Ask Your Question

How can i change FPS of javacamera on android

asked 2013-09-30 03:00:52 -0500

itay gravatar image

updated 2013-09-30 03:02:22 -0500

berak gravatar image


I want to know if there is a chance to change the FPS of the camera, so i get into "onCameraFrame" function less often?

If there is no way to do it, what can i do if i want to perform image processing in a real time and do not let the value of the inputframe to change in the middle of the calculation.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-09-30 06:20:24 -0500

You can get access to android.hardware.Camera object via JavaCameraView and force fps. There is example Tuturial-3-CameraControl, that demonstrates how to control android camera directly. I recommend you to start from this sample.

edit flag offensive delete link more


Sorry but i can't find where exactly the fps is changed. Can you focus me please where exactly i can control the fps? Thanks

itay gravatar imageitay ( 2013-09-30 09:17:35 -0500 )edit

You need to set correct camera parameters with Camera.Parameters class. Camera.Parameters.setPreviewFpsRange is what you need.,%20int%29

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-10-01 05:47:23 -0500 )edit

Yes, it's work!!! Thank you very much

itay gravatar imageitay ( 2013-10-02 02:18:35 -0500 )edit

Question Tools


Asked: 2013-09-30 03:00:52 -0500

Seen: 6,496 times

Last updated: Oct 08 '14