Skip to main content

GUI tool developed in Python for Azure Kinect for standalone data capture.

Project description

AK_SM_RECORDER

A simple GUI recorder based on Python to manage Azure Kinect camera devices in a standalone mode.

SOFTWARE_PRESENTATION

Contents

  1. Pre-requisites.
  2. Functionalities.
  3. Install and run.
  4. Files and folder description.
  5. Development tools, environment, build executables.t

1. Pre-requisites

  • Azure Kinect DK camera connected to the computer. Specifications can be seen in the manufacturer site.
  • SDK Azure Kinect installed.
  • pyk4a library installed. If the operating system is Windows, follow this steps. You can find test basic examples with pyk4a here.
  • In Ubuntu 20.04, we provide a script to install the camera drivers following the instructions in azure_kinect_notes.

2. Functionalities

The functionalities of the software are briefly described. Supplementary material can be found in USER's Manual.

  • [Show real time] Display images of the device in real time. Used to see where the camera is pointing.
  • [Start record] Start a video recording.
  • [Stop record] Stops a video recording in progress.
  • [Take screenshots] Take screenshots and save them in Matroska format as short videos.
  • [Take 3D point cloud capture] Take the captures as 3D point cloud data and save them in .XYZ format.
  • [Save config] Enables to the user to configure Azure Kinect devices parameters.
  • Videos and 3D cloud points can be retrieved from "RECORDER_VIDEOS/" folder.

3. Install and run

  • [Linux] Enter to the folder "ak_sm_recorder/"

Create virtual environment(only first time)

./creating_env_ak_sm_recorder.sh

Run script.

./ak_sm_recorder_start.sh
  • [Windows] Enter to the folder "ak_sm_recorder/"

Create virtual environment(only first time)

TODO_HERE

Run script from CMD.

./ak_sm_recorder_start.bat

4. Files and folder description

Folder description:

Folders Description
docs/ Documentation
src/ Source code
win_exe_conf/ Specifications for building .exe files with Pyinstaller.
. .

Files description:

Files Description OS
activate.bat Activate environments in Windows WIN
clean_files.bat Clean files under CMD. WIN
ak_sm_recorder_main.bat Executing main script WIN
build_pip.bat Build PIP package to distribution WIN
build_win.bat Build .EXE for distribution WIN
creating_env_ak_sm_recorder.sh Automatically creates Python environments Linux
ak_sm_recorder_start.sh Executing main script Linux
/src/ak_sm_recorder/main.py Main function used in package compilation Supported by Python
/ak_sm_recorder_main.py Python main function Supported by Python
setup.cfg Package configuration PIP Supported by Python
pyproject.toml Package description pip Supported by Python

5. Development tools, environment, build executables

Some development tools are needed with this package, listed below:

5.1 Notes for developers

You can use the main.py for execute as first time in src/ak_sm_recorder/_ _ main _ _.py Configure the path of the project, if you use Pycharm, put your folder root like this: ak_sm_recorder

5.2 Creating virtual environment Linux

python3 -m venv ./venv
source ./venv/bin/activate
pip install --upgrade pip
pip install -r requirements_linux.txt

5.3 Creating virtual environment Windows

%userprofile%"\AppData\Local\Programs\Python\Python38\python.exe" -m venv ./venv
venv\Scripts\activate.bat
pip install --upgrade pip
pip install -r requirements_windows.txt

** If there are some problems in Windows, follow this **

pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"

5.4 Building PIP package

We are working to offer Pypi support for this package. At this time this software can be built by scripts automatically.

5.4.1 Build packages

py -m pip install --upgrade build
build_pip.bat

5.4.2 Download PIP package

pip install package.whl

5.4.3 Run ak_sm_recorder

python -m ak_sm_recorder.py

5.4 Building .EXE for Windows 10

build_win.bat

After the execution of the script, a new folder will be generated inside the project "/dist". You can copy ** ak_sm_recorder_f/** or a compressed file "ak_sm_recorder_f.zip" to distribute.

5.6 Package distribution format

Explain about packages distribution.

Package type Package Url Description
Windows .EXE .EXE Executables are stored under build/
Linux .deb .deb NOT IMPLEMENTED YET
PIP .whl .whl PIP packages are stored in build/

Authorship

This project is contributed by GRAP-UdL-AT. Please contact authors to report bugs juancarlos.miranda@udl.cat

Citation

If you find this code useful, please consider citing: GRAP-UdL-AT/ak_sm_recorder.

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

ak_sm_recorder-1.0.tar.gz (78.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ak_sm_recorder-1.0-py3-none-any.whl (84.2 kB view details)

Uploaded Python 3

File details

Details for the file ak_sm_recorder-1.0.tar.gz.

File metadata

  • Download URL: ak_sm_recorder-1.0.tar.gz
  • Upload date:
  • Size: 78.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ak_sm_recorder-1.0.tar.gz
Algorithm Hash digest
SHA256 fe6cb869ba5f19500a37e529037b55b630ff4b7869541e6e430e26fcdc4c02dd
MD5 b1d4aeca9aaae99fe321b12fed3c58d3
BLAKE2b-256 96d864f411318a3080eb99f0dbd2ac154727060e62cf2e833dacd8e33edbd71c

See more details on using hashes here.

File details

Details for the file ak_sm_recorder-1.0-py3-none-any.whl.

File metadata

  • Download URL: ak_sm_recorder-1.0-py3-none-any.whl
  • Upload date:
  • Size: 84.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ak_sm_recorder-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1ebd10594680ffc353a3d6f36c92be33f0d1fded19a859abe211bf681c57f3c
MD5 742fa69e862087ef663bf5e74bd1e222
BLAKE2b-256 d4710ac50616a238999dc06c6b5e9b8d8f8bafe09421003247990f31c6670664

See more details on using hashes here.

Supported by

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