control-scnu-0.8.6
توضیحات
The code package for HuaGuang AI Education
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | control-scnu-0.8.6 |
| نام | control-scnu |
| نسخه کتابخانه | 0.8.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | HuaGuangEdu |
| ایمیل نویسنده | huaguangcase@163.com |
| آدرس صفحه اصلی | https://github.com/pypa/sampleproject |
| آدرس اینترنتی | https://pypi.org/project/control-scnu/ |
| مجوز | - |
English | [简体中文](README_cn.md)
- [0.control_scnu](#0control_scnu)
- [1.Install control](#1install-control)
- [2.Each corresponding file description](#2each-corresponding-file-description)
- [template](#template)
- [_init_.py](#initpy)
- [file_operation.py](#file_operationpy)
- [gpio.py](#gpiopy)
- [jiami.py](#jiamipy)
- [machine_learning.py](#machine_learningpy)
- [maths.py](#mathspy)
- [requirements.txt](#requirementstxt)
- [shijue (shijue0,shijue1,shijue2)](#shijue-shijue0shijue1shijue2)
- [unique.py](#uniquepy)
- [yuyin.py](#yuyinpy)
# 0.control_scnu
The library was developed for Huaguang AI Education Innovation Team [Case Department]
Applicable to artificial intelligence education
# 1.Install control
```python
pip3 install control-scnu
```
# 2.Each corresponding file description
## template
Where the various model files are saved
## _init_.py
The init file
The version information of the software, programming block and library is indicated in this file
## file_operation.py
File manipulation related libraries
## gpio.py
Car hardware related library
The car forward routine (This item needs to run on the car):
```
from control import gpio
import time
m=gpio.Mecanum_wheel()
m.uart_init()
m.car_go(200)
time.sleep(2)
m.car_stop()
```
## jiami.py
A library for encrypted files
## machine_learning.py
Library for machine learning
Iris machine learning routine:
```
from control import machine_learning as ml
datasets=ml.DatasetsNew(ml.data_name["鸢尾花"])
model= ml.ModelNew(ml.model_name['神经网络'])
model.train(datasets.x_train, datasets.y_train,dataName=datasets.data_name)
model.test(datasets.x_test,datasets.y_test)
print(model.test_score,flush=True)
model.predict(datasets.x_test)
print(model.pred,flush=True)
model.save(name='myFirstModel')
model1=ml.ModelNew('myFirstModel.proto')
model1.test(datasets.x_test,datasets.y_test)
print(model.pred,flush=True)
```
## maths.py
Library related to basic mathematics
## requirements.txt
Library dependent TXT file
## shijue (shijue0,shijue1,shijue2)
Visual related libraries
The camera obtains the image and binarizes the display routine:
```
from control import shijue1
a=shijue1.Img()
a.camera(0)
a.name_windows('img')
while True:
a.get_img()
a.BGR2GRAY()
a.GRAY2BIN()
a.show_image('img')
a.delay(1)
```
## unique.py
Put something special in it
## yuyin.py
Speech correlation library
Routines for speech recognition and retelling:
```
from control import yuyin
s=yuyin.Yuyin(online=True)
s.my_record(3,"speech")
print(s.stt("speech"),flush=True)
s.play_txt(s.stt("speech"))
نیازمندی
| مقدار | نام |
|---|---|
| ==2.2.18.0 | baidu-aip |
| ==2021.5.30 | certifi |
| ==2.0.6 | charset-normalizer |
| ==0.18.2 | future |
| ==3.2 | idna |
| ==0.1.16 | iso8601 |
| ==1.1.0 | joblib |
| - | numpy |
| ==4.5.3.56 | opencv-contrib-python |
| ==4.5.3.56 | opencv-python |
| ==8.3.2 | Pillow |
| - | pygame |
| ==0.1.8 | pyzbar |
| ==3.5.3 | redis |
| ==2.26.0 | requests |
| ==1.0 | scikit-learn |
| ==1.7.1 | scipy |
| ==3.0.0 | threadpoolctl |
| ==1.26.7 | urllib3 |
| - | pandas |
| - | cvzone |
| - | imutils |
| - | websocket |
| - | websocket-client |
| ==3.19.0 | protobuf |
| - | pyttsx3 |
| - | wordcloud |
| - | jieba |
| - | py7zr |
| - | tqdm |
| - | browser-cookie3 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7, <3.11 | Python |
نحوه نصب
نصب پکیج whl control-scnu-0.8.6:
pip install control-scnu-0.8.6.whl
نصب پکیج tar.gz control-scnu-0.8.6:
pip install control-scnu-0.8.6.tar.gz