winrt-Microsoft.WindowsAppSDK.AI 4!2.5.1__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.
Files changed (44) hide show
  1. winrt/microsoft/graphics/imaging/__init__.py +12 -0
  2. winrt/microsoft/graphics/imaging/__init__.pyi +60 -0
  3. winrt/microsoft/graphics/imaging/_table.pywinrt +0 -0
  4. winrt/microsoft/graphics/imaging/py.typed +0 -0
  5. winrt/microsoft/windows/ai/__init__.py +15 -0
  6. winrt/microsoft/windows/ai/__init__.pyi +64 -0
  7. winrt/microsoft/windows/ai/_table.pywinrt +0 -0
  8. winrt/microsoft/windows/ai/contentsafety/__init__.py +14 -0
  9. winrt/microsoft/windows/ai/contentsafety/__init__.pyi +105 -0
  10. winrt/microsoft/windows/ai/contentsafety/_table.pywinrt +0 -0
  11. winrt/microsoft/windows/ai/contentsafety/py.typed +0 -0
  12. winrt/microsoft/windows/ai/foundation/__init__.py +11 -0
  13. winrt/microsoft/windows/ai/foundation/__init__.pyi +24 -0
  14. winrt/microsoft/windows/ai/foundation/_table.pywinrt +0 -0
  15. winrt/microsoft/windows/ai/foundation/py.typed +0 -0
  16. winrt/microsoft/windows/ai/imaging/__init__.py +24 -0
  17. winrt/microsoft/windows/ai/imaging/__init__.pyi +250 -0
  18. winrt/microsoft/windows/ai/imaging/_table.pywinrt +0 -0
  19. winrt/microsoft/windows/ai/imaging/py.typed +0 -0
  20. winrt/microsoft/windows/ai/py.typed +0 -0
  21. winrt/microsoft/windows/ai/text/__init__.py +29 -0
  22. winrt/microsoft/windows/ai/text/__init__.pyi +350 -0
  23. winrt/microsoft/windows/ai/text/_table.pywinrt +0 -0
  24. winrt/microsoft/windows/ai/text/py.typed +0 -0
  25. winrt/microsoft/windows/ai/video/__init__.py +14 -0
  26. winrt/microsoft/windows/ai/video/__init__.pyi +70 -0
  27. winrt/microsoft/windows/ai/video/_table.pywinrt +0 -0
  28. winrt/microsoft/windows/ai/video/py.typed +0 -0
  29. winrt/microsoft/windows/semanticsearch/__init__.py +11 -0
  30. winrt/microsoft/windows/semanticsearch/__init__.pyi +24 -0
  31. winrt/microsoft/windows/semanticsearch/_table.pywinrt +0 -0
  32. winrt/microsoft/windows/semanticsearch/py.typed +0 -0
  33. winrt/microsoft/windows/vision/__init__.py +12 -0
  34. winrt/microsoft/windows/vision/__init__.pyi +40 -0
  35. winrt/microsoft/windows/vision/_table.pywinrt +0 -0
  36. winrt/microsoft/windows/vision/py.typed +0 -0
  37. winrt/microsoft/windows/workloads/__init__.py +11 -0
  38. winrt/microsoft/windows/workloads/__init__.pyi +15 -0
  39. winrt/microsoft/windows/workloads/_table.pywinrt +0 -0
  40. winrt/microsoft/windows/workloads/py.typed +0 -0
  41. winrt_microsoft_windowsappsdk_ai-4!2.5.1.dist-info/METADATA +70 -0
  42. winrt_microsoft_windowsappsdk_ai-4!2.5.1.dist-info/RECORD +44 -0
  43. winrt_microsoft_windowsappsdk_ai-4!2.5.1.dist-info/WHEEL +4 -0
  44. winrt_microsoft_windowsappsdk_ai-4!2.5.1.dist-info/licenses/LICENSE +22 -0
