chao 1 month ago
parent
commit
67cc8c5d88
2 changed files with 402 additions and 290 deletions
  1. 395 283
      blockly/blocks/python/ai.js
  2. 7 7
      src/editor.js

File diff suppressed because it is too large
+ 395 - 283
blockly/blocks/python/ai.js


+ 7 - 7
src/editor.js

@@ -2621,7 +2621,7 @@ BlockPyEditor.CATEGORY_MAP = {
         '<block type="ai_model_digital_init_loding"></block>' +
         // '<block type="ai_model_digital_attribute"></block>' +
         // '<block type="ai_model_digital"></block>' +
-        // '<block type="ai_model_digital_new"></block>' +
+        '<block type="ai_model_digital_new"></block>' +
         '<block type="ai_model_digital_result"></block>' +
         '<label id="basis_object_recognition" text="Basis object recognition" web-class="myLabelStyle" style="font-size:20px;"></label>' +
         // '<block type="ai_model_object_init">' +
@@ -2629,20 +2629,20 @@ BlockPyEditor.CATEGORY_MAP = {
         '<block type="ai_model_object_load"></block>' +
         // '<block type="ai_model_look_attribute"></block>' +
         // '<block type="ai_model_look"></block>' +
-        // '<block type="ai_model_look_new"></block>' +
+        '<block type="ai_model_look_new"></block>' +
         '<block type="ai_model_get"></block>' +
         '<label id="Guesswork_recognition" text="猜拳识别" web-class="myLabelStyle" style="font-size:20px;"></label>' +
         // '<block type="ai_model_Guesswork_init">' +
         // '</block>' +
         '<block type="ai_model_Guesswork_load"></block>' +
         // '<block type="ai_model_Guesswork_look"></block>' +
-        // '<block type="ai_model_Guesswork_look_new"></block>' +
+        '<block type="ai_model_Guesswork_look_new"></block>' +
         '<block type="ai_model_Guesswork_get"></block>' +
         // '<block type="ai_model_Guesswork_look_attribute"></block>' +
         '<label id="basis_face_recognition" text="Basis face recognition" web-class="myLabelStyle" style="font-size:20px;"></label>' +
         '<block type="ai_model_face_recognition_load"></block>' +
         // '<block type="ai_model_face"></block>' +
-        // '<block type="ai_model_face_new"></block>' +
+        '<block type="ai_model_face_new"></block>' +
         '<block type="ai_model_xy"></block>' +
         // '<block type="ai_model_face_attribute"></block>' +
         // 车牌识别
@@ -2650,7 +2650,7 @@ BlockPyEditor.CATEGORY_MAP = {
         // '<block type="ai_model_card_recognition_init"></block>' +
         '<block type="ai_model_card_recognition_load"></block>' +
         // '<block type="ai_model_card_xy"></block>' +
-        // '<block type="ai_model_card_xy_new"></block>' +
+        '<block type="ai_model_card_xy_new"></block>' +
         '<block type="ai_model_card_get"></block>' +
         // '<block type="ai_model_card_result"></block>' +
         '<label id="basis_face_recognition_1" text="人脸识别" web-class="myLabelStyle" style="font-size:20px;"></label>' +
@@ -2670,7 +2670,7 @@ BlockPyEditor.CATEGORY_MAP = {
         '   </value>' +
         '</block>' +
         // '<block type="face_recognition_if_face"></block>' +
-        // '<block type="face_recognition_if_face_new"></block>' +
+        '<block type="face_recognition_if_face_new"></block>' +
         '<block type="face_recognition_detection_rectangle"></block>' +
         // '<block type="face_recognition_map_face"></block>' +
         // '<block type="face_recognition_face_result"></block>' +
@@ -2770,7 +2770,7 @@ BlockPyEditor.CATEGORY_MAP = {
         '   </value>' +
         '</block>' +
         // '<block type="ai_model_customized_if_got"></block>' +
-        // '<block type="ai_model_customized_if_got_new"></block>' +
+        '<block type="ai_model_customized_if_got_new"></block>' +
         // '<block type="ai_model_customized_if_got"></block>' +
         '<block type="ai_model_customized_get_result">' +
 

Some files were not shown because too many files changed in this diff