From patchwork Fri Jul 5 14:41:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 20594 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 46984BD87C for ; Fri, 5 Jul 2024 14:42:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 04AC8619C7; Fri, 5 Jul 2024 16:42:31 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="BTOnZXtb"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8ACFF619C7 for ; Fri, 5 Jul 2024 16:42:26 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:60b6:33a3:3a20:6030]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 039A54CC; Fri, 5 Jul 2024 16:41:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1720190517; bh=2Mwrrxacsy4SVITkHn2gH2Ex5SNFupsS5xuP38ff/D8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BTOnZXtb6+WvyDXzexSD0FBfcJbSzCHeWelOpelgVQb+akGC3FCta1+RFthdjnzBP l3AzbU/AO0C4zydG8LLu4v2S8CuOh+Gm4BvnaW29D+ytHII9+UDg+RsDMXLBwpcyDI j9NyIgjL+R3o0UQmdR/CVRTNVScBiNgdzkX1YJqg= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug , Laurent Pinchart , Paul Elder Subject: [PATCH v4 05/23] utils: tuning: Add requirements file and update readme Date: Fri, 5 Jul 2024 16:41:41 +0200 Message-ID: <20240705144209.418906-6-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240705144209.418906-1-stefan.klug@ideasonboard.com> References: <20240705144209.418906-1-stefan.klug@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a requirements file to ease the installation and use of the tuning scripts. Document that in the readme. No debian packages are provided as rawpy is not packaged as deb. So pip has to be used anyways. Also add pyyaml which was missing in the dependencies. Signed-off-by: Stefan Klug Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/tuning/README.rst | 23 ++++++++++++++++------- utils/tuning/requirements.txt | 5 +++++ 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 utils/tuning/requirements.txt diff --git a/utils/tuning/README.rst b/utils/tuning/README.rst index ef3e6ad76f1b..89a1d61e62a8 100644 --- a/utils/tuning/README.rst +++ b/utils/tuning/README.rst @@ -1,11 +1,20 @@ .. SPDX-License-Identifier: CC-BY-SA-4.0 -.. TODO: Write an overview of libtuning +libcamera tuning tools +====================== -Dependencies ------------- +.. Note:: The tuning tools are still very much work in progress. If in doubt, + please ask on the mailing list. + +.. todo:: + Write documentation + +Installation of dependencies +---------------------------- + +:: + # Using a venv + python3 -m venv venv + . ./venv/bin/activate + pip3 install -r requirements.txt -- numpy -- opencv-python -- py3exiv2 -- rawpy diff --git a/utils/tuning/requirements.txt b/utils/tuning/requirements.txt new file mode 100644 index 000000000000..d1dc589d0329 --- /dev/null +++ b/utils/tuning/requirements.txt @@ -0,0 +1,5 @@ +numpy +opencv-python +py3exiv2 +pyyaml +rawpy