@@ -0,0 +1,12 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "ImageBufferPixelFormat",
10
+ "ImageBuffer",
11
+ ]
12
+
@@ -0,0 +1,60 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import enum
4
+ import types
5
+ import typing
6
+ from builtins import property as _property
7
+
8
+ import winrt.system
9
+ import winrt.windows.foundation as windows_foundation
10
+ import winrt.windows.graphics.imaging as windows_graphics_imaging
11
+ import winrt.windows.storage.streams as windows_storage_streams
12
+
13
+ __all__ = [
14
+ "ImageBufferPixelFormat",
15
+ "ImageBuffer",
16
+ ]
17
+
18
+ class ImageBufferPixelFormat(enum.IntEnum):
19
+ RGB8 = 137224
20
+ RGBA8 = 30
21
+ ARGB8 = 2498570
22
+ BGRA8 = 87
23
+ GRAY8 = 62
24
+ BGR8 = 137352
25
+
26
+ @typing.final
27
+ class ImageBuffer_Static(winrt.system.Object_Static):
28
+ # Microsoft.Graphics.Imaging.ImageBuffer Microsoft.Graphics.Imaging.ImageBuffer::CreateForBuffer(Windows.Storage.Streams.IBuffer,Microsoft.Graphics.Imaging.ImageBufferPixelFormat,System.Int32,System.Int32,System.Int32)
29
+ def create_for_buffer(cls, buffer: winrt.system.ReadableBuffer, pixel_format: ImageBufferPixelFormat, width: winrt.system.Int32 | typing.SupportsIndex, height: winrt.system.Int32 | typing.SupportsIndex, row_stride: winrt.system.Int32 | typing.SupportsIndex, /) -> ImageBuffer: ...
30
+ # Microsoft.Graphics.Imaging.ImageBuffer Microsoft.Graphics.Imaging.ImageBuffer::CreateForSoftwareBitmap(Windows.Graphics.Imaging.SoftwareBitmap)
31
+ def create_for_software_bitmap(cls, software_bitmap: windows_graphics_imaging.SoftwareBitmap, /) -> ImageBuffer: ...
32
+
33
+ @typing.final
34
+ class ImageBuffer(windows_foundation.IClosable, winrt.system.Object, metaclass=ImageBuffer_Static):
35
+ def __enter__(self) -> typing.Self: ...
36
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
37
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
38
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
39
+ # System.Void Microsoft.Graphics.Imaging.ImageBuffer::Close()
40
+ def close(self) -> None: ...
41
+ # System.Void Microsoft.Graphics.Imaging.ImageBuffer::CopyToByteArray(System.Byte[])
42
+ def copy_to_byte_array(self, values: winrt.system.Array[winrt.system.UInt8] | winrt.system.WriteableBuffer, /) -> None: ...
43
+ # Windows.Graphics.Imaging.SoftwareBitmap Microsoft.Graphics.Imaging.ImageBuffer::CopyToSoftwareBitmap()
44
+ def copy_to_software_bitmap(self) -> windows_graphics_imaging.SoftwareBitmap: ...
45
+ # Windows.Storage.Streams.IBuffer Microsoft.Graphics.Imaging.ImageBuffer::get_Buffer()
46
+ @_property
47
+ def buffer(self) -> windows_storage_streams.IBuffer: ...
48
+ # Microsoft.Graphics.Imaging.ImageBufferPixelFormat Microsoft.Graphics.Imaging.ImageBuffer::get_PixelFormat()
49
+ @_property
50
+ def pixel_format(self) -> ImageBufferPixelFormat: ...
51
+ # System.Int32 Microsoft.Graphics.Imaging.ImageBuffer::get_PixelHeight()
52
+ @_property
53
+ def pixel_height(self) -> winrt.system.Int32: ...
54
+ # System.Int32 Microsoft.Graphics.Imaging.ImageBuffer::get_PixelWidth()
55
+ @_property
56
+ def pixel_width(self) -> winrt.system.Int32: ...
57
+ # System.Int32 Microsoft.Graphics.Imaging.ImageBuffer::get_RowStride()
58
+ @_property
59
+ def row_stride(self) -> winrt.system.Int32: ...
60
+
File without changes
@@ -0,0 +1,15 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "AICapabilityCategory",
10
+ "AIFeatureReadyResultState",
11
+ "AIFeatureReadyState",
12
+ "AICapabilities",
13
+ "AIFeatureReadyResult",
14
+ ]
15
+
@@ -0,0 +1,64 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import enum
4
+ import typing
5
+ from builtins import property as _property
6
+
7
+ import winrt.system
8
+ import winrt.windows.foundation as windows_foundation
9
+
10
+ __all__ = [
11
+ "AICapabilityCategory",
12
+ "AIFeatureReadyResultState",
13
+ "AIFeatureReadyState",
14
+ "AICapabilities",
15
+ "AIFeatureReadyResult",
16
+ ]
17
+
18
+ class AICapabilityCategory(enum.IntEnum):
19
+ COPILOT_PLUS_PC = 0
20
+
21
+ class AIFeatureReadyResultState(enum.IntEnum):
22
+ IN_PROGRESS = 0
23
+ SUCCESS = 1
24
+ FAILURE = 2
25
+
26
+ class AIFeatureReadyState(enum.IntEnum):
27
+ READY = 0
28
+ NOT_READY = 1
29
+ NOT_SUPPORTED_ON_CURRENT_SYSTEM = 2
30
+ DISABLED_BY_USER = 3
31
+ CAPABILITY_MISSING = 4
32
+ NOT_COMPATIBLE_WITH_SYSTEM_HARDWARE = 5
33
+ OS_UPDATE_NEEDED = 6
34
+
35
+ @typing.final
36
+ class AICapabilities_Static(winrt.system.Object_Static):
37
+ # System.Boolean Microsoft.Windows.AI.AICapabilities::HasAICapability(Microsoft.Windows.AI.AICapabilityCategory)
38
+ def has_a_i_capability(cls, category: AICapabilityCategory, /) -> bool: ...
39
+
40
+ @typing.final
41
+ class AICapabilities(winrt.system.Object, metaclass=AICapabilities_Static):
42
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
43
+ """A class of static members only, so there is nothing to create."""
44
+
45
+ @typing.final
46
+ class AIFeatureReadyResult(winrt.system.Object):
47
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
48
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
49
+ # Windows.Foundation.HResult Microsoft.Windows.AI.AIFeatureReadyResult::get_Error()
50
+ @_property
51
+ def error(self) -> windows_foundation.HResult: ...
52
+ # System.String Microsoft.Windows.AI.AIFeatureReadyResult::get_ErrorDisplayText()
53
+ @_property
54
+ def error_display_text(self) -> str: ...
55
+ # Windows.Foundation.HResult Microsoft.Windows.AI.AIFeatureReadyResult::get_ExtendedError()
56
+ @_property
57
+ def extended_error(self) -> windows_foundation.HResult: ...
58
+ # Microsoft.Windows.AI.AIFeatureReadyResultState Microsoft.Windows.AI.AIFeatureReadyResult::get_Status()
59
+ @_property
60
+ def status(self) -> AIFeatureReadyResultState: ...
61
+ # System.Boolean Microsoft.Windows.AI.AIFeatureReadyResult::get_PackageInstallationFailed()
62
+ @_property
63
+ def package_installation_failed(self) -> bool: ...
64
+
@@ -0,0 +1,14 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "SeverityLevel",
10
+ "ContentFilterOptions",
11
+ "ImageContentFilterSeverity",
12
+ "TextContentFilterSeverity",
13
+ ]
14
+
@@ -0,0 +1,105 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import enum
4
+ import typing
5
+ from builtins import property as _property
6
+
7
+ import winrt.system
8
+
9
+ __all__ = [
10
+ "SeverityLevel",
11
+ "ContentFilterOptions",
12
+ "ImageContentFilterSeverity",
13
+ "TextContentFilterSeverity",
14
+ ]
15
+
16
+ class SeverityLevel(enum.IntEnum):
17
+ MINIMUM = 10
18
+ LOW = 11
19
+ MEDIUM = 12
20
+ HIGH = 13
21
+
22
+ @typing.final
23
+ class ContentFilterOptions(winrt.system.Object):
24
+ def __new__(cls) -> typing.Self: ...
25
+ # Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity Microsoft.Windows.AI.ContentSafety.ContentFilterOptions::get_ResponseMaxAllowedSeverityLevel()
26
+ @_property
27
+ def response_max_allowed_severity_level(self) -> TextContentFilterSeverity: ...
28
+ # System.Void Microsoft.Windows.AI.ContentSafety.ContentFilterOptions::put_ResponseMaxAllowedSeverityLevel(Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity)
29
+ @response_max_allowed_severity_level.setter
30
+ def response_max_allowed_severity_level(self, value: TextContentFilterSeverity) -> None: ...
31
+ # Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity Microsoft.Windows.AI.ContentSafety.ContentFilterOptions::get_PromptMaxAllowedSeverityLevel()
32
+ @_property
33
+ def prompt_max_allowed_severity_level(self) -> TextContentFilterSeverity: ...
34
+ # System.Void Microsoft.Windows.AI.ContentSafety.ContentFilterOptions::put_PromptMaxAllowedSeverityLevel(Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity)
35
+ @prompt_max_allowed_severity_level.setter
36
+ def prompt_max_allowed_severity_level(self, value: TextContentFilterSeverity) -> None: ...
37
+ # Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity Microsoft.Windows.AI.ContentSafety.ContentFilterOptions::get_ImageMaxAllowedSeverityLevel()
38
+ @_property
39
+ def image_max_allowed_severity_level(self) -> ImageContentFilterSeverity: ...
40
+ # System.Void Microsoft.Windows.AI.ContentSafety.ContentFilterOptions::put_ImageMaxAllowedSeverityLevel(Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity)
41
+ @image_max_allowed_severity_level.setter
42
+ def image_max_allowed_severity_level(self, value: ImageContentFilterSeverity) -> None: ...
43
+
44
+ @typing.final
45
+ class ImageContentFilterSeverity(winrt.system.Object):
46
+ @typing.overload
47
+ def __new__(cls, severity_for_a_ll_categories: SeverityLevel, /) -> typing.Self: ...
48
+ @typing.overload
49
+ def __new__(cls) -> typing.Self: ...
50
+ # Microsoft.Windows.AI.ContentSafety.SeverityLevel Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity::get_ViolentContentLevel()
51
+ @_property
52
+ def violent_content_level(self) -> SeverityLevel: ...
53
+ # System.Void Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity::put_ViolentContentLevel(Microsoft.Windows.AI.ContentSafety.SeverityLevel)
54
+ @violent_content_level.setter
55
+ def violent_content_level(self, value: SeverityLevel) -> None: ...
56
+ # Microsoft.Windows.AI.ContentSafety.SeverityLevel Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity::get_RacyContentLevel()
57
+ @_property
58
+ def racy_content_level(self) -> SeverityLevel: ...
59
+ # System.Void Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity::put_RacyContentLevel(Microsoft.Windows.AI.ContentSafety.SeverityLevel)
60
+ @racy_content_level.setter
61
+ def racy_content_level(self, value: SeverityLevel) -> None: ...
62
+ # Microsoft.Windows.AI.ContentSafety.SeverityLevel Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity::get_GoryContentLevel()
63
+ @_property
64
+ def gory_content_level(self) -> SeverityLevel: ...
65
+ # System.Void Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity::put_GoryContentLevel(Microsoft.Windows.AI.ContentSafety.SeverityLevel)
66
+ @gory_content_level.setter
67
+ def gory_content_level(self, value: SeverityLevel) -> None: ...
68
+ # Microsoft.Windows.AI.ContentSafety.SeverityLevel Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity::get_AdultContentLevel()
69
+ @_property
70
+ def adult_content_level(self) -> SeverityLevel: ...
71
+ # System.Void Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity::put_AdultContentLevel(Microsoft.Windows.AI.ContentSafety.SeverityLevel)
72
+ @adult_content_level.setter
73
+ def adult_content_level(self, value: SeverityLevel) -> None: ...
74
+
75
+ @typing.final
76
+ class TextContentFilterSeverity(winrt.system.Object):
77
+ @typing.overload
78
+ def __new__(cls, severity_for_all_categories: SeverityLevel, /) -> typing.Self: ...
79
+ @typing.overload
80
+ def __new__(cls) -> typing.Self: ...
81
+ # Microsoft.Windows.AI.ContentSafety.SeverityLevel Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity::get_Violent()
82
+ @_property
83
+ def violent(self) -> SeverityLevel: ...
84
+ # System.Void Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity::put_Violent(Microsoft.Windows.AI.ContentSafety.SeverityLevel)
85
+ @violent.setter
86
+ def violent(self, value: SeverityLevel) -> None: ...
87
+ # Microsoft.Windows.AI.ContentSafety.SeverityLevel Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity::get_Sexual()
88
+ @_property
89
+ def sexual(self) -> SeverityLevel: ...
90
+ # System.Void Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity::put_Sexual(Microsoft.Windows.AI.ContentSafety.SeverityLevel)
91
+ @sexual.setter
92
+ def sexual(self, value: SeverityLevel) -> None: ...
93
+ # Microsoft.Windows.AI.ContentSafety.SeverityLevel Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity::get_SelfHarm()
94
+ @_property
95
+ def self_harm(self) -> SeverityLevel: ...
96
+ # System.Void Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity::put_SelfHarm(Microsoft.Windows.AI.ContentSafety.SeverityLevel)
97
+ @self_harm.setter
98
+ def self_harm(self, value: SeverityLevel) -> None: ...
99
+ # Microsoft.Windows.AI.ContentSafety.SeverityLevel Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity::get_Hate()
100
+ @_property
101
+ def hate(self) -> SeverityLevel: ...
102
+ # System.Void Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity::put_Hate(Microsoft.Windows.AI.ContentSafety.SeverityLevel)
103
+ @hate.setter
104
+ def hate(self, value: SeverityLevel) -> None: ...
105
+
File without changes
@@ -0,0 +1,11 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "EmbeddingVector",
10
+ ]
11
+
@@ -0,0 +1,24 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import typing
4
+ import uuid as _uuid
5
+ from builtins import property as _property
6
+
7
+ import winrt.system
8
+
9
+ __all__ = [
10
+ "EmbeddingVector",
11
+ ]
12
+
13
+ @typing.final
14
+ class EmbeddingVector(winrt.system.Object):
15
+ def __new__(cls, data: winrt.system.Array[winrt.system.Single] | winrt.system.ReadableBuffer, vector_space_id: _uuid.UUID, /) -> typing.Self: ...
16
+ # System.Void Microsoft.Windows.AI.Foundation.EmbeddingVector::GetValues(System.Single[])
17
+ def get_values(self, values: winrt.system.Array[winrt.system.Single] | winrt.system.WriteableBuffer, /) -> None: ...
18
+ # System.UInt32 Microsoft.Windows.AI.Foundation.EmbeddingVector::get_Size()
19
+ @_property
20
+ def size(self) -> winrt.system.UInt32: ...
21
+ # System.Guid Microsoft.Windows.AI.Foundation.EmbeddingVector::get_VectorSpaceId()
22
+ @_property
23
+ def vector_space_id(self) -> _uuid.UUID: ...
24
+
File without changes
@@ -0,0 +1,24 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "ImageDescriptionKind",
10
+ "ImageDescriptionResultStatus",
11
+ "RecognizedLineStyle",
12
+ "RecognizedTextBoundingBox",
13
+ "ImageDescriptionGenerator",
14
+ "ImageDescriptionResult",
15
+ "ImageObjectExtractor",
16
+ "ImageObjectExtractorHint",
17
+ "ImageObjectRemover",
18
+ "ImageScaler",
19
+ "RecognizedLine",
20
+ "RecognizedText",
21
+ "RecognizedWord",
22
+ "TextRecognizer",
23
+ ]
24
+
@@ -0,0 +1,250 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import collections.abc as _cabc
4
+ import enum
5
+ import types
6
+ import typing
7
+ from builtins import property as _property
8
+
9
+ import winrt.system
10
+ import winrt.microsoft.graphics.imaging as microsoft_graphics_imaging
11
+ import winrt.microsoft.windows.ai as microsoft_windows_ai
12
+ import winrt.microsoft.windows.ai.contentsafety as microsoft_windows_ai_contentsafety
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.graphics as windows_graphics
16
+ import winrt.windows.graphics.imaging as windows_graphics_imaging
17
+
18
+ __all__ = [
19
+ "ImageDescriptionKind",
20
+ "ImageDescriptionResultStatus",
21
+ "RecognizedLineStyle",
22
+ "RecognizedTextBoundingBox",
23
+ "ImageDescriptionGenerator",
24
+ "ImageDescriptionResult",
25
+ "ImageObjectExtractor",
26
+ "ImageObjectExtractorHint",
27
+ "ImageObjectRemover",
28
+ "ImageScaler",
29
+ "RecognizedLine",
30
+ "RecognizedText",
31
+ "RecognizedWord",
32
+ "TextRecognizer",
33
+ ]
34
+
35
+ class ImageDescriptionKind(enum.IntEnum):
36
+ BRIEF_DESCRIPTION = 0
37
+ DETAILED_DESCRIPTION = 1
38
+ DIAGRAM_DESCRIPTION = 2
39
+ ACCESSIBLE_DESCRIPTION = 3
40
+
41
+ class ImageDescriptionResultStatus(enum.IntEnum):
42
+ COMPLETE = 0
43
+ IN_PROGRESS = 1
44
+ BLOCKED_BY_POLICY = 2
45
+ IMAGE_BLOCKED_BY_CONTENT_MODERATION = 3
46
+ TEXT_IN_IMAGE_BLOCKED_BY_CONTENT_MODERATION = 4
47
+ DESCRIPTION_TEXT_BLOCKED_BY_CONTENT_MODERATION = 5
48
+ IMAGE_HAS_TOO_MUCH_TEXT = 6
49
+ INTERNAL_ERROR = 7
50
+
51
+ class RecognizedLineStyle(enum.IntEnum):
52
+ HANDWRITTEN = 0
53
+
54
+ @typing.final
55
+ class RecognizedTextBoundingBox:
56
+ __match_args__ = ("bottom_left", "bottom_right", "top_left", "top_right")
57
+ @_property
58
+ def bottom_left(self) -> windows_foundation.Point: ...
59
+ @_property
60
+ def bottom_right(self) -> windows_foundation.Point: ...
61
+ @_property
62
+ def top_left(self) -> windows_foundation.Point: ...
63
+ @_property
64
+ def top_right(self) -> windows_foundation.Point: ...
65
+ def __new__(cls, bottom_left: windows_foundation.Point | tuple[winrt.system.Single, winrt.system.Single] = ..., bottom_right: windows_foundation.Point | tuple[winrt.system.Single, winrt.system.Single] = ..., top_left: windows_foundation.Point | tuple[winrt.system.Single, winrt.system.Single] = ..., top_right: windows_foundation.Point | tuple[winrt.system.Single, winrt.system.Single] = ...) -> RecognizedTextBoundingBox: ...
66
+ def __replace__(self, /, **changes: typing.Any) -> RecognizedTextBoundingBox: ...
67
+ def unpack(self) -> tuple[tuple[winrt.system.Single, winrt.system.Single], tuple[winrt.system.Single, winrt.system.Single], tuple[winrt.system.Single, winrt.system.Single], tuple[winrt.system.Single, winrt.system.Single]]: ...
68
+
69
+ @typing.final
70
+ class ImageDescriptionGenerator_Static(winrt.system.Object_Static):
71
+ # Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator> Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator::CreateAsync()
72
+ def create_async(cls) -> windows_foundation.IAsyncOperation[ImageDescriptionGenerator]: ...
73
+ # Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.AIFeatureReadyResult,System.Double> Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator::EnsureReadyAsync()
74
+ def ensure_ready_async(cls) -> windows_foundation.IAsyncOperationWithProgress[microsoft_windows_ai.AIFeatureReadyResult, winrt.system.Double]: ...
75
+ # Microsoft.Windows.AI.AIFeatureReadyState Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator::GetReadyState()
76
+ def get_ready_state(cls) -> microsoft_windows_ai.AIFeatureReadyState: ...
77
+
78
+ @typing.final
79
+ class ImageDescriptionGenerator(windows_foundation.IClosable, winrt.system.Object, metaclass=ImageDescriptionGenerator_Static):
80
+ def __enter__(self) -> typing.Self: ...
81
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
82
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
83
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
84
+ # System.Void Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator::Close()
85
+ def close(self) -> None: ...
86
+ # Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.Imaging.ImageDescriptionResult,System.String> Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator::DescribeAsync(Microsoft.Graphics.Imaging.ImageBuffer,Microsoft.Windows.AI.Imaging.ImageDescriptionKind,Microsoft.Windows.AI.ContentSafety.ContentFilterOptions)
87
+ def describe_async(self, image: microsoft_graphics_imaging.ImageBuffer, kind: ImageDescriptionKind, content_filter_options: microsoft_windows_ai_contentsafety.ContentFilterOptions, /) -> windows_foundation.IAsyncOperationWithProgress[ImageDescriptionResult, str]: ...
88
+
89
+ @typing.final
90
+ class ImageDescriptionResult(winrt.system.Object):
91
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
92
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
93
+ # System.String Microsoft.Windows.AI.Imaging.ImageDescriptionResult::get_Description()
94
+ @_property
95
+ def description(self) -> str: ...
96
+ # Microsoft.Windows.AI.Imaging.ImageDescriptionResultStatus Microsoft.Windows.AI.Imaging.ImageDescriptionResult::get_Status()
97
+ @_property
98
+ def status(self) -> ImageDescriptionResultStatus: ...
99
+
100
+ @typing.final
101
+ class ImageObjectExtractor_Static(winrt.system.Object_Static):
102
+ # Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.Imaging.ImageObjectExtractor> Microsoft.Windows.AI.Imaging.ImageObjectExtractor::CreateWithImageBufferAsync(Microsoft.Graphics.Imaging.ImageBuffer)
103
+ def create_with_image_buffer_async(cls, image_buffer: microsoft_graphics_imaging.ImageBuffer, /) -> windows_foundation.IAsyncOperation[ImageObjectExtractor]: ...
104
+ # Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.Imaging.ImageObjectExtractor> Microsoft.Windows.AI.Imaging.ImageObjectExtractor::CreateWithSoftwareBitmapAsync(Windows.Graphics.Imaging.SoftwareBitmap)
105
+ def create_with_software_bitmap_async(cls, software_bitmap: windows_graphics_imaging.SoftwareBitmap, /) -> windows_foundation.IAsyncOperation[ImageObjectExtractor]: ...
106
+ # Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.AIFeatureReadyResult,System.Double> Microsoft.Windows.AI.Imaging.ImageObjectExtractor::EnsureReadyAsync()
107
+ def ensure_ready_async(cls) -> windows_foundation.IAsyncOperationWithProgress[microsoft_windows_ai.AIFeatureReadyResult, winrt.system.Double]: ...
108
+ # Microsoft.Windows.AI.AIFeatureReadyState Microsoft.Windows.AI.Imaging.ImageObjectExtractor::GetReadyState()
109
+ def get_ready_state(cls) -> microsoft_windows_ai.AIFeatureReadyState: ...
110
+
111
+ @typing.final
112
+ class ImageObjectExtractor(windows_foundation.IClosable, winrt.system.Object, metaclass=ImageObjectExtractor_Static):
113
+ def __enter__(self) -> typing.Self: ...
114
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
115
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
116
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
117
+ # System.Void Microsoft.Windows.AI.Imaging.ImageObjectExtractor::Close()
118
+ def close(self) -> None: ...
119
+ # Microsoft.Graphics.Imaging.ImageBuffer Microsoft.Windows.AI.Imaging.ImageObjectExtractor::GetImageBufferObjectMask(Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint)
120
+ def get_image_buffer_object_mask(self, hint: ImageObjectExtractorHint, /) -> microsoft_graphics_imaging.ImageBuffer: ...
121
+ # Windows.Graphics.Imaging.SoftwareBitmap Microsoft.Windows.AI.Imaging.ImageObjectExtractor::GetSoftwareBitmapObjectMask(Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint)
122
+ def get_software_bitmap_object_mask(self, hint: ImageObjectExtractorHint, /) -> windows_graphics_imaging.SoftwareBitmap: ...
123
+
124
+ @typing.final
125
+ class ImageObjectExtractorHint(winrt.system.Object):
126
+ def __new__(cls, include_rects: _cabc.MutableSequence[windows_graphics.RectInt32], include_points: _cabc.MutableSequence[windows_graphics.PointInt32], exclude_points: _cabc.MutableSequence[windows_graphics.PointInt32], /) -> typing.Self: ...
127
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Graphics.PointInt32> Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint::get_ExcludePoints()
128
+ @_property
129
+ def exclude_points(self) -> _cabc.Sequence[windows_graphics.PointInt32]: ...
130
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Graphics.PointInt32> Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint::get_IncludePoints()
131
+ @_property
132
+ def include_points(self) -> _cabc.Sequence[windows_graphics.PointInt32]: ...
133
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Graphics.RectInt32> Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint::get_IncludeRects()
134
+ @_property
135
+ def include_rects(self) -> _cabc.Sequence[windows_graphics.RectInt32]: ...
136
+
137
+ @typing.final
138
+ class ImageObjectRemover_Static(winrt.system.Object_Static):
139
+ # Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.Imaging.ImageObjectRemover> Microsoft.Windows.AI.Imaging.ImageObjectRemover::CreateAsync()
140
+ def create_async(cls) -> windows_foundation.IAsyncOperation[ImageObjectRemover]: ...
141
+ # Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.AIFeatureReadyResult,System.Double> Microsoft.Windows.AI.Imaging.ImageObjectRemover::EnsureReadyAsync()
142
+ def ensure_ready_async(cls) -> windows_foundation.IAsyncOperationWithProgress[microsoft_windows_ai.AIFeatureReadyResult, winrt.system.Double]: ...
143
+ # Microsoft.Windows.AI.AIFeatureReadyState Microsoft.Windows.AI.Imaging.ImageObjectRemover::GetReadyState()
144
+ def get_ready_state(cls) -> microsoft_windows_ai.AIFeatureReadyState: ...
145
+
146
+ @typing.final
147
+ class ImageObjectRemover(windows_foundation.IClosable, winrt.system.Object, metaclass=ImageObjectRemover_Static):
148
+ def __enter__(self) -> typing.Self: ...
149
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
150
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
151
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
152
+ # System.Void Microsoft.Windows.AI.Imaging.ImageObjectRemover::Close()
153
+ def close(self) -> None: ...
154
+ # Microsoft.Graphics.Imaging.ImageBuffer Microsoft.Windows.AI.Imaging.ImageObjectRemover::RemoveFromImageBuffer(Microsoft.Graphics.Imaging.ImageBuffer,Microsoft.Graphics.Imaging.ImageBuffer)
155
+ def remove_from_image_buffer(self, image_buffer: microsoft_graphics_imaging.ImageBuffer, image_buffer_mask: microsoft_graphics_imaging.ImageBuffer, /) -> microsoft_graphics_imaging.ImageBuffer: ...
156
+ # Windows.Graphics.Imaging.SoftwareBitmap Microsoft.Windows.AI.Imaging.ImageObjectRemover::RemoveFromSoftwareBitmap(Windows.Graphics.Imaging.SoftwareBitmap,Windows.Graphics.Imaging.SoftwareBitmap)
157
+ def remove_from_software_bitmap(self, software_bitmap: windows_graphics_imaging.SoftwareBitmap, software_bitmap_mask: windows_graphics_imaging.SoftwareBitmap, /) -> windows_graphics_imaging.SoftwareBitmap: ...
158
+
159
+ @typing.final
160
+ class ImageScaler_Static(winrt.system.Object_Static):
161
+ # Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.Imaging.ImageScaler> Microsoft.Windows.AI.Imaging.ImageScaler::CreateAsync()
162
+ def create_async(cls) -> windows_foundation.IAsyncOperation[ImageScaler]: ...
163
+ # Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.AIFeatureReadyResult,System.Double> Microsoft.Windows.AI.Imaging.ImageScaler::EnsureReadyAsync()
164
+ def ensure_ready_async(cls) -> windows_foundation.IAsyncOperationWithProgress[microsoft_windows_ai.AIFeatureReadyResult, winrt.system.Double]: ...
165
+ # Microsoft.Windows.AI.AIFeatureReadyState Microsoft.Windows.AI.Imaging.ImageScaler::GetReadyState()
166
+ def get_ready_state(cls) -> microsoft_windows_ai.AIFeatureReadyState: ...
167
+
168
+ @typing.final
169
+ class ImageScaler(windows_foundation.IClosable, winrt.system.Object, metaclass=ImageScaler_Static):
170
+ def __enter__(self) -> typing.Self: ...
171
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
172
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
173
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
174
+ # System.Void Microsoft.Windows.AI.Imaging.ImageScaler::Close()
175
+ def close(self) -> None: ...
176
+ # Microsoft.Graphics.Imaging.ImageBuffer Microsoft.Windows.AI.Imaging.ImageScaler::ScaleImageBuffer(Microsoft.Graphics.Imaging.ImageBuffer,System.Int32,System.Int32)
177
+ def scale_image_buffer(self, image_buffer: microsoft_graphics_imaging.ImageBuffer, width: winrt.system.Int32 | typing.SupportsIndex, height: winrt.system.Int32 | typing.SupportsIndex, /) -> microsoft_graphics_imaging.ImageBuffer: ...
178
+ # Windows.Graphics.Imaging.SoftwareBitmap Microsoft.Windows.AI.Imaging.ImageScaler::ScaleSoftwareBitmap(Windows.Graphics.Imaging.SoftwareBitmap,System.Int32,System.Int32)
179
+ def scale_software_bitmap(self, software_bitmap: windows_graphics_imaging.SoftwareBitmap, width: winrt.system.Int32 | typing.SupportsIndex, height: winrt.system.Int32 | typing.SupportsIndex, /) -> windows_graphics_imaging.SoftwareBitmap: ...
180
+ # System.Int32 Microsoft.Windows.AI.Imaging.ImageScaler::get_MaxSupportedScaleFactor()
181
+ @_property
182
+ def max_supported_scale_factor(self) -> winrt.system.Int32: ...
183
+
184
+ @typing.final
185
+ class RecognizedLine(winrt.system.Object):
186
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
187
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
188
+ # Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox Microsoft.Windows.AI.Imaging.RecognizedLine::get_BoundingBox()
189
+ @_property
190
+ def bounding_box(self) -> RecognizedTextBoundingBox: ...
191
+ # System.Single Microsoft.Windows.AI.Imaging.RecognizedLine::get_LineStyleConfidence()
192
+ @_property
193
+ def line_style_confidence(self) -> winrt.system.Single: ...
194
+ # Microsoft.Windows.AI.Imaging.RecognizedLineStyle Microsoft.Windows.AI.Imaging.RecognizedLine::get_Style()
195
+ @_property
196
+ def style(self) -> RecognizedLineStyle: ...
197
+ # System.String Microsoft.Windows.AI.Imaging.RecognizedLine::get_Text()
198
+ @_property
199
+ def text(self) -> str: ...
200
+ # Microsoft.Windows.AI.Imaging.RecognizedWord[] Microsoft.Windows.AI.Imaging.RecognizedLine::get_Words()
201
+ @_property
202
+ def words(self) -> winrt.system.Array[RecognizedWord]: ...
203
+
204
+ @typing.final
205
+ class RecognizedText(winrt.system.Object):
206
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
207
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
208
+ # Microsoft.Windows.AI.Imaging.RecognizedLine[] Microsoft.Windows.AI.Imaging.RecognizedText::get_Lines()
209
+ @_property
210
+ def lines(self) -> winrt.system.Array[RecognizedLine]: ...
211
+ # System.Single Microsoft.Windows.AI.Imaging.RecognizedText::get_TextAngle()
212
+ @_property
213
+ def text_angle(self) -> winrt.system.Single: ...
214
+
215
+ @typing.final
216
+ class RecognizedWord(winrt.system.Object):
217
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
218
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
219
+ # Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox Microsoft.Windows.AI.Imaging.RecognizedWord::get_BoundingBox()
220
+ @_property
221
+ def bounding_box(self) -> RecognizedTextBoundingBox: ...
222
+ # System.Single Microsoft.Windows.AI.Imaging.RecognizedWord::get_MatchConfidence()
223
+ @_property
224
+ def match_confidence(self) -> winrt.system.Single: ...
225
+ # System.String Microsoft.Windows.AI.Imaging.RecognizedWord::get_Text()
226
+ @_property
227
+ def text(self) -> str: ...
228
+
229
+ @typing.final
230
+ class TextRecognizer_Static(winrt.system.Object_Static):
231
+ # Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.Imaging.TextRecognizer> Microsoft.Windows.AI.Imaging.TextRecognizer::CreateAsync()
232
+ def create_async(cls) -> windows_foundation.IAsyncOperation[TextRecognizer]: ...
233
+ # Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.AIFeatureReadyResult,System.Double> Microsoft.Windows.AI.Imaging.TextRecognizer::EnsureReadyAsync()
234
+ def ensure_ready_async(cls) -> windows_foundation.IAsyncOperationWithProgress[microsoft_windows_ai.AIFeatureReadyResult, winrt.system.Double]: ...
235
+ # Microsoft.Windows.AI.AIFeatureReadyState Microsoft.Windows.AI.Imaging.TextRecognizer::GetReadyState()
236
+ def get_ready_state(cls) -> microsoft_windows_ai.AIFeatureReadyState: ...
237
+
238
+ @typing.final
239
+ class TextRecognizer(windows_foundation.IClosable, winrt.system.Object, metaclass=TextRecognizer_Static):
240
+ def __enter__(self) -> typing.Self: ...
241
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
242
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
243
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
244
+ # System.Void Microsoft.Windows.AI.Imaging.TextRecognizer::Close()
245
+ def close(self) -> None: ...
246
+ # Microsoft.Windows.AI.Imaging.RecognizedText Microsoft.Windows.AI.Imaging.TextRecognizer::RecognizeTextFromImage(Microsoft.Graphics.Imaging.ImageBuffer)
247
+ def recognize_text_from_image(self, image_buffer: microsoft_graphics_imaging.ImageBuffer, /) -> RecognizedText: ...
248
+ # Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.Imaging.RecognizedText> Microsoft.Windows.AI.Imaging.TextRecognizer::RecognizeTextFromImageAsync(Microsoft.Graphics.Imaging.ImageBuffer)
249
+ def recognize_text_from_image_async(self, image_buffer: microsoft_graphics_imaging.ImageBuffer, /) -> windows_foundation.IAsyncOperation[RecognizedText]: ...
250
+
File without changes
File without changes
@@ -0,0 +1,29 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "GenerateStructuredJsonResponseStatus",
10
+ "InputKind",
11
+ "LanguageModelResponseStatus",
12
+ "TextRewriteTone",
13
+ "ConversationItem",
14
+ "ConversationSummaryOptions",
15
+ "GenerateStructuredJsonResponseResult",
16
+ "LanguageModel",
17
+ "LanguageModelContext",
18
+ "LanguageModelEmbeddingVectorResult",
19
+ "LanguageModelLowRankAdapter",
20
+ "LanguageModelLowRankAdapterResult",
21
+ "LanguageModelOptions",
22
+ "LanguageModelResponseResult",
23
+ "TextRewriter",
24
+ "TextSummarizer",
25
+ "TextToTableConverter",
26
+ "TextToTableResponseResult",
27
+ "TextToTableRow",
28
+ ]
29
+