Skip to content Skip to main navigation Skip to footer

Camera orientation is wrong or can’t work

The camera on the robot is initially set at a direction of 90° when launched through the standard Android method. This is because the robot does not have a gyroscope, and the program defaults to a portrait-oriented camera, whereas the robot is an landscape-equipped device. The solution is simple – by using the Android API (or APIs provided by other video SDKs), the camera rotation can be corrected by -90° or 270°.

Other camera functions are the same as the standard Android camera. Here’s a demo that uses the Android Camera component that you can refer to:

Demo using Camera1 suitable for Greetbot Mini.

Demo using Camera2 suitable for Luckibot .

Note: Due to existing bugs in the robot’s authorization, the app may crash when authorizing camera usage for the first time. However, there are no further limitations after that. If the app crashes while authorizing the camera, simply restart it, and the camera usage should work normally.