From patchwork Fri Jun 28 10:46:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 20464 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 C9337BD87C for ; Fri, 28 Jun 2024 10:48:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 78ADD62E1F; Fri, 28 Jun 2024 12:48:55 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="BF1Lyr/L"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EF38462CA0 for ; Fri, 28 Jun 2024 12:48:53 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:82ab:924:d918:cd24]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6C672BEB; Fri, 28 Jun 2024 12:48:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1719571709; bh=K1ROE6FlStQU9yXyN+tjYRp/mvFiaGBHaevuF8ajc+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BF1Lyr/LJmBix/rSCNUHxFmdyCqQOqRGWpaN5B/As6kgzOvaOrghS4q+apxgKueE4 +PnCs5ttjhN1pqhGn8aAI/4gLGeyLd7rPWWq3LC42NCaiV21Kn5ZE20LHXaT65olOg THBmaTfQrS9U4+fHfjMcamdDYClCPeorYZi4liVw= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH v2 05/25] utils: tuning: Add requirements file and update readme Date: Fri, 28 Jun 2024 12:46:58 +0200 Message-ID: <20240628104828.2928109-6-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240628104828.2928109-1-stefan.klug@ideasonboard.com> References: <20240628104828.2928109-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 rawpi 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 --- 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..ef6dbe28f676 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 tool 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