Skip to main content

The code package for HuaGuang AI Education

Project description

English | 简体中文

0.control_scnu

The library was developed for Huaguang AI Education Innovation Team [Case Department]
Applicable to artificial intelligence education

1.Install control

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"))  


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

control_scnu-0.8.3.tar.gz (72.7 kB view details)

Uploaded Source

Built Distribution

control_scnu-0.8.3-py3-none-any.whl (87.8 kB view details)

Uploaded Python 3

File details

Details for the file control_scnu-0.8.3.tar.gz.

File metadata

  • Download URL: control_scnu-0.8.3.tar.gz
  • Upload date:
  • Size: 72.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.0

File hashes

Hashes for control_scnu-0.8.3.tar.gz
Algorithm Hash digest
SHA256 2ed20bbc2150727389899dcbc9e5c2dfade168fd0dd8030902a1fac7bfbdee23
MD5 07cf715b43a3537c224e0fd62f5860d8
BLAKE2b-256 c404d63172c9d846302f358cfcc8dc2f95978c1270b2eb5f29aa44c1fdcc2820

See more details on using hashes here.

File details

Details for the file control_scnu-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: control_scnu-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 87.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.0

File hashes

Hashes for control_scnu-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f29cdfbfc73874dff5f247c67d987aec39874ed0dd1a8a75a0e4f9823cae28
MD5 55d2d9c79548fc44ccf6c70cfbc350ae
BLAKE2b-256 ce1477e3a38dbf0ad224f4314eb389706e9360a5ffc5e7f1fc3b4842920cb268

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page