winrt-Windows.Perception.People 2.1.0__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/PKG-INFO +9 -9
- winrt_windows_perception_people-2.2.0/all-requirements.txt +8 -0
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/py.Windows.Perception.People.cpp +247 -31
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/pyproject.toml +3 -2
- winrt_windows_perception_people-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/requirements.txt +2 -2
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/winrt/_winrt_windows_perception_people.pyi +1 -5
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/winrt/windows/perception/people/__init__.py +1 -1
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/winrt_Windows.Perception.People.egg-info/PKG-INFO +9 -9
- winrt_windows_perception_people-2.2.0/winrt_Windows.Perception.People.egg-info/requires.txt +9 -0
- winrt_windows_perception_people-2.1.0/all-requirements.txt +0 -8
- winrt_windows_perception_people-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_perception_people-2.1.0/winrt_Windows.Perception.People.egg-info/requires.txt +0 -9
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/README.md +0 -0
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/setup.cfg +0 -0
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/setup.py +0 -0
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/winrt/windows/perception/people/py.typed +0 -0
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/winrt_Windows.Perception.People.egg-info/SOURCES.txt +0 -0
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/winrt_Windows.Perception.People.egg-info/dependency_links.txt +0 -0
- {winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/winrt_Windows.Perception.People.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Perception.People
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,16 +10,16 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Perception[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.UI.Input[all]==2.
|
|
22
|
-
Requires-Dist: winrt-Windows.UI.Input.Spatial[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Perception[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.2.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.UI.Input[all]==2.2.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.UI.Input.Spatial[all]==2.2.0; extra == "all"
|
|
23
23
|
|
|
24
24
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
25
25
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
4
|
+
winrt-Windows.Foundation.Numerics[all]==2.2.0
|
|
5
|
+
winrt-Windows.Perception[all]==2.2.0
|
|
6
|
+
winrt-Windows.Perception.Spatial[all]==2.2.0
|
|
7
|
+
winrt-Windows.UI.Input[all]==2.2.0
|
|
8
|
+
winrt-Windows.UI.Input.Spatial[all]==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Perception.People.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.EyesPose", L"IsSupported", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -58,7 +65,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
58
65
|
{
|
|
59
66
|
try
|
|
60
67
|
{
|
|
61
|
-
|
|
68
|
+
static std::optional<bool> is_overload_present{};
|
|
69
|
+
|
|
70
|
+
if (!is_overload_present.has_value())
|
|
71
|
+
{
|
|
72
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.EyesPose", L"RequestAccessAsync", 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
62
76
|
{
|
|
63
77
|
py::set_arg_count_version_error(0);
|
|
64
78
|
return nullptr;
|
|
@@ -83,7 +97,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
83
97
|
{
|
|
84
98
|
try
|
|
85
99
|
{
|
|
86
|
-
|
|
100
|
+
static std::optional<bool> is_property_present{};
|
|
101
|
+
|
|
102
|
+
if (!is_property_present.has_value())
|
|
103
|
+
{
|
|
104
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.EyesPose", L"Gaze");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (!is_property_present.value())
|
|
87
108
|
{
|
|
88
109
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
89
110
|
return nullptr;
|
|
@@ -102,7 +123,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
102
123
|
{
|
|
103
124
|
try
|
|
104
125
|
{
|
|
105
|
-
|
|
126
|
+
static std::optional<bool> is_property_present{};
|
|
127
|
+
|
|
128
|
+
if (!is_property_present.has_value())
|
|
129
|
+
{
|
|
130
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.EyesPose", L"IsCalibrationValid");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (!is_property_present.value())
|
|
106
134
|
{
|
|
107
135
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
108
136
|
return nullptr;
|
|
@@ -121,7 +149,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
121
149
|
{
|
|
122
150
|
try
|
|
123
151
|
{
|
|
124
|
-
|
|
152
|
+
static std::optional<bool> is_property_present{};
|
|
153
|
+
|
|
154
|
+
if (!is_property_present.has_value())
|
|
155
|
+
{
|
|
156
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.EyesPose", L"UpdateTimestamp");
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (!is_property_present.value())
|
|
125
160
|
{
|
|
126
161
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
127
162
|
return nullptr;
|
|
@@ -240,7 +275,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
240
275
|
{
|
|
241
276
|
try
|
|
242
277
|
{
|
|
243
|
-
|
|
278
|
+
static std::optional<bool> is_overload_present{};
|
|
279
|
+
|
|
280
|
+
if (!is_overload_present.has_value())
|
|
281
|
+
{
|
|
282
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.HandMeshObserver", L"GetTriangleIndices", 0);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (!is_overload_present.value())
|
|
244
286
|
{
|
|
245
287
|
py::set_arg_count_version_error(0);
|
|
246
288
|
return nullptr;
|
|
@@ -272,7 +314,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
272
314
|
{
|
|
273
315
|
try
|
|
274
316
|
{
|
|
275
|
-
|
|
317
|
+
static std::optional<bool> is_overload_present{};
|
|
318
|
+
|
|
319
|
+
if (!is_overload_present.has_value())
|
|
320
|
+
{
|
|
321
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.HandMeshObserver", L"GetVertexStateForPose", 1);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
if (!is_overload_present.value())
|
|
276
325
|
{
|
|
277
326
|
py::set_arg_count_version_error(1);
|
|
278
327
|
return nullptr;
|
|
@@ -299,7 +348,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
299
348
|
{
|
|
300
349
|
try
|
|
301
350
|
{
|
|
302
|
-
|
|
351
|
+
static std::optional<bool> is_property_present{};
|
|
352
|
+
|
|
353
|
+
if (!is_property_present.has_value())
|
|
354
|
+
{
|
|
355
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HandMeshObserver", L"ModelId");
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (!is_property_present.value())
|
|
303
359
|
{
|
|
304
360
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
305
361
|
return nullptr;
|
|
@@ -318,7 +374,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
318
374
|
{
|
|
319
375
|
try
|
|
320
376
|
{
|
|
321
|
-
|
|
377
|
+
static std::optional<bool> is_property_present{};
|
|
378
|
+
|
|
379
|
+
if (!is_property_present.has_value())
|
|
380
|
+
{
|
|
381
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HandMeshObserver", L"NeutralPose");
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
if (!is_property_present.value())
|
|
322
385
|
{
|
|
323
386
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
324
387
|
return nullptr;
|
|
@@ -337,7 +400,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
337
400
|
{
|
|
338
401
|
try
|
|
339
402
|
{
|
|
340
|
-
|
|
403
|
+
static std::optional<bool> is_property_present{};
|
|
404
|
+
|
|
405
|
+
if (!is_property_present.has_value())
|
|
406
|
+
{
|
|
407
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HandMeshObserver", L"NeutralPoseVersion");
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if (!is_property_present.value())
|
|
341
411
|
{
|
|
342
412
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
343
413
|
return nullptr;
|
|
@@ -356,7 +426,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
356
426
|
{
|
|
357
427
|
try
|
|
358
428
|
{
|
|
359
|
-
|
|
429
|
+
static std::optional<bool> is_property_present{};
|
|
430
|
+
|
|
431
|
+
if (!is_property_present.has_value())
|
|
432
|
+
{
|
|
433
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HandMeshObserver", L"Source");
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
if (!is_property_present.value())
|
|
360
437
|
{
|
|
361
438
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
362
439
|
return nullptr;
|
|
@@ -375,7 +452,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
375
452
|
{
|
|
376
453
|
try
|
|
377
454
|
{
|
|
378
|
-
|
|
455
|
+
static std::optional<bool> is_property_present{};
|
|
456
|
+
|
|
457
|
+
if (!is_property_present.has_value())
|
|
458
|
+
{
|
|
459
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HandMeshObserver", L"TriangleIndexCount");
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
if (!is_property_present.value())
|
|
379
463
|
{
|
|
380
464
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
381
465
|
return nullptr;
|
|
@@ -394,7 +478,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
394
478
|
{
|
|
395
479
|
try
|
|
396
480
|
{
|
|
397
|
-
|
|
481
|
+
static std::optional<bool> is_property_present{};
|
|
482
|
+
|
|
483
|
+
if (!is_property_present.has_value())
|
|
484
|
+
{
|
|
485
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HandMeshObserver", L"VertexCount");
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
if (!is_property_present.value())
|
|
398
489
|
{
|
|
399
490
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
400
491
|
return nullptr;
|
|
@@ -491,7 +582,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
491
582
|
{
|
|
492
583
|
try
|
|
493
584
|
{
|
|
494
|
-
|
|
585
|
+
static std::optional<bool> is_overload_present{};
|
|
586
|
+
|
|
587
|
+
if (!is_overload_present.has_value())
|
|
588
|
+
{
|
|
589
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.HandMeshVertexState", L"GetVertices", 0);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
if (!is_overload_present.value())
|
|
495
593
|
{
|
|
496
594
|
py::set_arg_count_version_error(0);
|
|
497
595
|
return nullptr;
|
|
@@ -519,7 +617,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
519
617
|
{
|
|
520
618
|
try
|
|
521
619
|
{
|
|
522
|
-
|
|
620
|
+
static std::optional<bool> is_property_present{};
|
|
621
|
+
|
|
622
|
+
if (!is_property_present.has_value())
|
|
623
|
+
{
|
|
624
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HandMeshVertexState", L"CoordinateSystem");
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
if (!is_property_present.value())
|
|
523
628
|
{
|
|
524
629
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
525
630
|
return nullptr;
|
|
@@ -538,7 +643,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
538
643
|
{
|
|
539
644
|
try
|
|
540
645
|
{
|
|
541
|
-
|
|
646
|
+
static std::optional<bool> is_property_present{};
|
|
647
|
+
|
|
648
|
+
if (!is_property_present.has_value())
|
|
649
|
+
{
|
|
650
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HandMeshVertexState", L"UpdateTimestamp");
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
if (!is_property_present.value())
|
|
542
654
|
{
|
|
543
655
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
544
656
|
return nullptr;
|
|
@@ -630,7 +742,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
630
742
|
{
|
|
631
743
|
try
|
|
632
744
|
{
|
|
633
|
-
|
|
745
|
+
static std::optional<bool> is_overload_present{};
|
|
746
|
+
|
|
747
|
+
if (!is_overload_present.has_value())
|
|
748
|
+
{
|
|
749
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.HandPose", L"GetRelativeJoint", 2);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
if (!is_overload_present.value())
|
|
634
753
|
{
|
|
635
754
|
py::set_arg_count_version_error(2);
|
|
636
755
|
return nullptr;
|
|
@@ -662,7 +781,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
662
781
|
{
|
|
663
782
|
try
|
|
664
783
|
{
|
|
665
|
-
|
|
784
|
+
static std::optional<bool> is_overload_present{};
|
|
785
|
+
|
|
786
|
+
if (!is_overload_present.has_value())
|
|
787
|
+
{
|
|
788
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.HandPose", L"GetRelativeJoints", 2);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
if (!is_overload_present.value())
|
|
666
792
|
{
|
|
667
793
|
py::set_arg_count_version_error(2);
|
|
668
794
|
return nullptr;
|
|
@@ -696,7 +822,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
696
822
|
{
|
|
697
823
|
try
|
|
698
824
|
{
|
|
699
|
-
|
|
825
|
+
static std::optional<bool> is_overload_present{};
|
|
826
|
+
|
|
827
|
+
if (!is_overload_present.has_value())
|
|
828
|
+
{
|
|
829
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.HandPose", L"TryGetJoint", 2);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
if (!is_overload_present.value())
|
|
700
833
|
{
|
|
701
834
|
py::set_arg_count_version_error(2);
|
|
702
835
|
return nullptr;
|
|
@@ -741,7 +874,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
741
874
|
{
|
|
742
875
|
try
|
|
743
876
|
{
|
|
744
|
-
|
|
877
|
+
static std::optional<bool> is_overload_present{};
|
|
878
|
+
|
|
879
|
+
if (!is_overload_present.has_value())
|
|
880
|
+
{
|
|
881
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.People.HandPose", L"TryGetJoints", 2);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
if (!is_overload_present.value())
|
|
745
885
|
{
|
|
746
886
|
py::set_arg_count_version_error(2);
|
|
747
887
|
return nullptr;
|
|
@@ -840,7 +980,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
840
980
|
{
|
|
841
981
|
try
|
|
842
982
|
{
|
|
843
|
-
|
|
983
|
+
static std::optional<bool> is_property_present{};
|
|
984
|
+
|
|
985
|
+
if (!is_property_present.has_value())
|
|
986
|
+
{
|
|
987
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HeadPose", L"ForwardDirection");
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
if (!is_property_present.value())
|
|
844
991
|
{
|
|
845
992
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
846
993
|
return nullptr;
|
|
@@ -859,7 +1006,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
859
1006
|
{
|
|
860
1007
|
try
|
|
861
1008
|
{
|
|
862
|
-
|
|
1009
|
+
static std::optional<bool> is_property_present{};
|
|
1010
|
+
|
|
1011
|
+
if (!is_property_present.has_value())
|
|
1012
|
+
{
|
|
1013
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HeadPose", L"Position");
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
if (!is_property_present.value())
|
|
863
1017
|
{
|
|
864
1018
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
865
1019
|
return nullptr;
|
|
@@ -878,7 +1032,14 @@ namespace py::cpp::Windows::Perception::People
|
|
|
878
1032
|
{
|
|
879
1033
|
try
|
|
880
1034
|
{
|
|
881
|
-
|
|
1035
|
+
static std::optional<bool> is_property_present{};
|
|
1036
|
+
|
|
1037
|
+
if (!is_property_present.has_value())
|
|
1038
|
+
{
|
|
1039
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.People.HeadPose", L"UpDirection");
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
if (!is_property_present.value())
|
|
882
1043
|
{
|
|
883
1044
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
884
1045
|
return nullptr;
|
|
@@ -1124,6 +1285,23 @@ namespace py::cpp::Windows::Perception::People
|
|
|
1124
1285
|
}
|
|
1125
1286
|
}
|
|
1126
1287
|
|
|
1288
|
+
static PyObject* _repr_HandMeshVertex(PyObject* self) noexcept
|
|
1289
|
+
{
|
|
1290
|
+
py::pyobj_handle Position{PyObject_GetAttrString(self, "position")};
|
|
1291
|
+
if (!Position)
|
|
1292
|
+
{
|
|
1293
|
+
return nullptr;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
py::pyobj_handle Normal{PyObject_GetAttrString(self, "normal")};
|
|
1297
|
+
if (!Normal)
|
|
1298
|
+
{
|
|
1299
|
+
return nullptr;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
return PyUnicode_FromFormat("HandMeshVertex(position=%R, normal=%R)", Position.get(), Normal.get());
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1127
1305
|
static PyType_Slot _type_slots_HandMeshVertex[] = {
|
|
1128
1306
|
{ Py_tp_new, reinterpret_cast<void*>(_new_HandMeshVertex) },
|
|
1129
1307
|
{ Py_tp_init, reinterpret_cast<void*>(_init_HandMeshVertex) },
|
|
@@ -1131,6 +1309,7 @@ namespace py::cpp::Windows::Perception::People
|
|
|
1131
1309
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_HandMeshVertex) },
|
|
1132
1310
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_HandMeshVertex) },
|
|
1133
1311
|
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_HandMeshVertex) },
|
|
1312
|
+
{ Py_tp_repr, reinterpret_cast<void*>(_repr_HandMeshVertex) },
|
|
1134
1313
|
{ }
|
|
1135
1314
|
};
|
|
1136
1315
|
|
|
@@ -1392,6 +1571,35 @@ namespace py::cpp::Windows::Perception::People
|
|
|
1392
1571
|
}
|
|
1393
1572
|
}
|
|
1394
1573
|
|
|
1574
|
+
static PyObject* _repr_JointPose(PyObject* self) noexcept
|
|
1575
|
+
{
|
|
1576
|
+
py::pyobj_handle Orientation{PyObject_GetAttrString(self, "orientation")};
|
|
1577
|
+
if (!Orientation)
|
|
1578
|
+
{
|
|
1579
|
+
return nullptr;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
py::pyobj_handle Position{PyObject_GetAttrString(self, "position")};
|
|
1583
|
+
if (!Position)
|
|
1584
|
+
{
|
|
1585
|
+
return nullptr;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
py::pyobj_handle Radius{PyObject_GetAttrString(self, "radius")};
|
|
1589
|
+
if (!Radius)
|
|
1590
|
+
{
|
|
1591
|
+
return nullptr;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
py::pyobj_handle Accuracy{PyObject_GetAttrString(self, "accuracy")};
|
|
1595
|
+
if (!Accuracy)
|
|
1596
|
+
{
|
|
1597
|
+
return nullptr;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
return PyUnicode_FromFormat("JointPose(orientation=%R, position=%R, radius=%R, accuracy=%R)", Orientation.get(), Position.get(), Radius.get(), Accuracy.get());
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1395
1603
|
static PyType_Slot _type_slots_JointPose[] = {
|
|
1396
1604
|
{ Py_tp_new, reinterpret_cast<void*>(_new_JointPose) },
|
|
1397
1605
|
{ Py_tp_init, reinterpret_cast<void*>(_init_JointPose) },
|
|
@@ -1399,6 +1607,7 @@ namespace py::cpp::Windows::Perception::People
|
|
|
1399
1607
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_JointPose) },
|
|
1400
1608
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_JointPose) },
|
|
1401
1609
|
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_JointPose) },
|
|
1610
|
+
{ Py_tp_repr, reinterpret_cast<void*>(_repr_JointPose) },
|
|
1402
1611
|
{ }
|
|
1403
1612
|
};
|
|
1404
1613
|
|
|
@@ -1460,37 +1669,44 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_people(void) noexcept
|
|
|
1460
1669
|
return nullptr;
|
|
1461
1670
|
}
|
|
1462
1671
|
|
|
1463
|
-
|
|
1672
|
+
py::pytype_handle EyesPose_type{py::register_python_type(module.get(), &type_spec_EyesPose, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_EyesPose_Static.get()))};
|
|
1673
|
+
if (!EyesPose_type)
|
|
1464
1674
|
{
|
|
1465
1675
|
return nullptr;
|
|
1466
1676
|
}
|
|
1467
1677
|
|
|
1468
|
-
|
|
1678
|
+
py::pytype_handle HandMeshObserver_type{py::register_python_type(module.get(), &type_spec_HandMeshObserver, object_bases.get(), nullptr)};
|
|
1679
|
+
if (!HandMeshObserver_type)
|
|
1469
1680
|
{
|
|
1470
1681
|
return nullptr;
|
|
1471
1682
|
}
|
|
1472
1683
|
|
|
1473
|
-
|
|
1684
|
+
py::pytype_handle HandMeshVertexState_type{py::register_python_type(module.get(), &type_spec_HandMeshVertexState, object_bases.get(), nullptr)};
|
|
1685
|
+
if (!HandMeshVertexState_type)
|
|
1474
1686
|
{
|
|
1475
1687
|
return nullptr;
|
|
1476
1688
|
}
|
|
1477
1689
|
|
|
1478
|
-
|
|
1690
|
+
py::pytype_handle HandPose_type{py::register_python_type(module.get(), &type_spec_HandPose, object_bases.get(), nullptr)};
|
|
1691
|
+
if (!HandPose_type)
|
|
1479
1692
|
{
|
|
1480
1693
|
return nullptr;
|
|
1481
1694
|
}
|
|
1482
1695
|
|
|
1483
|
-
|
|
1696
|
+
py::pytype_handle HeadPose_type{py::register_python_type(module.get(), &type_spec_HeadPose, object_bases.get(), nullptr)};
|
|
1697
|
+
if (!HeadPose_type)
|
|
1484
1698
|
{
|
|
1485
1699
|
return nullptr;
|
|
1486
1700
|
}
|
|
1487
1701
|
|
|
1488
|
-
|
|
1702
|
+
py::pytype_handle HandMeshVertex_type{py::register_python_type(module.get(), &type_spec_HandMeshVertex, nullptr, nullptr)};
|
|
1703
|
+
if (!HandMeshVertex_type)
|
|
1489
1704
|
{
|
|
1490
1705
|
return nullptr;
|
|
1491
1706
|
}
|
|
1492
1707
|
|
|
1493
|
-
|
|
1708
|
+
py::pytype_handle JointPose_type{py::register_python_type(module.get(), &type_spec_JointPose, nullptr, nullptr)};
|
|
1709
|
+
if (!JointPose_type)
|
|
1494
1710
|
{
|
|
1495
1711
|
return nullptr;
|
|
1496
1712
|
}
|
{winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/pyproject.toml
RENAMED
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
{winrt_windows_perception_people-2.1.0 → winrt_windows_perception_people-2.2.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -25,8 +25,6 @@ class HandMeshVertex:
|
|
|
25
25
|
position: windows_foundation_numerics.Vector3
|
|
26
26
|
normal: windows_foundation_numerics.Vector3
|
|
27
27
|
def __init__(self, position: windows_foundation_numerics.Vector3, normal: windows_foundation_numerics.Vector3) -> None: ...
|
|
28
|
-
def __eq__(self, other: object, /) -> bool: ...
|
|
29
|
-
def __ne__(self, other: object, /) -> bool: ...
|
|
30
28
|
|
|
31
29
|
@typing.final
|
|
32
30
|
class JointPose:
|
|
@@ -35,8 +33,6 @@ class JointPose:
|
|
|
35
33
|
radius: winrt.system.Single
|
|
36
34
|
accuracy: JointPoseAccuracy
|
|
37
35
|
def __init__(self, orientation: windows_foundation_numerics.Quaternion, position: windows_foundation_numerics.Vector3, radius: winrt.system.Single, accuracy: JointPoseAccuracy) -> None: ...
|
|
38
|
-
def __eq__(self, other: object, /) -> bool: ...
|
|
39
|
-
def __ne__(self, other: object, /) -> bool: ...
|
|
40
36
|
|
|
41
37
|
@typing.final
|
|
42
38
|
class EyesPose_Static(type):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Perception.People
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,16 +10,16 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Perception[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.UI.Input[all]==2.
|
|
22
|
-
Requires-Dist: winrt-Windows.UI.Input.Spatial[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Perception[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.2.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.UI.Input[all]==2.2.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.UI.Input.Spatial[all]==2.2.0; extra == "all"
|
|
23
23
|
|
|
24
24
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
25
25
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
winrt-runtime==2.2.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
5
|
+
winrt-Windows.Foundation.Numerics[all]==2.2.0
|
|
6
|
+
winrt-Windows.Perception[all]==2.2.0
|
|
7
|
+
winrt-Windows.Perception.Spatial[all]==2.2.0
|
|
8
|
+
winrt-Windows.UI.Input[all]==2.2.0
|
|
9
|
+
winrt-Windows.UI.Input.Spatial[all]==2.2.0
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
4
|
-
winrt-Windows.Foundation.Numerics[all]==2.1.0
|
|
5
|
-
winrt-Windows.Perception[all]==2.1.0
|
|
6
|
-
winrt-Windows.Perception.Spatial[all]==2.1.0
|
|
7
|
-
winrt-Windows.UI.Input[all]==2.1.0
|
|
8
|
-
winrt-Windows.UI.Input.Spatial[all]==2.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.1.0
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
5
|
-
winrt-Windows.Foundation.Numerics[all]==2.1.0
|
|
6
|
-
winrt-Windows.Perception[all]==2.1.0
|
|
7
|
-
winrt-Windows.Perception.Spatial[all]==2.1.0
|
|
8
|
-
winrt-Windows.UI.Input[all]==2.1.0
|
|
9
|
-
winrt-Windows.UI.Input.Spatial[all]==2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|