I'm writing a custom app using OpenCV for computer vision on an Android phone (Moto Z). To complicate things even more, I have a fisheye add-on lens attached to the camera.
Now, I've noticed that when I move the device while getting preview images, the circular region illuminated by the fisheye lens shifts noticeably and also jitters even when the device is not moving (see https://youtu.be/J4Ns0mzgFww for illustration, hard to describe).
The effect looks like the fisheye lens is physically shifting in front of the actual camera lens, but it is quite rigidly attached, and this happens even with very slow movements. So my only explanation is that there is some sort of low-level image stabilization process running somewhere in the background.
Unfortunately, this totally messes up my camera calibration, because cx/cy are no longer stable. I've had a look at how can i set the camera function that anti-shake(image Stabilizer) at android, but the Camera.Parameters
object tells me that video-stabilization-supported=false
, and changing the scene mode also doesn't make any difference.
Any other hints/ideas regarding how to get unstabilized preview images? I suppose using the Camera2 API in RAW mode might work, but that would mean rewriting a large chunk of the OpenCV image acquisition code... alternatives preferred :-)