Skip to main content

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

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:

  1. Server part
  2. Client side

Shutdown Procedure:

  1. Client side
  2. 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


Download files

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

Source Distribution

automatic-behavior-analysis-0.0.21.tar.gz (12.4 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file automatic-behavior-analysis-0.0.21.tar.gz.

File metadata

File hashes

Hashes for automatic-behavior-analysis-0.0.21.tar.gz
Algorithm Hash digest
SHA256 21713ee56502dc0fba7d019de385fe7c6a5d95a56cae608d1df9c3cb3f0c7ff5
MD5 b97c90e67b839e29643d530728e4d9b0
BLAKE2b-256 694d939ba7c8068d60f2a2656b5ce43969ed3478da2b05d8f871a6a51ad49aa7

See more details on using hashes here.

File details

Details for the file automatic_behavior_analysis-0.0.21-py3-none-any.whl.

File metadata

File hashes

Hashes for automatic_behavior_analysis-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 4491dd88cd763fb9d74ed528f45e07d515c24c5b77c1ac38c5a974815eaa99a9
MD5 9e00804cef8d5a2a6ac75cd34e775198
BLAKE2b-256 95f9b1e3639f06163dcbb538d62fbfaebc744bee2fec1b1eb2b06f1aefcccb89

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