smartpi 1.1.3__py3-none-any.whl → 1.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- smartpi/__init__.pyc +0 -0
- smartpi/_gui.pyc +0 -0
- smartpi/ai_asr.pyc +0 -0
- smartpi/ai_llm.pyc +0 -0
- smartpi/ai_tts.pyc +0 -0
- smartpi/ai_vad.pyc +0 -0
- smartpi/audio.pyc +0 -0
- smartpi/base_driver.pyc +0 -0
- smartpi/camera.pyc +0 -0
- smartpi/color_sensor.pyc +0 -0
- smartpi/cw2015.pyc +0 -0
- smartpi/flash.pyc +0 -0
- smartpi/humidity.pyc +0 -0
- smartpi/led.pyc +0 -0
- smartpi/light_sensor.pyc +0 -0
- smartpi/local_model.pyc +0 -0
- smartpi/mcp_client.pyc +0 -0
- smartpi/mcp_fastmcp.pyc +0 -0
- smartpi/mcp_intent_recognizer.pyc +0 -0
- smartpi/models/__init__.pyc +0 -0
- smartpi/models/snakers4_silero-vad/__init__.pyc +0 -0
- smartpi/models/snakers4_silero-vad/hubconf.pyc +0 -0
- smartpi/motor.pyc +0 -0
- smartpi/move.pyc +0 -0
- smartpi/onnx_hand_workflow.pyc +0 -0
- smartpi/onnx_image_workflow.pyc +0 -0
- smartpi/onnx_pose_workflow.pyc +0 -0
- smartpi/onnx_text_workflow.pyc +0 -0
- smartpi/onnx_voice_workflow.pyc +0 -0
- smartpi/posemodel/__init__.pyc +0 -0
- smartpi/posenet_utils.pyc +0 -0
- smartpi/rknn_hand_workflow.pyc +0 -0
- smartpi/rknn_image_workflow.pyc +0 -0
- smartpi/rknn_pose_workflow.pyc +0 -0
- smartpi/rknn_text_workflow.pyc +0 -0
- smartpi/rknn_voice_workflow.pyc +0 -0
- smartpi/servo.pyc +0 -0
- smartpi/temperature.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/__init__.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/asr/__init__.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/asr/flash_recognizer.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/asr/speech_recognizer.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/common/__init__.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/common/credential.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/common/log.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/common/utils.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/soe/__init__.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/soe/speaking_assessment.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/tts/__init__.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/tts/flowing_speech_synthesizer.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer_ws.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/vc/__init__.pyc +0 -0
- smartpi/tencentcloud-speech-sdk-python/vc/speech_convertor_ws.pyc +0 -0
- smartpi/text_gte_model/__init__.pyc +0 -0
- smartpi/text_gte_model/config/__init__.pyc +0 -0
- smartpi/text_gte_model/gte/__init__.pyc +0 -0
- smartpi/touch_sensor.pyc +0 -0
- smartpi/trace.pyc +0 -0
- smartpi/ultrasonic.pyc +0 -0
- {smartpi-1.1.3.dist-info → smartpi-1.1.4.dist-info}/METADATA +1 -1
- smartpi-1.1.4.dist-info/RECORD +77 -0
- smartpi/__init__.py +0 -8
- smartpi/_gui.py +0 -66
- smartpi/ai_asr.py +0 -1037
- smartpi/ai_llm.py +0 -934
- smartpi/ai_tts.py +0 -938
- smartpi/ai_vad.py +0 -83
- smartpi/audio.py +0 -125
- smartpi/base_driver.py +0 -618
- smartpi/camera.py +0 -84
- smartpi/color_sensor.py +0 -18
- smartpi/cw2015.py +0 -179
- smartpi/flash.py +0 -130
- smartpi/humidity.py +0 -20
- smartpi/led.py +0 -19
- smartpi/light_sensor.py +0 -72
- smartpi/local_model.py +0 -432
- smartpi/mcp_client.py +0 -100
- smartpi/mcp_fastmcp.py +0 -322
- smartpi/mcp_intent_recognizer.py +0 -408
- smartpi/models/__init__.py +0 -0
- smartpi/models/snakers4_silero-vad/__init__.py +0 -0
- smartpi/models/snakers4_silero-vad/hubconf.py +0 -56
- smartpi/motor.py +0 -177
- smartpi/move.py +0 -218
- smartpi/onnx_hand_workflow.py +0 -201
- smartpi/onnx_image_workflow.py +0 -176
- smartpi/onnx_pose_workflow.py +0 -482
- smartpi/onnx_text_workflow.py +0 -173
- smartpi/onnx_voice_workflow.py +0 -437
- smartpi/posemodel/__init__.py +0 -0
- smartpi/posenet_utils.py +0 -222
- smartpi/rknn_hand_workflow.py +0 -245
- smartpi/rknn_image_workflow.py +0 -405
- smartpi/rknn_pose_workflow.py +0 -592
- smartpi/rknn_text_workflow.py +0 -240
- smartpi/rknn_voice_workflow.py +0 -394
- smartpi/servo.py +0 -178
- smartpi/temperature.py +0 -18
- smartpi/tencentcloud-speech-sdk-python/__init__.py +0 -1
- smartpi/tencentcloud-speech-sdk-python/asr/__init__.py +0 -0
- smartpi/tencentcloud-speech-sdk-python/asr/flash_recognizer.py +0 -178
- smartpi/tencentcloud-speech-sdk-python/asr/speech_recognizer.py +0 -311
- smartpi/tencentcloud-speech-sdk-python/common/__init__.py +0 -1
- smartpi/tencentcloud-speech-sdk-python/common/credential.py +0 -6
- smartpi/tencentcloud-speech-sdk-python/common/log.py +0 -16
- smartpi/tencentcloud-speech-sdk-python/common/utils.py +0 -7
- smartpi/tencentcloud-speech-sdk-python/soe/__init__.py +0 -0
- smartpi/tencentcloud-speech-sdk-python/soe/speaking_assessment.py +0 -276
- smartpi/tencentcloud-speech-sdk-python/tts/__init__.py +0 -0
- smartpi/tencentcloud-speech-sdk-python/tts/flowing_speech_synthesizer.py +0 -294
- smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer.py +0 -144
- smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer_ws.py +0 -234
- smartpi/tencentcloud-speech-sdk-python/vc/__init__.py +0 -0
- smartpi/tencentcloud-speech-sdk-python/vc/speech_convertor_ws.py +0 -237
- smartpi/text_gte_model/__init__.py +0 -0
- smartpi/text_gte_model/config/__init__.py +0 -0
- smartpi/text_gte_model/gte/__init__.py +0 -0
- smartpi/touch_sensor.py +0 -16
- smartpi/trace.py +0 -120
- smartpi/ultrasonic.py +0 -20
- smartpi-1.1.3.dist-info/RECORD +0 -77
- {smartpi-1.1.3.dist-info → smartpi-1.1.4.dist-info}/WHEEL +0 -0
- {smartpi-1.1.3.dist-info → smartpi-1.1.4.dist-info}/top_level.txt +0 -0
smartpi/__init__.pyc
ADDED
|
Binary file
|
smartpi/_gui.pyc
ADDED
|
Binary file
|
smartpi/ai_asr.pyc
ADDED
|
Binary file
|
smartpi/ai_llm.pyc
ADDED
|
Binary file
|
smartpi/ai_tts.pyc
ADDED
|
Binary file
|
smartpi/ai_vad.pyc
ADDED
|
Binary file
|
smartpi/audio.pyc
ADDED
|
Binary file
|
smartpi/base_driver.pyc
ADDED
|
Binary file
|
smartpi/camera.pyc
ADDED
|
Binary file
|
smartpi/color_sensor.pyc
ADDED
|
Binary file
|
smartpi/cw2015.pyc
ADDED
|
Binary file
|
smartpi/flash.pyc
ADDED
|
Binary file
|
smartpi/humidity.pyc
ADDED
|
Binary file
|
smartpi/led.pyc
ADDED
|
Binary file
|
smartpi/light_sensor.pyc
ADDED
|
Binary file
|
smartpi/local_model.pyc
ADDED
|
Binary file
|
smartpi/mcp_client.pyc
ADDED
|
Binary file
|
smartpi/mcp_fastmcp.pyc
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
smartpi/motor.pyc
ADDED
|
Binary file
|
smartpi/move.pyc
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
smartpi/servo.pyc
ADDED
|
Binary file
|
smartpi/temperature.pyc
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
smartpi/touch_sensor.pyc
ADDED
|
Binary file
|
smartpi/trace.pyc
ADDED
|
Binary file
|
smartpi/ultrasonic.pyc
ADDED
|
Binary file
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
smartpi/__init__.pyc,sha256=nrGBJr_70YTIVzhzwnh7eKJlbh4suW1DqRuFo-Sfgys,634
|
|
2
|
+
smartpi/_gui.pyc,sha256=IrjDYKc2r_rz5EXpZ_Mbgf2T8Y96t-0hcynaSN2hY78,3210
|
|
3
|
+
smartpi/ai_asr.pyc,sha256=WNu8j7Qt9-bpZk_8IP2bs9EYwCeWsr_hDRwlllocAG8,24932
|
|
4
|
+
smartpi/ai_llm.pyc,sha256=rIg4UZnCJU4XSGmfgxnAB7SoN_fW3_aw3Pa7bL2b7JM,24655
|
|
5
|
+
smartpi/ai_tts.pyc,sha256=cFhvuclBTB1aPsHPvh3ifQD_zD9f3b_eLmleBkXPhjo,22843
|
|
6
|
+
smartpi/ai_vad.pyc,sha256=bOkTuayKV3EdoykacrmloNEUMOou65N1nQ-VQOz5KS4,2389
|
|
7
|
+
smartpi/audio.pyc,sha256=JuQmkXWO5E_UQNW98MvnaVYK2PM2Ao0_UAgYMOxN8MI,2702
|
|
8
|
+
smartpi/base_driver.pyc,sha256=pnBYscQ1AR12vBjtimsIPinZUqdspQxRUv6K5dEPkf4,11868
|
|
9
|
+
smartpi/camera.pyc,sha256=yqLpk7_Lo4ExLkeGDN-FFTjWhU5zeEcQEVR5jAiSYyg,2505
|
|
10
|
+
smartpi/color_sensor.pyc,sha256=hy7Fn_d6dkHR21IpmNWYVRRqivaOnAleEppOcp1EHMM,555
|
|
11
|
+
smartpi/cw2015.pyc,sha256=4hjRNSbqZFgjnjJCgbg4bkOzxfRqE4A9doIgYQeCLfQ,5202
|
|
12
|
+
smartpi/flash.pyc,sha256=_VOwx9OdqCvtMITNnujtmBxjQvmoa2DIB81MyH9By_Q,3398
|
|
13
|
+
smartpi/humidity.pyc,sha256=BLrLJipaw4DTDTCPj53OpPWDPXI6AD92cXT2HieWtpo,559
|
|
14
|
+
smartpi/led.pyc,sha256=t5PA1-zR8bxh2j_AMiSMbpDKSiivpEmUgFpFDKeu9dg,524
|
|
15
|
+
smartpi/light_sensor.pyc,sha256=WEmc1TBQcNVm5wejppwyilQYoc4-UwcG7iSvtMOr-Cc,1815
|
|
16
|
+
smartpi/local_model.pyc,sha256=9RIXUnvcsCZoF4HpsRzaG-tNSN5ycrCeIm3pwoLPFLM,11006
|
|
17
|
+
smartpi/mcp_client.pyc,sha256=f68j1tFm-lUJUTmfH6rAEXM5h21q0A8TTDu46FoPAEI,2434
|
|
18
|
+
smartpi/mcp_fastmcp.pyc,sha256=PnUk-JNCd_HhSIKORCGRqIZkFA4uVEWeMh7hvT32RPU,6990
|
|
19
|
+
smartpi/mcp_intent_recognizer.pyc,sha256=xR3L2adPWDlQ3v4196tNxUZpt6rCoYMmDnNiiPcJNKE,8932
|
|
20
|
+
smartpi/motor.pyc,sha256=8fKCo_l6MmybVxp4rqicgh-N5wQd8iy5Hk98B-kdQkY,3588
|
|
21
|
+
smartpi/move.pyc,sha256=eXoVwdXM2ErVBDBVKP3iQsMRrPAwsLUmWho_R47OiN0,3925
|
|
22
|
+
smartpi/onnx_hand_workflow.pyc,sha256=j6C39kIaEcvGz8a2_BiElFIwZA0aTU9caQD3i0AEZ-k,5096
|
|
23
|
+
smartpi/onnx_image_workflow.pyc,sha256=7pA9KFIRVj7pehYx8JDbhEi6flA2HGmGmOhZIB4hCx8,4324
|
|
24
|
+
smartpi/onnx_pose_workflow.pyc,sha256=717OA937bbddO4VtHCE4kVBmJbM0pXmGwZwdrIPEWgc,12228
|
|
25
|
+
smartpi/onnx_text_workflow.pyc,sha256=2oEjNJ7RRKXpKDenCpXP-1Q0-Qf1ZmpAkWUeY3g1X50,5138
|
|
26
|
+
smartpi/onnx_voice_workflow.pyc,sha256=NK5yLr4_cSY8KGxIgvXW28yeeikNiPMg53EJzYoQAT0,11464
|
|
27
|
+
smartpi/posenet_utils.pyc,sha256=UyvJvKcbee8doj_AdA9AIxqkQG5B5cdHIcYqIJakPIA,7178
|
|
28
|
+
smartpi/rknn_hand_workflow.pyc,sha256=1IeTkJ7trCDl4uxClo-2Se5zbcgULRQuhqTiM2NXxHY,6337
|
|
29
|
+
smartpi/rknn_image_workflow.pyc,sha256=cMNlEy7tQ9vALsdGiwf_PQ7nZERshLXaRgnBC4m4S9Y,13471
|
|
30
|
+
smartpi/rknn_pose_workflow.pyc,sha256=fDjilnAIoiRXdWQH4bBqyeHyMDFu0yORP0sCcgAiTX8,14788
|
|
31
|
+
smartpi/rknn_text_workflow.pyc,sha256=5EFrGEWr_Jtfw6GOxc3de_DvUPdZ4T2eT4TEkgeN5FM,7045
|
|
32
|
+
smartpi/rknn_voice_workflow.pyc,sha256=kG3c2u55XxK5qgLMmLXK2tdyTXJFbsBg4a-NOH5LT4U,11263
|
|
33
|
+
smartpi/servo.pyc,sha256=qYBjaSpcAcP0GAz-sfxLSIVWVx1lf1pAhI5tdQYqGu4,3939
|
|
34
|
+
smartpi/temperature.pyc,sha256=OGX4vJWEOSHMSH7GvVsJYENog3oL03O-w029S7H3GBM,562
|
|
35
|
+
smartpi/touch_sensor.pyc,sha256=pP3A-q6C6cbny3BI5UEz8YVlPCDLu0KPnLbjRq--Puw,547
|
|
36
|
+
smartpi/trace.pyc,sha256=-eEjs1GCrNK_NdlUCQ6ceQl58r2ReJMNavnw43OMg-o,2961
|
|
37
|
+
smartpi/ultrasonic.pyc,sha256=0M1oxTHHwy2xRJE__8z4zkFUzUKrvhp7eEBgiTFaHrE,669
|
|
38
|
+
smartpi/models/__init__.pyc,sha256=E86afeNF4cpXC8dXcVIHYexFqP6tMYkoU57RMZvW5NQ,123
|
|
39
|
+
smartpi/models/snakers4_silero-vad/__init__.pyc,sha256=R8iJJ09FtzrboGIUK0eS5OtuN1fwRUDrBroYUCJUrdM,143
|
|
40
|
+
smartpi/models/snakers4_silero-vad/hubconf.pyc,sha256=lSv9zmssiH00hpAa1g0_LfTSXqeExHdIUY0BLfSRIV0,1670
|
|
41
|
+
smartpi/models/snakers4_silero-vad/src/silero_vad/data/silero_vad.jit,sha256=hcSOHw7LYE5dKiaPPM-5EtT36TWs3IavWj_FsK6nspo,2269612
|
|
42
|
+
smartpi/models/snakers4_silero-vad/src/silero_vad/data/silero_vad.onnx,sha256=JiOilT9v89LB5hdAxs23FoEzR5smff7xFKSjzFvdeI8,2327524
|
|
43
|
+
smartpi/models/snakers4_silero-vad/src/silero_vad/data/silero_vad_16k_op15.onnx,sha256=todaSbrPbVeCan4KVJ1aBddp7jRAXK3Mn_i0RCVEsfk,1289603
|
|
44
|
+
smartpi/models/snakers4_silero-vad/src/silero_vad/data/silero_vad_half.onnx,sha256=HgsZWtSAZZXvRGb0GdFvyn5K_PxmabjAtfduqHVHx2k,1280395
|
|
45
|
+
smartpi/posemodel/__init__.pyc,sha256=O1a4E9mjE-ll0SPa94IYRGmKsgRq8hlZF47MqC7lzfg,126
|
|
46
|
+
smartpi/posemodel/posenet.tflite,sha256=KFcCnk1X5KvJrVC_c_PhL76pdvwL0hZvBdNqhzZ7J2I,1303152
|
|
47
|
+
smartpi/tencentcloud-speech-sdk-python/__init__.pyc,sha256=-dGIZMJNBTmKuG9pYY1HjCQgGP6x6VKMBrFLcbKdcPk,147
|
|
48
|
+
smartpi/tencentcloud-speech-sdk-python/asr/__init__.pyc,sha256=LDsiE5nPqnOt-0U1CLu7s0cVC6aY1a3EAMNx0VnMLIg,151
|
|
49
|
+
smartpi/tencentcloud-speech-sdk-python/asr/flash_recognizer.pyc,sha256=RZVCAMfsJh31FdaZPuYhVEVtYU_G5l5IBHHiEN5ipuI,6585
|
|
50
|
+
smartpi/tencentcloud-speech-sdk-python/asr/speech_recognizer.pyc,sha256=5a9XrPtgCAMFJk2NSkcPSO_R-Ruu0Ee3F3pLD41djgM,9908
|
|
51
|
+
smartpi/tencentcloud-speech-sdk-python/common/__init__.pyc,sha256=S60AZsXboYpfhRBz_h20yfy3o3WGvG1IvSswJkbBX7Y,154
|
|
52
|
+
smartpi/tencentcloud-speech-sdk-python/common/credential.pyc,sha256=HKvhuRLfnxbs2uLxakX15Url3Sbd1H0sBwkPJy4qDH0,495
|
|
53
|
+
smartpi/tencentcloud-speech-sdk-python/common/log.pyc,sha256=VCIUlCTCFuDum2k1gNM-t_XS871MhqRg9f_GB3x1zto,616
|
|
54
|
+
smartpi/tencentcloud-speech-sdk-python/common/utils.pyc,sha256=Kv97rcP3LA5RxDFz68nAL8430EUdY0DlkpYT_9VaOBA,301
|
|
55
|
+
smartpi/tencentcloud-speech-sdk-python/examples/tts/tts_text.txt,sha256=ufooughGwSPBnLxulH1BNwTFqsDSoLlvjRa2o-PJy1g,2669
|
|
56
|
+
smartpi/tencentcloud-speech-sdk-python/soe/__init__.pyc,sha256=21mcVT7ZecwjybohRrSJ9vBzuXmQD6z53iHWz-sQbiU,151
|
|
57
|
+
smartpi/tencentcloud-speech-sdk-python/soe/speaking_assessment.pyc,sha256=0p4izNmCEdjAJEkYNXH2Gir_FfiBb40N6RdMQQfeYbE,8639
|
|
58
|
+
smartpi/tencentcloud-speech-sdk-python/tts/__init__.pyc,sha256=-tn8o4rG_cwSkKlfRN9Khy0SxEGPy8t0jCO-kbXmMp0,151
|
|
59
|
+
smartpi/tencentcloud-speech-sdk-python/tts/flowing_speech_synthesizer.pyc,sha256=tZLz-FWY_c34iUpQz56oaeQA0mprnrK0fgYMS_4MlNo,10745
|
|
60
|
+
smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer.pyc,sha256=xzGecG2k1VfFdO2mQRZpmwGcfkVJSb7Uk7UaBYWwGy4,4720
|
|
61
|
+
smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer_ws.pyc,sha256=FS4hsLZu3InBhg5jFDaxt2I4ymKX0tEc3mTGqK8_xgY,8372
|
|
62
|
+
smartpi/tencentcloud-speech-sdk-python/vc/__init__.pyc,sha256=6dqx6MZcU-KsWvDIXdCZg0FVw1SotyCwg3eMKyCBtgY,150
|
|
63
|
+
smartpi/tencentcloud-speech-sdk-python/vc/speech_convertor_ws.pyc,sha256=eZEZQlb6qF28__yth1aCtrDQIirwJ9uTgTiK7R0Fbbc,8096
|
|
64
|
+
smartpi/text_gte_model/__init__.pyc,sha256=UiJje8M-UeU2StZgBkQ_AukM6bdPVs0RsOFTHdbOtoQ,131
|
|
65
|
+
smartpi/text_gte_model/config/__init__.pyc,sha256=az7K1J_Yz6lLAW1WEkEJq7Fbb7Ik0XFMmAXvxYoIV_Q,138
|
|
66
|
+
smartpi/text_gte_model/config/config.json,sha256=dkFw_GRLSEkp6VT2U92alaGUfCRRJBQysJYSbJYznLc,818
|
|
67
|
+
smartpi/text_gte_model/config/quantize_config.json,sha256=snZbw5kBj_FupAbcYazm_11wNRCbX2m468VBjl6svd4,703
|
|
68
|
+
smartpi/text_gte_model/config/special_tokens_map.json,sha256=PDUH823_V7zkNyI9s7MIHR4rUuw-Vu5VQ4GT7LLJTdY,132
|
|
69
|
+
smartpi/text_gte_model/config/tokenizer.json,sha256=BC58aSuzfzE-tNG0UDwcFfNT_mJOYFaLoVoOs_JBEjQ,312882
|
|
70
|
+
smartpi/text_gte_model/config/tokenizer_config.json,sha256=w5RiDifbeIYy6vyGX5v94vFmcko1TMItqnY0RfcBO1Q,639
|
|
71
|
+
smartpi/text_gte_model/config/vocab.txt,sha256=oi9hP3uz_8h8XoHNh6rgLnVdJbIEm75zKoSKM8HzsC8,84758
|
|
72
|
+
smartpi/text_gte_model/gte/__init__.pyc,sha256=_j8q1v17RlMqa0GOCJFx_FzfIMDtZVkquIvnoTWNCUY,135
|
|
73
|
+
smartpi/text_gte_model/gte/gte_model.onnx,sha256=XXYg6TUhzOx1SqAhp6ePDU0QgeK6DQEqHATMuQQJCNE,30468366
|
|
74
|
+
smartpi-1.1.4.dist-info/METADATA,sha256=BwPz_C3uZtA2dGpnxLtazt1ocubK-5l0-iKNk1EJ058,715
|
|
75
|
+
smartpi-1.1.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
76
|
+
smartpi-1.1.4.dist-info/top_level.txt,sha256=PoLhUCmWAiQUg5UeN2fS-Y1iQyBbF2rdUlizXtpHGRQ,8
|
|
77
|
+
smartpi-1.1.4.dist-info/RECORD,,
|
smartpi/__init__.py
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
from ._gui import gui
|
|
2
|
-
from .base_driver import P1, P2, P3, P4, P5, P6, M1, M2, M3, M4, M5, M6
|
|
3
|
-
|
|
4
|
-
__all__ = ["base_driver","gui","audio","ultrasonic","touch_sensor","temperature","humidity","light_sensor","color_sensor","motor","servo","led","flash",
|
|
5
|
-
"trace","move","local_model","P1", "P2", "P3", "P4", "P5", "P6", "M1", "M2", "M3", "M4", "M5", "M6"]
|
|
6
|
-
|
|
7
|
-
__version__ = "1.1.3"
|
|
8
|
-
|
smartpi/_gui.py
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import socket
|
|
4
|
-
import json
|
|
5
|
-
import time
|
|
6
|
-
|
|
7
|
-
class gui_client:
|
|
8
|
-
def __init__(self, host="127.0.0.1", port=65167, timeout=2.0):
|
|
9
|
-
self.sock = None
|
|
10
|
-
try:
|
|
11
|
-
self.sock = socket.create_connection((host, port), timeout=timeout)
|
|
12
|
-
self.clear()
|
|
13
|
-
except :
|
|
14
|
-
self.sock = None
|
|
15
|
-
|
|
16
|
-
def is_connected(self):
|
|
17
|
-
result = False
|
|
18
|
-
if self.sock is not None:
|
|
19
|
-
result = True
|
|
20
|
-
return result
|
|
21
|
-
|
|
22
|
-
def _send(self, cmd):
|
|
23
|
-
if self.sock is None:
|
|
24
|
-
return
|
|
25
|
-
try:
|
|
26
|
-
self.sock.sendall((json.dumps(cmd) + "\n").encode())
|
|
27
|
-
time.sleep(0.1) # 确保命令发送出去
|
|
28
|
-
except :
|
|
29
|
-
self.sock = None
|
|
30
|
-
|
|
31
|
-
def show_text(self, x, y, text, color="black", size=16, update_bgc=False, bgc_color="white"):
|
|
32
|
-
self._send({"type": "text", "x": x, "y": y, "text": text, "color": color, "size": size, "update_bgc": update_bgc, "bgc_color": bgc_color})
|
|
33
|
-
|
|
34
|
-
def print(self, text):
|
|
35
|
-
self._send({"type": "print", "text": text})
|
|
36
|
-
|
|
37
|
-
def println(self, text):
|
|
38
|
-
self._send({"type": "println", "text": text})
|
|
39
|
-
|
|
40
|
-
def show_image(self, x, y, path, width, height):
|
|
41
|
-
self._send({"type": "image", "x": x, "y": y, "path": path, "width": width, "height": height})
|
|
42
|
-
|
|
43
|
-
def draw_line(self, x1, y1, x2, y2, color="black", width=1):
|
|
44
|
-
self._send({"type": "line", "x1": x1, "y1": y1, "x2": x2, "y2": y2, "color": color, "width": width})
|
|
45
|
-
|
|
46
|
-
def fill_rect(self, x, y, w, h, color="black"):
|
|
47
|
-
self._send({"type": "fill_rect", "x": x, "y": y, "w": w, "h": h, "color": color})
|
|
48
|
-
|
|
49
|
-
def draw_rect(self, x, y, w, h, width, color="black"):
|
|
50
|
-
self._send({"type": "draw_rect", "x": x, "y": y, "w": w, "h": h, "width": width, "color": color})
|
|
51
|
-
|
|
52
|
-
def fill_circle(self, cx, cy, r, color="black"):
|
|
53
|
-
self._send({"type": "fill_circle", "cx": cx, "cy": cy, "r": r, "color": color})
|
|
54
|
-
|
|
55
|
-
def draw_circle(self, cx, cy, r, width, color="black"):
|
|
56
|
-
self._send({"type": "draw_circle", "cx": cx, "cy": cy, "r": r, "width": width, "color": color})
|
|
57
|
-
|
|
58
|
-
def clear(self):
|
|
59
|
-
self._send({"type": "clear"})
|
|
60
|
-
|
|
61
|
-
def finish(self):
|
|
62
|
-
self.sock.close()
|
|
63
|
-
|
|
64
|
-
# 外部调用
|
|
65
|
-
gui = gui_client()
|
|
66
|
-
|