From a78eb410dc5bc744f783ce02fd5be4d630b6d51e Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 17 Apr 2024 10:47:40 +0200 Subject: Documenting pipe communication. --- docs/user_guide/utils/ready-made_scripts.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/user_guide/utils/ready-made_scripts.md b/docs/user_guide/utils/ready-made_scripts.md index 92a4502..a7b3057 100644 --- a/docs/user_guide/utils/ready-made_scripts.md +++ b/docs/user_guide/utils/ready-made_scripts.md @@ -17,6 +17,35 @@ Load and execute any ArContext from a JSON CONFIGURATION file python -m argaze CONFIGURATION ``` +### Send command + +Use -p option to enable pipe communication at given address: + +```shell +python -m argaze post_processing_context.json -p /tmp/argaze +``` + +Then, in another console window, you can send any Python command into the pipe. + +For example: + +* Print context: +```shell +echo "print(context)" > /tmp/argaze +``` + +* Pause context processing: + +```shell +echo "context.pause()" > /tmp/argaze +``` + +* Resume context processing: + +```shell +echo "context.resume()" > /tmp/argaze +``` + ## ArUco markers group exporter Detect DICTIONARY and SIZE ArUco markers inside a MOVIE frame then, export detected ArUco markers group as .obj file into an OUTPUT folder. -- cgit v1.1