chao 1 mês atrás
pai
commit
50a3bc6017
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      preset/app/30_training_data_collect.py

+ 5 - 1
preset/app/30_training_data_collect.py

@@ -62,7 +62,11 @@ key_C = BUTTON(13)
 key_D = BUTTON(7)
 
 image.load_freetype("/root/preset/fonts/CascadiaCodePL-Italic.ttf")
-camera.camera.config(size=(240,320))
+
+if cameraSize==True:
+    camera.camera.config(size=(320,240))
+else:
+    camera.camera.config(size=(240,320))
 
 def getWifiConnectState():
     cmd = "wifi_get_connection_info_test 1"