Program complex for automated behavior analysis
Project description
AutomaticBehaviorAnalysis
Installation
pip
Client (in cache mode) To work with the cache, you need to place the video and cache file in the same folder.
Package installation:
pip install --user automatic-behavior-analysis
Package update:
pip install --upgrade --user automatic-behavior-analysis
Client launch:
aba-client
ATTENTION! For correct operation, the package path should not contain Cyrillic characters.
Requirements
- Python 3
- TensorFlow
- Tensorflow Object Detection API
- Keras
- numpy
- PIL
- appdirs
- openCV
- websocket
- imageio
Client2
- pip install PyQt5 opencv-python appdirs requests matplotlib scipy pandas
Build a container with a server
Development container
There are no files and models in the development container in order to minify the image and increase the usability.
The container is collected by the following command:
# For container with GPU support
docker build -t registry.gitlab.com/digiratory/automatic-behavior-analysis/dev-gpu .
# For container with CPU support only
docker build -f Dockerfile.dev.cpu -t registry.gitlab.com/digiratory/automatic-behavior-analysis/dev-cpu .
There's no need to rebuild the container for work and you can pick up the assembled from the repository using the following commands:
docker login registry.gitlab.com
# To run a container with GPU support
docker run --runtime=nvidia -it -v <workspace>:/home/user/ -p 1217:1217 registry.gitlab.com/digiratory/automatic-behavior-analysis/dev-gpu:latest
# For container with CPU support only
docker run -it -v <workspace>:/home/user/ -p 1217:1217 registry.gitlab.com/digiratory/automatic-behavior-analysis/dev-cpu:latest
For CPU-only:
docker login registry.gitlab.com
docker run -it -v <workspace>:/home/user/ -p 1217:1217 registry.gitlab.com/digiratory/automatic-behavior-analysis/dev-cpu:latest
If the machine does not have gpu, then the key --runtime=nvidia
no need to specify.
ATTENTION! The development container does not include source code, models, and more.
Launch applications
Launch order:
- Server part
- Client side
Shutdown Procedure:
- Client side
- Server part
Server
To start the server side, you must run ./server.py
python3 ./server.py
Team Arguments: [ip= ] — Ip wiretap address (Default 172.0.0.1 ) [port= ] — Server Port (Default 1217)
Client part (GUI)
To start the client side, you must run ./client_gui.py
python3 ./client_gui.py
Team Arguments: [ip= ] — Ip server address (Default 172.0.0.1 ) [port= ] — Server Port (Default 1217)
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 automatic-behavior-analysis-0.0.21.tar.gz
.
File metadata
- Download URL: automatic-behavior-analysis-0.0.21.tar.gz
- Upload date:
- Size: 12.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21713ee56502dc0fba7d019de385fe7c6a5d95a56cae608d1df9c3cb3f0c7ff5 |
|
MD5 | b97c90e67b839e29643d530728e4d9b0 |
|
BLAKE2b-256 | 694d939ba7c8068d60f2a2656b5ce43969ed3478da2b05d8f871a6a51ad49aa7 |
File details
Details for the file automatic_behavior_analysis-0.0.21-py3-none-any.whl
.
File metadata
- Download URL: automatic_behavior_analysis-0.0.21-py3-none-any.whl
- Upload date:
- Size: 12.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4491dd88cd763fb9d74ed528f45e07d515c24c5b77c1ac38c5a974815eaa99a9 |
|
MD5 | 9e00804cef8d5a2a6ac75cd34e775198 |
|
BLAKE2b-256 | 95f9b1e3639f06163dcbb538d62fbfaebc744bee2fec1b1eb2b06f1aefcccb89 |