win32more-Microsoft.WindowsAppSDK 0.6.1.7.250310001__py2.py3-none-any.whl → 0.7.1.7.251107005__py2.py3-none-any.whl
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.
- win32more/Microsoft/Foundation/__init__.py +1 -1
- win32more/Microsoft/Graphics/DirectX/__init__.py +1 -1
- win32more/Microsoft/Graphics/Display/__init__.py +9 -9
- win32more/Microsoft/Graphics/Imaging/__init__.py +77 -0
- win32more/Microsoft/Security/Authentication/OAuth/__init__.py +111 -111
- win32more/Microsoft/UI/Composition/Core/__init__.py +3 -3
- win32more/Microsoft/UI/Composition/Diagnostics/__init__.py +1 -1
- win32more/Microsoft/UI/Composition/Effects/__init__.py +3 -3
- win32more/Microsoft/UI/Composition/Interactions/__init__.py +1 -1
- win32more/Microsoft/UI/Composition/Scenes/__init__.py +10 -10
- win32more/Microsoft/UI/Composition/SystemBackdrops/__init__.py +8 -8
- win32more/Microsoft/UI/Composition/__init__.py +134 -134
- win32more/Microsoft/UI/Content/__init__.py +39 -39
- win32more/Microsoft/UI/Dispatching/__init__.py +11 -11
- win32more/Microsoft/UI/Input/DragDrop/__init__.py +7 -7
- win32more/Microsoft/UI/Input/Interop/__init__.py +1 -1
- win32more/Microsoft/UI/Input/__init__.py +103 -99
- win32more/Microsoft/UI/System/__init__.py +5 -5
- win32more/Microsoft/UI/Text/__init__.py +30 -30
- win32more/Microsoft/UI/Windowing/__init__.py +27 -27
- win32more/Microsoft/UI/Xaml/Automation/Peers/__init__.py +56 -55
- win32more/Microsoft/UI/Xaml/Automation/Provider/__init__.py +19 -19
- win32more/Microsoft/UI/Xaml/Automation/Text/__init__.py +1 -1
- win32more/Microsoft/UI/Xaml/Automation/__init__.py +41 -41
- win32more/Microsoft/UI/Xaml/Controls/AnimatedVisuals/__init__.py +17 -17
- win32more/Microsoft/UI/Xaml/Controls/Primitives/__init__.py +108 -107
- win32more/Microsoft/UI/Xaml/Controls/__init__.py +744 -744
- win32more/Microsoft/UI/Xaml/Data/__init__.py +31 -30
- win32more/Microsoft/UI/Xaml/Documents/__init__.py +38 -37
- win32more/Microsoft/UI/Xaml/Hosting/__init__.py +7 -7
- win32more/Microsoft/UI/Xaml/Input/__init__.py +38 -31
- win32more/Microsoft/UI/Xaml/Interop/__init__.py +3 -3
- win32more/Microsoft/UI/Xaml/Markup/__init__.py +19 -17
- win32more/Microsoft/UI/Xaml/Media/Animation/__init__.py +111 -109
- win32more/Microsoft/UI/Xaml/Media/Imaging/__init__.py +11 -11
- win32more/Microsoft/UI/Xaml/Media/Media3D/__init__.py +2 -1
- win32more/Microsoft/UI/Xaml/Media/__init__.py +34 -28
- win32more/Microsoft/UI/Xaml/Navigation/__init__.py +1 -1
- win32more/Microsoft/UI/Xaml/Printing/__init__.py +7 -7
- win32more/Microsoft/UI/Xaml/Resources/__init__.py +3 -3
- win32more/Microsoft/UI/Xaml/Shapes/__init__.py +1 -1
- win32more/Microsoft/UI/Xaml/XamlTypeInfo/__init__.py +2 -2
- win32more/Microsoft/UI/Xaml/__init__.py +190 -186
- win32more/Microsoft/UI/__init__.py +8 -5
- win32more/Microsoft/Windows/AI/ContentSafety/__init__.py +197 -0
- win32more/Microsoft/Windows/AI/Imaging/__init__.py +366 -0
- win32more/Microsoft/Windows/AI/Text/__init__.py +261 -0
- win32more/Microsoft/Windows/AI/__init__.py +49 -0
- win32more/Microsoft/Windows/AppLifecycle/__init__.py +21 -21
- win32more/Microsoft/Windows/AppNotifications/Builder/__init__.py +99 -99
- win32more/Microsoft/Windows/AppNotifications/__init__.py +45 -45
- win32more/Microsoft/Windows/ApplicationModel/Background/UniversalBGTask/__init__.py +1 -1
- win32more/Microsoft/Windows/ApplicationModel/Background/__init__.py +7 -7
- win32more/Microsoft/Windows/ApplicationModel/DynamicDependency/__init__.py +22 -21
- win32more/Microsoft/Windows/ApplicationModel/Resources/__init__.py +59 -59
- win32more/Microsoft/Windows/ApplicationModel/WindowsAppRuntime/__init__.py +32 -7
- win32more/Microsoft/Windows/BadgeNotifications/__init__.py +1 -1
- win32more/Microsoft/Windows/Globalization/__init__.py +9 -9
- win32more/Microsoft/Windows/Management/Deployment/__init__.py +86 -85
- win32more/Microsoft/Windows/Media/Capture/__init__.py +1 -1
- win32more/Microsoft/Windows/PushNotifications/__init__.py +6 -5
- win32more/Microsoft/Windows/Security/AccessControl/__init__.py +7 -6
- win32more/Microsoft/Windows/Storage/__init__.py +27 -27
- win32more/Microsoft/Windows/System/Power/__init__.py +23 -12
- win32more/Microsoft/Windows/System/__init__.py +15 -15
- win32more/Microsoft/Windows/Widgets/Feeds/Providers/__init__.py +65 -65
- win32more/Microsoft/Windows/Widgets/Notifications/__init__.py +25 -25
- win32more/Microsoft/Windows/Widgets/Providers/__init__.py +91 -67
- win32more/Microsoft/Windows/Widgets/__init__.py +2 -2
- win32more/Microsoft/Windows/Workloads/__init__.py +11 -0
- win32more/appsdk/versioninfo.py +1 -1
- win32more/dll/arm64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
- win32more/dll/arm64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
- win32more/dll/x64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
- win32more/dll/x64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
- win32more/dll/x86/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
- win32more/dll/x86/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
- win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info/METADATA +6 -0
- win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info/RECORD +81 -0
- {win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/licenses/LICENSE (Microsoft.WindowsAppSDK).txt +1 -1
- win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info/METADATA +0 -6
- win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info/RECORD +0 -75
- {win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/WHEEL +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
|
-
from win32more.
|
|
2
|
+
from win32more._prelude import *
|
|
3
3
|
import win32more.Microsoft.UI
|
|
4
4
|
import win32more.Windows.Foundation
|
|
5
5
|
import win32more.Windows.UI
|
|
@@ -13,7 +13,7 @@ class ColorHelper(ComPtr):
|
|
|
13
13
|
default_interface: win32more.Microsoft.UI.IColorHelper
|
|
14
14
|
_classid_ = 'Microsoft.UI.ColorHelper'
|
|
15
15
|
@winrt_classmethod
|
|
16
|
-
def ToDisplayName(cls: win32more.Microsoft.UI.IColorHelperStatics2, color: win32more.Windows.UI.Color) ->
|
|
16
|
+
def ToDisplayName(cls: win32more.Microsoft.UI.IColorHelperStatics2, color: win32more.Windows.UI.Color) -> hstr: ...
|
|
17
17
|
@winrt_classmethod
|
|
18
18
|
def FromArgb(cls: win32more.Microsoft.UI.IColorHelperStatics, a: Byte, r: Byte, g: Byte, b: Byte) -> win32more.Windows.UI.Color: ...
|
|
19
19
|
class _Colors_Meta_(ComPtr.__class__):
|
|
@@ -446,6 +446,7 @@ class Colors(ComPtr, metaclass=_Colors_Meta_):
|
|
|
446
446
|
_Colors_Meta_.Yellow = property(get_Yellow, None)
|
|
447
447
|
_Colors_Meta_.YellowGreen = property(get_YellowGreen, None)
|
|
448
448
|
class DisplayId(Structure):
|
|
449
|
+
_name_ = 'Microsoft.UI.DisplayId'
|
|
449
450
|
Value: UInt64
|
|
450
451
|
class IClosableNotifier(ComPtr):
|
|
451
452
|
extends: IInspectable
|
|
@@ -462,8 +463,8 @@ class IClosableNotifier(ComPtr):
|
|
|
462
463
|
@winrt_commethod(10)
|
|
463
464
|
def remove_FrameworkClosed(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
|
|
464
465
|
IsClosed = property(get_IsClosed, None)
|
|
465
|
-
Closed = event()
|
|
466
|
-
FrameworkClosed = event()
|
|
466
|
+
Closed = event(add_Closed, remove_Closed)
|
|
467
|
+
FrameworkClosed = event(add_FrameworkClosed, remove_FrameworkClosed)
|
|
467
468
|
class IColorHelper(ComPtr):
|
|
468
469
|
extends: IInspectable
|
|
469
470
|
_classid_ = 'Microsoft.UI.IColorHelper'
|
|
@@ -479,7 +480,7 @@ class IColorHelperStatics2(ComPtr):
|
|
|
479
480
|
_classid_ = 'Microsoft.UI.IColorHelperStatics2'
|
|
480
481
|
_iid_ = Guid('{982a2d93-0ec4-56b7-9c20-0b5c77949066}')
|
|
481
482
|
@winrt_commethod(6)
|
|
482
|
-
def ToDisplayName(self, color: win32more.Windows.UI.Color) ->
|
|
483
|
+
def ToDisplayName(self, color: win32more.Windows.UI.Color) -> hstr: ...
|
|
483
484
|
class IColors(ComPtr):
|
|
484
485
|
extends: IInspectable
|
|
485
486
|
_classid_ = 'Microsoft.UI.IColors'
|
|
@@ -912,8 +913,10 @@ class IColorsStatics(ComPtr):
|
|
|
912
913
|
Yellow = property(get_Yellow, None)
|
|
913
914
|
YellowGreen = property(get_YellowGreen, None)
|
|
914
915
|
class IconId(Structure):
|
|
916
|
+
_name_ = 'Microsoft.UI.IconId'
|
|
915
917
|
Value: UInt64
|
|
916
918
|
class WindowId(Structure):
|
|
919
|
+
_name_ = 'Microsoft.UI.WindowId'
|
|
917
920
|
Value: UInt64
|
|
918
921
|
|
|
919
922
|
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from win32more._prelude import *
|
|
3
|
+
import win32more.Microsoft.Windows.AI.ContentSafety
|
|
4
|
+
class ContentFilterOptions(ComPtr):
|
|
5
|
+
extends: IInspectable
|
|
6
|
+
default_interface: win32more.Microsoft.Windows.AI.ContentSafety.IContentFilterOptions
|
|
7
|
+
_classid_ = 'Microsoft.Windows.AI.ContentSafety.ContentFilterOptions'
|
|
8
|
+
def __init__(self, *args, **kwargs):
|
|
9
|
+
if kwargs:
|
|
10
|
+
super().__init__(**kwargs)
|
|
11
|
+
elif len(args) == 0:
|
|
12
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions.CreateInstance(*args))
|
|
13
|
+
else:
|
|
14
|
+
raise ValueError('no matched constructor')
|
|
15
|
+
@winrt_activatemethod
|
|
16
|
+
def CreateInstance(cls) -> win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions: ...
|
|
17
|
+
@winrt_mixinmethod
|
|
18
|
+
def get_PromptMaxAllowedSeverityLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IContentFilterOptions) -> win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity: ...
|
|
19
|
+
@winrt_mixinmethod
|
|
20
|
+
def put_PromptMaxAllowedSeverityLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IContentFilterOptions, value: win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity) -> Void: ...
|
|
21
|
+
@winrt_mixinmethod
|
|
22
|
+
def get_ResponseMaxAllowedSeverityLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IContentFilterOptions) -> win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity: ...
|
|
23
|
+
@winrt_mixinmethod
|
|
24
|
+
def put_ResponseMaxAllowedSeverityLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IContentFilterOptions, value: win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity) -> Void: ...
|
|
25
|
+
@winrt_mixinmethod
|
|
26
|
+
def get_ImageMaxAllowedSeverityLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IContentFilterOptions) -> win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity: ...
|
|
27
|
+
@winrt_mixinmethod
|
|
28
|
+
def put_ImageMaxAllowedSeverityLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IContentFilterOptions, value: win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity) -> Void: ...
|
|
29
|
+
ImageMaxAllowedSeverityLevel = property(get_ImageMaxAllowedSeverityLevel, put_ImageMaxAllowedSeverityLevel)
|
|
30
|
+
PromptMaxAllowedSeverityLevel = property(get_PromptMaxAllowedSeverityLevel, put_PromptMaxAllowedSeverityLevel)
|
|
31
|
+
ResponseMaxAllowedSeverityLevel = property(get_ResponseMaxAllowedSeverityLevel, put_ResponseMaxAllowedSeverityLevel)
|
|
32
|
+
ContentSafetyContract: UInt32 = 65536
|
|
33
|
+
class IContentFilterOptions(ComPtr):
|
|
34
|
+
extends: IInspectable
|
|
35
|
+
_classid_ = 'Microsoft.Windows.AI.ContentSafety.IContentFilterOptions'
|
|
36
|
+
_iid_ = Guid('{6808be9f-80d2-5136-8a8a-1f5c52c824ad}')
|
|
37
|
+
@winrt_commethod(6)
|
|
38
|
+
def get_PromptMaxAllowedSeverityLevel(self) -> win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity: ...
|
|
39
|
+
@winrt_commethod(7)
|
|
40
|
+
def put_PromptMaxAllowedSeverityLevel(self, value: win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity) -> Void: ...
|
|
41
|
+
@winrt_commethod(8)
|
|
42
|
+
def get_ResponseMaxAllowedSeverityLevel(self) -> win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity: ...
|
|
43
|
+
@winrt_commethod(9)
|
|
44
|
+
def put_ResponseMaxAllowedSeverityLevel(self, value: win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity) -> Void: ...
|
|
45
|
+
@winrt_commethod(10)
|
|
46
|
+
def get_ImageMaxAllowedSeverityLevel(self) -> win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity: ...
|
|
47
|
+
@winrt_commethod(11)
|
|
48
|
+
def put_ImageMaxAllowedSeverityLevel(self, value: win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity) -> Void: ...
|
|
49
|
+
ImageMaxAllowedSeverityLevel = property(get_ImageMaxAllowedSeverityLevel, put_ImageMaxAllowedSeverityLevel)
|
|
50
|
+
PromptMaxAllowedSeverityLevel = property(get_PromptMaxAllowedSeverityLevel, put_PromptMaxAllowedSeverityLevel)
|
|
51
|
+
ResponseMaxAllowedSeverityLevel = property(get_ResponseMaxAllowedSeverityLevel, put_ResponseMaxAllowedSeverityLevel)
|
|
52
|
+
class IImageContentFilterSeverity(ComPtr):
|
|
53
|
+
extends: IInspectable
|
|
54
|
+
_classid_ = 'Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity'
|
|
55
|
+
_iid_ = Guid('{f1563582-c66a-5861-9995-1440b05191ac}')
|
|
56
|
+
@winrt_commethod(6)
|
|
57
|
+
def get_AdultContentLevel(self) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
58
|
+
@winrt_commethod(7)
|
|
59
|
+
def put_AdultContentLevel(self, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
60
|
+
@winrt_commethod(8)
|
|
61
|
+
def get_RacyContentLevel(self) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
62
|
+
@winrt_commethod(9)
|
|
63
|
+
def put_RacyContentLevel(self, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
64
|
+
@winrt_commethod(10)
|
|
65
|
+
def get_GoryContentLevel(self) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
66
|
+
@winrt_commethod(11)
|
|
67
|
+
def put_GoryContentLevel(self, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
68
|
+
@winrt_commethod(12)
|
|
69
|
+
def get_ViolentContentLevel(self) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
70
|
+
@winrt_commethod(13)
|
|
71
|
+
def put_ViolentContentLevel(self, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
72
|
+
AdultContentLevel = property(get_AdultContentLevel, put_AdultContentLevel)
|
|
73
|
+
GoryContentLevel = property(get_GoryContentLevel, put_GoryContentLevel)
|
|
74
|
+
RacyContentLevel = property(get_RacyContentLevel, put_RacyContentLevel)
|
|
75
|
+
ViolentContentLevel = property(get_ViolentContentLevel, put_ViolentContentLevel)
|
|
76
|
+
class IImageContentFilterSeverityFactory(ComPtr):
|
|
77
|
+
extends: IInspectable
|
|
78
|
+
_classid_ = 'Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverityFactory'
|
|
79
|
+
_iid_ = Guid('{ead11457-81b1-5b81-9ca3-c5b04b4df043}')
|
|
80
|
+
@winrt_commethod(6)
|
|
81
|
+
def CreateInstance(self, severityForALlCategories: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity: ...
|
|
82
|
+
class ITextContentFilterSeverity(ComPtr):
|
|
83
|
+
extends: IInspectable
|
|
84
|
+
_classid_ = 'Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity'
|
|
85
|
+
_iid_ = Guid('{68c1ee47-c35c-5f4c-a647-b0c0f64aa0d5}')
|
|
86
|
+
@winrt_commethod(6)
|
|
87
|
+
def get_Hate(self) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
88
|
+
@winrt_commethod(7)
|
|
89
|
+
def put_Hate(self, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
90
|
+
@winrt_commethod(8)
|
|
91
|
+
def get_Sexual(self) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
92
|
+
@winrt_commethod(9)
|
|
93
|
+
def put_Sexual(self, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
94
|
+
@winrt_commethod(10)
|
|
95
|
+
def get_Violent(self) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
96
|
+
@winrt_commethod(11)
|
|
97
|
+
def put_Violent(self, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
98
|
+
@winrt_commethod(12)
|
|
99
|
+
def get_SelfHarm(self) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
100
|
+
@winrt_commethod(13)
|
|
101
|
+
def put_SelfHarm(self, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
102
|
+
Hate = property(get_Hate, put_Hate)
|
|
103
|
+
SelfHarm = property(get_SelfHarm, put_SelfHarm)
|
|
104
|
+
Sexual = property(get_Sexual, put_Sexual)
|
|
105
|
+
Violent = property(get_Violent, put_Violent)
|
|
106
|
+
class ITextContentFilterSeverityFactory(ComPtr):
|
|
107
|
+
extends: IInspectable
|
|
108
|
+
_classid_ = 'Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverityFactory'
|
|
109
|
+
_iid_ = Guid('{e0ca501e-4004-501e-8984-442d091607d4}')
|
|
110
|
+
@winrt_commethod(6)
|
|
111
|
+
def CreateInstance(self, severityForAllCategories: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity: ...
|
|
112
|
+
class ImageContentFilterSeverity(ComPtr):
|
|
113
|
+
extends: IInspectable
|
|
114
|
+
default_interface: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity
|
|
115
|
+
_classid_ = 'Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity'
|
|
116
|
+
def __init__(self, *args, **kwargs):
|
|
117
|
+
if kwargs:
|
|
118
|
+
super().__init__(**kwargs)
|
|
119
|
+
elif len(args) == 0:
|
|
120
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity.CreateInstance(*args))
|
|
121
|
+
elif len(args) == 1:
|
|
122
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity.CreateInstance(*args))
|
|
123
|
+
else:
|
|
124
|
+
raise ValueError('no matched constructor')
|
|
125
|
+
@winrt_overload
|
|
126
|
+
@winrt_activatemethod
|
|
127
|
+
def CreateInstance(cls) -> win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity: ...
|
|
128
|
+
@CreateInstance.register
|
|
129
|
+
@winrt_factorymethod
|
|
130
|
+
def CreateInstance(cls: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverityFactory, severityForALlCategories: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> win32more.Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity: ...
|
|
131
|
+
@winrt_mixinmethod
|
|
132
|
+
def get_AdultContentLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
133
|
+
@winrt_mixinmethod
|
|
134
|
+
def put_AdultContentLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
135
|
+
@winrt_mixinmethod
|
|
136
|
+
def get_RacyContentLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
137
|
+
@winrt_mixinmethod
|
|
138
|
+
def put_RacyContentLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
139
|
+
@winrt_mixinmethod
|
|
140
|
+
def get_GoryContentLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
141
|
+
@winrt_mixinmethod
|
|
142
|
+
def put_GoryContentLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
143
|
+
@winrt_mixinmethod
|
|
144
|
+
def get_ViolentContentLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
145
|
+
@winrt_mixinmethod
|
|
146
|
+
def put_ViolentContentLevel(self: win32more.Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
147
|
+
AdultContentLevel = property(get_AdultContentLevel, put_AdultContentLevel)
|
|
148
|
+
GoryContentLevel = property(get_GoryContentLevel, put_GoryContentLevel)
|
|
149
|
+
RacyContentLevel = property(get_RacyContentLevel, put_RacyContentLevel)
|
|
150
|
+
ViolentContentLevel = property(get_ViolentContentLevel, put_ViolentContentLevel)
|
|
151
|
+
class SeverityLevel(Enum, Int32):
|
|
152
|
+
Minimum = 10
|
|
153
|
+
Low = 11
|
|
154
|
+
Medium = 12
|
|
155
|
+
High = 13
|
|
156
|
+
class TextContentFilterSeverity(ComPtr):
|
|
157
|
+
extends: IInspectable
|
|
158
|
+
default_interface: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity
|
|
159
|
+
_classid_ = 'Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity'
|
|
160
|
+
def __init__(self, *args, **kwargs):
|
|
161
|
+
if kwargs:
|
|
162
|
+
super().__init__(**kwargs)
|
|
163
|
+
elif len(args) == 0:
|
|
164
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity.CreateInstance(*args))
|
|
165
|
+
elif len(args) == 1:
|
|
166
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity.CreateInstance(*args))
|
|
167
|
+
else:
|
|
168
|
+
raise ValueError('no matched constructor')
|
|
169
|
+
@winrt_overload
|
|
170
|
+
@winrt_activatemethod
|
|
171
|
+
def CreateInstance(cls) -> win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity: ...
|
|
172
|
+
@CreateInstance.register
|
|
173
|
+
@winrt_factorymethod
|
|
174
|
+
def CreateInstance(cls: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverityFactory, severityForAllCategories: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> win32more.Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity: ...
|
|
175
|
+
@winrt_mixinmethod
|
|
176
|
+
def get_Hate(self: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
177
|
+
@winrt_mixinmethod
|
|
178
|
+
def put_Hate(self: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
179
|
+
@winrt_mixinmethod
|
|
180
|
+
def get_Sexual(self: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
181
|
+
@winrt_mixinmethod
|
|
182
|
+
def put_Sexual(self: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
183
|
+
@winrt_mixinmethod
|
|
184
|
+
def get_Violent(self: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
185
|
+
@winrt_mixinmethod
|
|
186
|
+
def put_Violent(self: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
187
|
+
@winrt_mixinmethod
|
|
188
|
+
def get_SelfHarm(self: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity) -> win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel: ...
|
|
189
|
+
@winrt_mixinmethod
|
|
190
|
+
def put_SelfHarm(self: win32more.Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity, value: win32more.Microsoft.Windows.AI.ContentSafety.SeverityLevel) -> Void: ...
|
|
191
|
+
Hate = property(get_Hate, put_Hate)
|
|
192
|
+
SelfHarm = property(get_SelfHarm, put_SelfHarm)
|
|
193
|
+
Sexual = property(get_Sexual, put_Sexual)
|
|
194
|
+
Violent = property(get_Violent, put_Violent)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
make_ready(__name__)
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from win32more._prelude import *
|
|
3
|
+
import win32more.Microsoft.Graphics.Imaging
|
|
4
|
+
import win32more.Microsoft.Windows.AI
|
|
5
|
+
import win32more.Microsoft.Windows.AI.ContentSafety
|
|
6
|
+
import win32more.Microsoft.Windows.AI.Imaging
|
|
7
|
+
import win32more.Windows.Foundation
|
|
8
|
+
import win32more.Windows.Foundation.Collections
|
|
9
|
+
import win32more.Windows.Graphics
|
|
10
|
+
import win32more.Windows.Graphics.Imaging
|
|
11
|
+
class IImageDescriptionGenerator(ComPtr):
|
|
12
|
+
extends: IInspectable
|
|
13
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageDescriptionGenerator'
|
|
14
|
+
_iid_ = Guid('{576b989e-9829-5682-91b0-a7110fa7d51e}')
|
|
15
|
+
@winrt_commethod(6)
|
|
16
|
+
def DescribeAsync(self, image: win32more.Microsoft.Graphics.Imaging.ImageBuffer, kind: win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionKind, contentFilterOptions: win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionResult, hstr]: ...
|
|
17
|
+
class IImageDescriptionGeneratorStatics(ComPtr):
|
|
18
|
+
extends: IInspectable
|
|
19
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageDescriptionGeneratorStatics'
|
|
20
|
+
_iid_ = Guid('{5fb50b2a-5700-55a7-b413-6073b4b7f175}')
|
|
21
|
+
@winrt_commethod(6)
|
|
22
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
23
|
+
@winrt_commethod(7)
|
|
24
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
25
|
+
@winrt_commethod(8)
|
|
26
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator]: ...
|
|
27
|
+
class IImageDescriptionResult(ComPtr):
|
|
28
|
+
extends: IInspectable
|
|
29
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageDescriptionResult'
|
|
30
|
+
_iid_ = Guid('{a066dd0c-110b-5275-a635-52bed7519a2f}')
|
|
31
|
+
@winrt_commethod(6)
|
|
32
|
+
def get_Description(self) -> hstr: ...
|
|
33
|
+
@winrt_commethod(7)
|
|
34
|
+
def get_Status(self) -> win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionResultStatus: ...
|
|
35
|
+
Description = property(get_Description, None)
|
|
36
|
+
Status = property(get_Status, None)
|
|
37
|
+
class IImageObjectExtractor(ComPtr):
|
|
38
|
+
extends: IInspectable
|
|
39
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectExtractor'
|
|
40
|
+
_iid_ = Guid('{2919fdc0-d772-5fd9-a8b7-ffb56010c99c}')
|
|
41
|
+
@winrt_commethod(6)
|
|
42
|
+
def GetSoftwareBitmapObjectMask(self, hint: win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
43
|
+
@winrt_commethod(7)
|
|
44
|
+
def GetImageBufferObjectMask(self, hint: win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
45
|
+
class IImageObjectExtractorHint(ComPtr):
|
|
46
|
+
extends: IInspectable
|
|
47
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint'
|
|
48
|
+
_iid_ = Guid('{1bd8d67c-8a7a-5fe7-98a5-cbdfeb509452}')
|
|
49
|
+
@winrt_commethod(6)
|
|
50
|
+
def get_IncludeRects(self) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.RectInt32]: ...
|
|
51
|
+
@winrt_commethod(7)
|
|
52
|
+
def get_IncludePoints(self) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.PointInt32]: ...
|
|
53
|
+
@winrt_commethod(8)
|
|
54
|
+
def get_ExcludePoints(self) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.PointInt32]: ...
|
|
55
|
+
ExcludePoints = property(get_ExcludePoints, None)
|
|
56
|
+
IncludePoints = property(get_IncludePoints, None)
|
|
57
|
+
IncludeRects = property(get_IncludeRects, None)
|
|
58
|
+
class IImageObjectExtractorHintFactory(ComPtr):
|
|
59
|
+
extends: IInspectable
|
|
60
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectExtractorHintFactory'
|
|
61
|
+
_iid_ = Guid('{5028f206-145d-5a70-9a51-e17e60cfbad8}')
|
|
62
|
+
@winrt_commethod(6)
|
|
63
|
+
def CreateInstance(self, includeRects: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.RectInt32], includePoints: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.PointInt32], excludePoints: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.PointInt32]) -> win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint: ...
|
|
64
|
+
class IImageObjectExtractorStatics(ComPtr):
|
|
65
|
+
extends: IInspectable
|
|
66
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics'
|
|
67
|
+
_iid_ = Guid('{38fa261e-2c33-54cb-9e10-98d50685743d}')
|
|
68
|
+
@winrt_commethod(6)
|
|
69
|
+
def CreateWithSoftwareBitmapAsync(self, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractor]: ...
|
|
70
|
+
@winrt_commethod(7)
|
|
71
|
+
def CreateWithImageBufferAsync(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractor]: ...
|
|
72
|
+
@winrt_commethod(8)
|
|
73
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
74
|
+
@winrt_commethod(9)
|
|
75
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
76
|
+
class IImageObjectRemover(ComPtr):
|
|
77
|
+
extends: IInspectable
|
|
78
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectRemover'
|
|
79
|
+
_iid_ = Guid('{cfa20faf-5ae1-5b8c-b0d8-e7c64db59d26}')
|
|
80
|
+
@winrt_commethod(6)
|
|
81
|
+
def RemoveFromSoftwareBitmap(self, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap, softwareBitmapMask: win32more.Windows.Graphics.Imaging.SoftwareBitmap) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
82
|
+
@winrt_commethod(7)
|
|
83
|
+
def RemoveFromImageBuffer(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer, imageBufferMask: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
84
|
+
class IImageObjectRemoverStatics(ComPtr):
|
|
85
|
+
extends: IInspectable
|
|
86
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectRemoverStatics'
|
|
87
|
+
_iid_ = Guid('{cbcbd7e1-5b81-503f-8fcb-66ae1d6e5b9c}')
|
|
88
|
+
@winrt_commethod(6)
|
|
89
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
90
|
+
@winrt_commethod(7)
|
|
91
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
92
|
+
@winrt_commethod(8)
|
|
93
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectRemover]: ...
|
|
94
|
+
class IImageScaler(ComPtr):
|
|
95
|
+
extends: IInspectable
|
|
96
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageScaler'
|
|
97
|
+
_iid_ = Guid('{06eec88e-91c5-5326-8128-2807faafa571}')
|
|
98
|
+
@winrt_commethod(6)
|
|
99
|
+
def ScaleSoftwareBitmap(self, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap, width: Int32, height: Int32) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
100
|
+
@winrt_commethod(7)
|
|
101
|
+
def ScaleImageBuffer(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer, width: Int32, height: Int32) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
102
|
+
@winrt_commethod(8)
|
|
103
|
+
def get_MaxSupportedScaleFactor(self) -> Int32: ...
|
|
104
|
+
MaxSupportedScaleFactor = property(get_MaxSupportedScaleFactor, None)
|
|
105
|
+
class IImageScalerStatics(ComPtr):
|
|
106
|
+
extends: IInspectable
|
|
107
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageScalerStatics'
|
|
108
|
+
_iid_ = Guid('{75380c81-9c7f-544b-9337-6e638cfb464a}')
|
|
109
|
+
@winrt_commethod(6)
|
|
110
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
111
|
+
@winrt_commethod(7)
|
|
112
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
113
|
+
@winrt_commethod(8)
|
|
114
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageScaler]: ...
|
|
115
|
+
class IRecognizedLine(ComPtr):
|
|
116
|
+
extends: IInspectable
|
|
117
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IRecognizedLine'
|
|
118
|
+
_iid_ = Guid('{612a6be6-f6bb-53c9-84ce-f0a5e565faa7}')
|
|
119
|
+
@winrt_commethod(6)
|
|
120
|
+
def get_Text(self) -> hstr: ...
|
|
121
|
+
@winrt_commethod(7)
|
|
122
|
+
def get_BoundingBox(self) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox: ...
|
|
123
|
+
@winrt_commethod(8)
|
|
124
|
+
def get_Words(self) -> ReceiveArray[win32more.Microsoft.Windows.AI.Imaging.RecognizedWord]: ...
|
|
125
|
+
@winrt_commethod(9)
|
|
126
|
+
def get_Style(self) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedLineStyle: ...
|
|
127
|
+
@winrt_commethod(10)
|
|
128
|
+
def get_LineStyleConfidence(self) -> Single: ...
|
|
129
|
+
BoundingBox = property(get_BoundingBox, None)
|
|
130
|
+
LineStyleConfidence = property(get_LineStyleConfidence, None)
|
|
131
|
+
Style = property(get_Style, None)
|
|
132
|
+
Text = property(get_Text, None)
|
|
133
|
+
Words = property(get_Words, None)
|
|
134
|
+
class IRecognizedText(ComPtr):
|
|
135
|
+
extends: IInspectable
|
|
136
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IRecognizedText'
|
|
137
|
+
_iid_ = Guid('{ae4766d3-2924-57a6-b3d3-b866f59b9972}')
|
|
138
|
+
@winrt_commethod(6)
|
|
139
|
+
def get_Lines(self) -> ReceiveArray[win32more.Microsoft.Windows.AI.Imaging.RecognizedLine]: ...
|
|
140
|
+
@winrt_commethod(7)
|
|
141
|
+
def get_TextAngle(self) -> Single: ...
|
|
142
|
+
Lines = property(get_Lines, None)
|
|
143
|
+
TextAngle = property(get_TextAngle, None)
|
|
144
|
+
class IRecognizedWord(ComPtr):
|
|
145
|
+
extends: IInspectable
|
|
146
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IRecognizedWord'
|
|
147
|
+
_iid_ = Guid('{6b53daab-3410-5088-826a-0788a1ee3b52}')
|
|
148
|
+
@winrt_commethod(6)
|
|
149
|
+
def get_Text(self) -> hstr: ...
|
|
150
|
+
@winrt_commethod(7)
|
|
151
|
+
def get_BoundingBox(self) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox: ...
|
|
152
|
+
@winrt_commethod(8)
|
|
153
|
+
def get_MatchConfidence(self) -> Single: ...
|
|
154
|
+
BoundingBox = property(get_BoundingBox, None)
|
|
155
|
+
MatchConfidence = property(get_MatchConfidence, None)
|
|
156
|
+
Text = property(get_Text, None)
|
|
157
|
+
class ITextRecognizer(ComPtr):
|
|
158
|
+
extends: IInspectable
|
|
159
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ITextRecognizer'
|
|
160
|
+
_iid_ = Guid('{be7bf6c0-30f6-570d-bd92-3ffe5665d933}')
|
|
161
|
+
@winrt_commethod(6)
|
|
162
|
+
def RecognizeTextFromImageAsync(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.RecognizedText]: ...
|
|
163
|
+
@winrt_commethod(7)
|
|
164
|
+
def RecognizeTextFromImage(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedText: ...
|
|
165
|
+
class ITextRecognizerStatics(ComPtr):
|
|
166
|
+
extends: IInspectable
|
|
167
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ITextRecognizerStatics'
|
|
168
|
+
_iid_ = Guid('{3788c2fd-e496-53ab-85a7-e54a135824e9}')
|
|
169
|
+
@winrt_commethod(6)
|
|
170
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
171
|
+
@winrt_commethod(7)
|
|
172
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
173
|
+
@winrt_commethod(8)
|
|
174
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.TextRecognizer]: ...
|
|
175
|
+
ImageDescriptionContract: UInt32 = 65536
|
|
176
|
+
class ImageDescriptionGenerator(ComPtr):
|
|
177
|
+
extends: IInspectable
|
|
178
|
+
implements: Tuple[ContextManagerProtocol]
|
|
179
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGenerator
|
|
180
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator'
|
|
181
|
+
@winrt_mixinmethod
|
|
182
|
+
def DescribeAsync(self: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGenerator, image: win32more.Microsoft.Graphics.Imaging.ImageBuffer, kind: win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionKind, contentFilterOptions: win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionResult, hstr]: ...
|
|
183
|
+
@winrt_mixinmethod
|
|
184
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
185
|
+
@winrt_classmethod
|
|
186
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGeneratorStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
187
|
+
@winrt_classmethod
|
|
188
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGeneratorStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
189
|
+
@winrt_classmethod
|
|
190
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGeneratorStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator]: ...
|
|
191
|
+
class ImageDescriptionKind(Enum, Int32):
|
|
192
|
+
BriefDescription = 0
|
|
193
|
+
DetailedDescription = 1
|
|
194
|
+
DiagramDescription = 2
|
|
195
|
+
AccessibleDescription = 3
|
|
196
|
+
class ImageDescriptionResult(ComPtr):
|
|
197
|
+
extends: IInspectable
|
|
198
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionResult
|
|
199
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageDescriptionResult'
|
|
200
|
+
@winrt_mixinmethod
|
|
201
|
+
def get_Description(self: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionResult) -> hstr: ...
|
|
202
|
+
@winrt_mixinmethod
|
|
203
|
+
def get_Status(self: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionResult) -> win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionResultStatus: ...
|
|
204
|
+
Description = property(get_Description, None)
|
|
205
|
+
Status = property(get_Status, None)
|
|
206
|
+
class ImageDescriptionResultStatus(Enum, Int32):
|
|
207
|
+
Complete = 0
|
|
208
|
+
InProgress = 1
|
|
209
|
+
BlockedByPolicy = 2
|
|
210
|
+
ImageBlockedByContentModeration = 3
|
|
211
|
+
TextInImageBlockedByContentModeration = 4
|
|
212
|
+
DescriptionTextBlockedByContentModeration = 5
|
|
213
|
+
ImageHasTooMuchText = 6
|
|
214
|
+
InternalError = 7
|
|
215
|
+
class ImageObjectExtractor(ComPtr):
|
|
216
|
+
extends: IInspectable
|
|
217
|
+
implements: Tuple[ContextManagerProtocol]
|
|
218
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractor
|
|
219
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageObjectExtractor'
|
|
220
|
+
@winrt_mixinmethod
|
|
221
|
+
def GetSoftwareBitmapObjectMask(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractor, hint: win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
222
|
+
@winrt_mixinmethod
|
|
223
|
+
def GetImageBufferObjectMask(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractor, hint: win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
224
|
+
@winrt_mixinmethod
|
|
225
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
226
|
+
@winrt_classmethod
|
|
227
|
+
def CreateWithSoftwareBitmapAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractor]: ...
|
|
228
|
+
@winrt_classmethod
|
|
229
|
+
def CreateWithImageBufferAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractor]: ...
|
|
230
|
+
@winrt_classmethod
|
|
231
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
232
|
+
@winrt_classmethod
|
|
233
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
234
|
+
ImageObjectExtractorContract: UInt32 = 65536
|
|
235
|
+
class ImageObjectExtractorHint(ComPtr):
|
|
236
|
+
extends: IInspectable
|
|
237
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint
|
|
238
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint'
|
|
239
|
+
def __init__(self, *args, **kwargs):
|
|
240
|
+
if kwargs:
|
|
241
|
+
super().__init__(**kwargs)
|
|
242
|
+
elif len(args) == 3:
|
|
243
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint.CreateInstance(*args))
|
|
244
|
+
else:
|
|
245
|
+
raise ValueError('no matched constructor')
|
|
246
|
+
@winrt_factorymethod
|
|
247
|
+
def CreateInstance(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHintFactory, includeRects: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.RectInt32], includePoints: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.PointInt32], excludePoints: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.PointInt32]) -> win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint: ...
|
|
248
|
+
@winrt_mixinmethod
|
|
249
|
+
def get_IncludeRects(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.RectInt32]: ...
|
|
250
|
+
@winrt_mixinmethod
|
|
251
|
+
def get_IncludePoints(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.PointInt32]: ...
|
|
252
|
+
@winrt_mixinmethod
|
|
253
|
+
def get_ExcludePoints(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.PointInt32]: ...
|
|
254
|
+
ExcludePoints = property(get_ExcludePoints, None)
|
|
255
|
+
IncludePoints = property(get_IncludePoints, None)
|
|
256
|
+
IncludeRects = property(get_IncludeRects, None)
|
|
257
|
+
class ImageObjectRemover(ComPtr):
|
|
258
|
+
extends: IInspectable
|
|
259
|
+
implements: Tuple[ContextManagerProtocol]
|
|
260
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemover
|
|
261
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageObjectRemover'
|
|
262
|
+
@winrt_mixinmethod
|
|
263
|
+
def RemoveFromSoftwareBitmap(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemover, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap, softwareBitmapMask: win32more.Windows.Graphics.Imaging.SoftwareBitmap) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
264
|
+
@winrt_mixinmethod
|
|
265
|
+
def RemoveFromImageBuffer(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemover, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer, imageBufferMask: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
266
|
+
@winrt_mixinmethod
|
|
267
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
268
|
+
@winrt_classmethod
|
|
269
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemoverStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
270
|
+
@winrt_classmethod
|
|
271
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemoverStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
272
|
+
@winrt_classmethod
|
|
273
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemoverStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectRemover]: ...
|
|
274
|
+
ImageObjectRemoverContract: UInt32 = 65536
|
|
275
|
+
class ImageScaler(ComPtr):
|
|
276
|
+
extends: IInspectable
|
|
277
|
+
implements: Tuple[ContextManagerProtocol]
|
|
278
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageScaler
|
|
279
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageScaler'
|
|
280
|
+
@winrt_mixinmethod
|
|
281
|
+
def ScaleSoftwareBitmap(self: win32more.Microsoft.Windows.AI.Imaging.IImageScaler, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap, width: Int32, height: Int32) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
282
|
+
@winrt_mixinmethod
|
|
283
|
+
def ScaleImageBuffer(self: win32more.Microsoft.Windows.AI.Imaging.IImageScaler, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer, width: Int32, height: Int32) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
284
|
+
@winrt_mixinmethod
|
|
285
|
+
def get_MaxSupportedScaleFactor(self: win32more.Microsoft.Windows.AI.Imaging.IImageScaler) -> Int32: ...
|
|
286
|
+
@winrt_mixinmethod
|
|
287
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
288
|
+
@winrt_classmethod
|
|
289
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.IImageScalerStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
290
|
+
@winrt_classmethod
|
|
291
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageScalerStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
292
|
+
@winrt_classmethod
|
|
293
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageScalerStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageScaler]: ...
|
|
294
|
+
MaxSupportedScaleFactor = property(get_MaxSupportedScaleFactor, None)
|
|
295
|
+
ImageScalerContract: UInt32 = 65536
|
|
296
|
+
class RecognizedLine(ComPtr):
|
|
297
|
+
extends: IInspectable
|
|
298
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine
|
|
299
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.RecognizedLine'
|
|
300
|
+
@winrt_mixinmethod
|
|
301
|
+
def get_Text(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> hstr: ...
|
|
302
|
+
@winrt_mixinmethod
|
|
303
|
+
def get_BoundingBox(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox: ...
|
|
304
|
+
@winrt_mixinmethod
|
|
305
|
+
def get_Words(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> ReceiveArray[win32more.Microsoft.Windows.AI.Imaging.RecognizedWord]: ...
|
|
306
|
+
@winrt_mixinmethod
|
|
307
|
+
def get_Style(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedLineStyle: ...
|
|
308
|
+
@winrt_mixinmethod
|
|
309
|
+
def get_LineStyleConfidence(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> Single: ...
|
|
310
|
+
BoundingBox = property(get_BoundingBox, None)
|
|
311
|
+
LineStyleConfidence = property(get_LineStyleConfidence, None)
|
|
312
|
+
Style = property(get_Style, None)
|
|
313
|
+
Text = property(get_Text, None)
|
|
314
|
+
Words = property(get_Words, None)
|
|
315
|
+
class RecognizedLineStyle(Enum, Int32):
|
|
316
|
+
Handwritten = 0
|
|
317
|
+
class RecognizedText(ComPtr):
|
|
318
|
+
extends: IInspectable
|
|
319
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IRecognizedText
|
|
320
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.RecognizedText'
|
|
321
|
+
@winrt_mixinmethod
|
|
322
|
+
def get_Lines(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedText) -> ReceiveArray[win32more.Microsoft.Windows.AI.Imaging.RecognizedLine]: ...
|
|
323
|
+
@winrt_mixinmethod
|
|
324
|
+
def get_TextAngle(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedText) -> Single: ...
|
|
325
|
+
Lines = property(get_Lines, None)
|
|
326
|
+
TextAngle = property(get_TextAngle, None)
|
|
327
|
+
class RecognizedTextBoundingBox(Structure):
|
|
328
|
+
_name_ = 'Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox'
|
|
329
|
+
BottomLeft: win32more.Windows.Foundation.Point
|
|
330
|
+
BottomRight: win32more.Windows.Foundation.Point
|
|
331
|
+
TopLeft: win32more.Windows.Foundation.Point
|
|
332
|
+
TopRight: win32more.Windows.Foundation.Point
|
|
333
|
+
class RecognizedWord(ComPtr):
|
|
334
|
+
extends: IInspectable
|
|
335
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IRecognizedWord
|
|
336
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.RecognizedWord'
|
|
337
|
+
@winrt_mixinmethod
|
|
338
|
+
def get_Text(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedWord) -> hstr: ...
|
|
339
|
+
@winrt_mixinmethod
|
|
340
|
+
def get_BoundingBox(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedWord) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox: ...
|
|
341
|
+
@winrt_mixinmethod
|
|
342
|
+
def get_MatchConfidence(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedWord) -> Single: ...
|
|
343
|
+
BoundingBox = property(get_BoundingBox, None)
|
|
344
|
+
MatchConfidence = property(get_MatchConfidence, None)
|
|
345
|
+
Text = property(get_Text, None)
|
|
346
|
+
TextRecognitionContract: UInt32 = 65536
|
|
347
|
+
class TextRecognizer(ComPtr):
|
|
348
|
+
extends: IInspectable
|
|
349
|
+
implements: Tuple[ContextManagerProtocol]
|
|
350
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizer
|
|
351
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.TextRecognizer'
|
|
352
|
+
@winrt_mixinmethod
|
|
353
|
+
def RecognizeTextFromImageAsync(self: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizer, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.RecognizedText]: ...
|
|
354
|
+
@winrt_mixinmethod
|
|
355
|
+
def RecognizeTextFromImage(self: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizer, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedText: ...
|
|
356
|
+
@winrt_mixinmethod
|
|
357
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
358
|
+
@winrt_classmethod
|
|
359
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizerStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
360
|
+
@winrt_classmethod
|
|
361
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizerStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
362
|
+
@winrt_classmethod
|
|
363
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizerStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.TextRecognizer]: ...
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
make_ready(__name__)
|