PythonLib for XGO2-DOG
Project description
XGO-PythonLib
XGO2 has built-in motion libraries for controlling the movement and various features of the machine dog, including battery level, firmware version, and servo angle. The motion library enables users to control translation and pose movement, as well as single servo and single-leg movement. The education library facilitates camera, screen, key, microphone, and speaker operations, as well as commonly used AI functions such as gesture recognition, face detection, emotional recognition, and age and gender recognition. The detailed instructions for use of the library are as follows.
PythonLib included xgolib.py and xgoedu.py
Install instructions
1 Burn the latest official image
2 Run this command:
pip install --upgrade xgo-pythonlib
sudo pip install --upgrade xgo-pythonlib
Examples
Perform gesture recognition on the current camera and press the "c" key to exit.
from xgoedu import XGOEDU
XGO_edu = XGOEDU()
while True:
result=XGO_edu.gestureRecognition()
print(result)
if XGO_edu.xgoButton("c"):
break
xgolib library example
from xgolib import XGO
dog = XGO('xgomini')
dog.action(1)
Change Log
[0.2.3] - 2023-07-04
Added
- Methods: cap_color_mask added.
Fixed
- CircleRecognition renamed BallRecognition and improved.
[0.2.2] - 2023-07-03
Added
- Five Methods: SpeechRecognition SpeechSynthesis QRRecognition CircleRecognition ColorRecognitio added.
[0.2.0] - 2023-06-21
Fixed
- xgoVideo and xgoVideoRecord method can be used.
[0.1.9] - 2023-06-20
Fixed
- Fixed the issue with the xgoTakePhoto method that was causing abnormal RGB colors in the saved photos.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xgo-pythonlib-0.2.3.tar.gz
.
File metadata
- Download URL: xgo-pythonlib-0.2.3.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 074f3b11b1dcc8570f47af687f4029aa98dfbc4ca653de01ef45ac5c687c72fa |
|
MD5 | 4f4ab99b32a784ce1212dbb7eb4856f9 |
|
BLAKE2b-256 | c75c984696f3bd0643cc115bfebeefaa8711b9a06d1004527e81d8218394c7a3 |
File details
Details for the file xgo_pythonlib-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: xgo_pythonlib-0.2.3-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a628dfcfccb95f19da056733ff6137e59ff8d9a17d72f16f19fb7f424331eca |
|
MD5 | d546a45ceabe64afe9c52a6401a2033e |
|
BLAKE2b-256 | 31e16328fbe9a25c3a8df8e03f9f611b5f61021465454ed2544e6726b8d8725e |