Show a patch.

GET /api/patches/21444/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 21444,
    "url": "https://patchwork.libcamera.org/api/patches/21444/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/21444/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20240930195915.152187-5-jacopo.mondi@ideasonboard.com>",
    "date": "2024-09-30T19:59:12",
    "name": "[v9,4/5] libcamera: control_ids_draft: Add face detection controls",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "cd30e90930bb230d08dd1488918949890d6ae133",
    "submitter": {
        "id": 143,
        "url": "https://patchwork.libcamera.org/api/people/143/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo.mondi@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/21444/mbox/",
    "series": [
        {
            "id": 4642,
            "url": "https://patchwork.libcamera.org/api/series/4642/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4642",
            "date": "2024-09-30T19:59:08",
            "name": "Add Face Detection Controls",
            "version": 9,
            "mbox": "https://patchwork.libcamera.org/series/4642/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/21444/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/21444/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 63C64C3257\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 30 Sep 2024 19:59:49 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B7D2B6351A;\n\tMon, 30 Sep 2024 21:59:48 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DAC176350F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 30 Sep 2024 21:59:34 +0200 (CEST)",
            "from ideasonboard.com (unknown [95.131.46.153])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id DD63B280;\n\tMon, 30 Sep 2024 21:58:02 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"sH4SSRkW\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1727726283;\n\tbh=fR/rrzHwpUYNOMGH4aZsQ9vsD19NhkyTXn3VlsHNiyM=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=sH4SSRkW3Tc0OWvv73pc1JpqpAa2CsxFjlVO6Z5b2CVMj6QR572DP9c0WuEUmwZCI\n\ta+1eM0iiw4U1qyJ7SDHeKbK4GC/mnfBQJhbIXtDnutt6j+WKbs72+3VGGwQ7nxxo8I\n\t93AshjamKM5iOz2mWzvJSHUYrZ16Kbz/haIQL8Vg=",
        "From": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>,\n\tHarvey Yang <chenghaoyang@google.com>,\n\tYudhistira Erlandinata <yerlandinata@chromium.org>,\n\tBecker Hsieh <beckerh@chromium.org>,\n\tHarvey Yang <chenghaoyang@chromium.org>",
        "Subject": "[PATCH v9 4/5] libcamera: control_ids_draft: Add face detection\n\tcontrols",
        "Date": "Mon, 30 Sep 2024 21:59:12 +0200",
        "Message-ID": "<20240930195915.152187-5-jacopo.mondi@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.46.1",
        "In-Reply-To": "<20240930195915.152187-1-jacopo.mondi@ideasonboard.com>",
        "References": "<20240930195915.152187-1-jacopo.mondi@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "From: Yudhistira Erlandinata <yerlandinata@chromium.org>\n\nAdd FaceDetectMode, FaceDetectFaceRectangles, FaceDetectFaceScores,\nand FaceDetectFaceLandmark. Also add ControlTypePoint for supporting\nFaceDetectFaceLandmark.\n\nSigned-off-by: Yudhistira Erlandinata <yerlandinata@chromium.org>\nCo-developed-by: Becker Hsieh <beckerh@chromium.org>\nCo-developed-by: Harvey Yang <chenghaoyang@chromium.org>\nReviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\nSigned-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n---\n src/libcamera/control_ids_draft.yaml | 82 ++++++++++++++++++++++++++++\n 1 file changed, 82 insertions(+)",
    "diff": "diff --git a/src/libcamera/control_ids_draft.yaml b/src/libcamera/control_ids_draft.yaml\nindex 9bef5bf15238..1b284257f601 100644\n--- a/src/libcamera/control_ids_draft.yaml\n+++ b/src/libcamera/control_ids_draft.yaml\n@@ -227,4 +227,86 @@ controls:\n             value. All of the custom test patterns will be static (that is the\n             raw image must not vary from frame to frame).\n \n+  - FaceDetectMode:\n+      type: int32_t\n+      description: |\n+        Control to select the face detection mode used by the pipeline.\n+\n+        Currently identical to ANDROID_STATISTICS_FACE_DETECT_MODE.\n+\n+        \\sa FaceDetectFaceRectangles\n+        \\sa FaceDetectFaceScores\n+        \\sa FaceDetectFaceLandmarks\n+        \\sa FaceDetectFaceIds\n+\n+      enum:\n+        - name: FaceDetectModeOff\n+          value: 0\n+          description: |\n+            Pipeline doesn't perform face detection and doesn't report any\n+            control related to face detection.\n+        - name: FaceDetectModeSimple\n+          value: 1\n+          description: |\n+            Pipeline performs face detection and reports the\n+            FaceDetectFaceRectangles and FaceDetectFaceScores controls for each\n+            detected face. FaceDetectFaceLandmarks and FaceDetectFaceIds are\n+            optional.\n+        - name: FaceDetectModeFull\n+          value: 2\n+          description: |\n+            Pipeline performs face detection and reports all the controls\n+            related to face detection including FaceDetectFaceRectangles,\n+            FaceDetectFaceScores, FaceDetectFaceLandmarks, and\n+            FaceDeteceFaceIds for each detected face.\n+\n+  - FaceDetectFaceRectangles:\n+      type: Rectangle\n+      description: |\n+        Boundary rectangles of the detected faces. The number of values is\n+        the number of detected faces.\n+\n+        The FaceDetectFaceRectangles control can only be returned in metadata.\n+\n+        Currently identical to ANDROID_STATISTICS_FACE_RECTANGLES.\n+      size: [n]\n+\n+  - FaceDetectFaceScores:\n+      type: uint8_t\n+      description: |\n+        Confidence score of each of the detected faces. The range of score is\n+        [0, 100]. The number of values should be the number of faces reported\n+        in FaceDetectFaceRectangles.\n+\n+        The FaceDetectFaceScores control can only be returned in metadata.\n+\n+        Currently identical to ANDROID_STATISTICS_FACE_SCORES.\n+      size: [n]\n+\n+  - FaceDetectFaceLandmarks:\n+      type: Point\n+      description: |\n+        Array of human face landmark coordinates in format [..., left_eye_i,\n+        right_eye_i, mouth_i, left_eye_i+1, ...], with i = index of face. The\n+        number of values should be 3 * the number of faces reported in\n+        FaceDetectFaceRectangles.\n+\n+        The FaceDetectFaceLandmarks control can only be returned in metadata.\n+\n+        Currently identical to ANDROID_STATISTICS_FACE_LANDMARKS.\n+      size: [n]\n+\n+  - FaceDetectFaceIds:\n+      type: int32_t\n+      description: |\n+        Each detected face is given a unique ID that is valid for as long as the\n+        face is visible to the camera device. A face that leaves the field of\n+        view and later returns may be assigned a new ID. The number of values\n+        should be the number of faces reported in FaceDetectFaceRectangles.\n+\n+        The FaceDetectFaceIds control can only be returned in metadata.\n+\n+        Currently identical to ANDROID_STATISTICS_FACE_IDS.\n+      size: [n]\n+\n ...\n",
    "prefixes": [
        "v9",
        "4/5"
    ]
}