载入中...
搜索中...
未找到
ActionGuideVerify.h
浏览该文件的文档.
1#pragma once
2
12#include "common/Export.h"
13#include "common/Result.h"
14#include "common/Value.h"
15
16#include <cstdint>
17#include <memory>
18#include <span>
19#include <string>
20#include <string_view>
21#include <vector>
22
23namespace eve {
24
25inline constexpr std::string_view kActionGuideVerifyReportSchemaId = "eve.action.guide-verify-report";
26inline constexpr std::uint64_t kActionGuideVerifyReportSchemaVersion = 1;
27
30 double iou = 0.0;
31 std::uint64_t intersection = 0;
32 std::uint64_t unionCount = 0;
33 std::uint64_t guideForeground = 0;
34 std::uint64_t candidateForeground = 0;
35};
36
39 bool evaluated = false;
40 double maxErrorPx = 0.0;
41 std::uint64_t matchedBones = 0;
42 std::uint64_t missingBones = 0;
43};
44
54
60 std::uint64_t sourceGuideRevision = 0;
61 bool passed = false;
62 double minSilhouetteIoU = 0.0;
63 double maxJointErrorPx = 0.0;
64 std::vector<ActionGuideShotVerifyResult> shots;
66};
67
70 std::string shotId;
71 std::uint32_t width = 0;
72 std::uint32_t height = 0;
73 std::shared_ptr<const std::vector<std::uint8_t>> guideSilhouetteRgba8;
74 std::shared_ptr<const std::vector<std::uint8_t>> candidateRgba8;
76 std::vector<ActionGuideLandmark> expectedJoints;
78 std::vector<ActionGuideLandmark> observedJoints;
79};
80
84 std::vector<ActionGuideVerifyShotInput> shots;
85 std::uint8_t guideLuminanceThreshold = 200;
86 std::uint8_t candidateAlphaThreshold = 8;
87};
88
95 std::span<const std::uint8_t> guideRgba8, std::span<const std::uint8_t> candidateRgba8, std::uint32_t width,
96 std::uint32_t height, std::uint8_t guideLuminanceThreshold = 200, std::uint8_t candidateAlphaThreshold = 8);
97
103 std::span<const ActionGuideLandmark> expected, std::span<const ActionGuideLandmark> observed);
104
113
116 const ActionGuideVerifyReport& report);
117
118} // namespace eve
Versioned eve.action.guide-pack document codec and CPU landmark projection.
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
const GltfImportRequest & request
std::uint32_t height
std::uint32_t width
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
Move-only operation result carrying either a value or Status.
Definition Result.h:176
The canonical owning dynamic value used by data-facing protocols.
Definition Value.h:31
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
constexpr std::string_view kActionGuideVerifyReportSchemaId
constexpr std::uint64_t kActionGuideVerifyReportSchemaVersion
Result< ActionGuideVerifyReport > verifyActionGuideCandidates(const ActionGuideVerifyRequest &request)
Evaluate every shot against pack.qc; returns a report even when some shots fail.
Result< ActionGuideJointMetrics > compareActionGuideJointError(std::span< const ActionGuideLandmark > expected, std::span< const ActionGuideLandmark > observed)
Max L2 pixel error across bones present in both landmark lists (matched by boneId)....
Result< ActionGuideSilhouetteMetrics > compareActionGuideSilhouetteIoU(std::span< const std::uint8_t > guideRgba8, std::span< const std::uint8_t > candidateRgba8, std::uint32_t width, std::uint32_t height, std::uint8_t guideLuminanceThreshold, std::uint8_t candidateAlphaThreshold)
Compute silhouette IoU between guide luminance mask and candidate alpha mask.
Result< Value > encodeActionGuideVerifyReport(const ActionGuideVerifyReport &report)
Encode a verify report as a durable evidence Value.
Measured joint L2 error for one shot (optional when joints absent).
Authoritative guide-pack document (no pointers, GPU tokens, or ECS slots). @ownership Caller-owned va...
ActionGuideSilhouetteMetrics silhouette
Measured silhouette overlap for one shot.
Aggregate verify report for one GuidePack revision. @ownership Caller-owned; Values are independent c...
std::vector< ActionGuideShotVerifyResult > shots
In-memory verify request.
std::vector< ActionGuideVerifyShotInput > shots
One shot of RGBA inputs for geometric verify (lease-owned buffers).
std::shared_ptr< const std::vector< std::uint8_t > > guideSilhouetteRgba8
std::vector< ActionGuideLandmark > expectedJoints
Expected landmarks from the guide pack (authoritative).
std::shared_ptr< const std::vector< std::uint8_t > > candidateRgba8
std::vector< ActionGuideLandmark > observedJoints
Optional agent-reported / estimated joints; empty skips joint gate.