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)
Metadata
Release files for automatic-behavior-analysis 0.0.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| automatic-behavior-analysis-0.0.21.tar.gz | 12.4 MB | Without provenance | Details for automatic-behavior-analysis-0.0.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| automatic_behavior_analysis-0.0.21-py3-none-any.whl | Python 3 | none | any | Details for automatic_behavior_analysis-0.0.21-py3-none-any.whl |
Total release size: 24.8 MB
Release files / automatic-behavior-analysis-0.0.21.tar.gz
| Download URL | automatic-behavior-analysis-0.0.21.tar.gz |
|---|---|
| Size | 12.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21713ee56502dc0fba7d019de385fe7c6a5d95a56cae608d1df9c3cb3f0c7ff5
|
|
BLAKE2b-256 checksum How to use checksums |
694d939ba7c8068d60f2a2656b5ce43969ed3478da2b05d8f871a6a51ad49aa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.2 Windows/10
|
Release files / automatic_behavior_analysis-0.0.21-py3-none-any.whl
| Download URL | automatic_behavior_analysis-0.0.21-py3-none-any.whl |
|---|---|
| Size | 12.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4491dd88cd763fb9d74ed528f45e07d515c24c5b77c1ac38c5a974815eaa99a9
|
|
BLAKE2b-256 checksum How to use checksums |
95f9b1e3639f06163dcbb538d62fbfaebc744bee2fec1b1eb2b06f1aefcccb89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.2 Windows/10
|
Security for automatic-behavior-analysis 0.0.21
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.