{"id":331,"date":"2023-03-27T17:47:05","date_gmt":"2023-03-27T09:47:05","guid":{"rendered":"https:\/\/doc.orionstar.com\/en\/?post_type=lsvr_faq&#038;p=331"},"modified":"2023-08-07T19:57:05","modified_gmt":"2023-08-07T11:57:05","slug":"camera-orientation-is-wrong-or-cant-work","status":"publish","type":"lsvr_faq","link":"https:\/\/doc.orionstar.com\/en\/faq\/camera-orientation-is-wrong-or-cant-work\/","title":{"rendered":"Camera orientation is wrong or can&#8217;t work"},"content":{"rendered":"\n<p>The camera on the robot is initially set at a direction of 90\u00b0 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 \u2013 by using the Android API (or APIs provided by other video SDKs), the camera rotation can be corrected by -90\u00b0 or 270\u00b0. <\/p>\n\n\n\n<p>Other camera functions are the same as the standard Android camera. Here\u2019s a demo that uses the Android Camera component that you can refer to: <\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/orion-base-test-1256573505.cos.ap-beijing.myqcloud.com\/cn_docs_file\/2022-05-31_16%3A29%3A07_CameraPreview-master.zip\" target=\"_blank\">Demo<\/a> using Camera1 suitable for Greetbot Mini.<\/p>\n\n\n\n<p> <a rel=\"noreferrer noopener\" href=\"https:\/\/orion-base-test-1256573505.cos.ap-beijing.myqcloud.com\/cn_docs_file\/2022-06-27_17%3A00%3A09_CameraV2.zip\" target=\"_blank\">Demo<\/a> using Camera2 suitable for Luckibot . <\/p>\n\n\n\n<p>Note: Due to existing bugs in the robot\u2019s 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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The camera on the robot is initially set at a direction of 90\u00b0 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 \u2013 by using the Android API [&hellip;]<\/p>\n","protected":false},"author":1,"template":"","meta":[],"lsvr_faq_cat":[12],"lsvr_faq_tag":[],"_links":{"self":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq\/331"}],"collection":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq"}],"about":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/types\/lsvr_faq"}],"author":[{"embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":3,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq\/331\/revisions"}],"predecessor-version":[{"id":605,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq\/331\/revisions\/605"}],"wp:attachment":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"lsvr_faq_cat","embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq_cat?post=331"},{"taxonomy":"lsvr_faq_tag","embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_faq_tag?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}