activities
latest
false
- 概要
 - Document Processing Contracts
- リリース ノート
 - Document Processing Contracts について
 - Box クラス
 - IPersistedActivity インターフェイス
 - PrettyBoxConverter クラス
 - IClassifierActivity インターフェイス
 - IClassifierCapabilitiesProvider インターフェイス
 - ClassifierDocumentType クラス
 - ClassifierResult クラス
 - ClassifierCodeActivity クラス
 - ClassifierNativeActivity クラス
 - ClassifierAsyncCodeActivity クラス
 - ClassifierDocumentTypeCapability クラス
 - ContentValidationData クラス
 - EvaluatedBusinessRulesForFieldValue クラス
 - EvaluatedBusinessRuleDetails クラス
 - ExtractorAsyncCodeActivity クラス
 - ExtractorCodeActivity クラス
 - ExtractorDocumentType クラス
 - ExtractorDocumentTypeCapabilities クラス
 - ExtractorFieldCapability クラス
 - ExtractorNativeActivity クラス
 - ExtractorResult クラス
 - FieldValue クラス
 - FieldValueResult クラス
 - ICapabilitiesProvider インターフェイス
 - IExtractorActivity インターフェイス
 - ExtractorPayload クラス
 - DocumentActionPriority 列挙型
 - DocumentActionData クラス
 - DocumentActionStatus 列挙型
 - DocumentActionType 列挙型
 - DocumentClassificationActionData クラス
 - DocumentValidationActionData クラス
 - UserData クラス
 - Document クラス
 - DocumentSplittingResult クラス
 - DomExtensions クラス
 - Page クラス
 - PageSection クラス
 - Polygon クラス
 - PolygonConverter クラス
 - Metadata クラス
 - WordGroup クラス
 - Word クラス
 - ProcessingSource 列挙型
 - ResultsTableCell クラス
 - ResultsTableValue クラス
 - ResultsTableColumnInfo クラス
 - ResultsTable クラス
 - Rotation 列挙型
 - ルール クラス
 - RuleResult クラス
 - RuleSet クラス
 - RuleSetResult クラス
 - SectionType 列挙型
 - WordGroupType 列挙型
 - IDocumentTextProjection インターフェイス
 - ClassificationResult クラス
 - ExtractionResult クラス
 - ResultsDocument クラス
 - ResultsDocumentBounds クラス
 - ResultsDataPoint クラス
 - ResultsValue クラス
 - ResultsContentReference クラス
 - ResultsValueTokens クラス
 - ResultsDerivedField クラス
 - ResultsDataSource 列挙型
 - ResultConstants クラス
 - SimpleFieldValue クラス
 - TableFieldValue クラス
 - DocumentGroup クラス
 - DocumentTaxonomy クラス
 - DocumentType クラス
 - Field クラス
 - FieldType 列挙型
 - FieldValueDetails クラス
 - LanguageInfo クラス
 - MetadataEntry クラス
 - TextType 列挙型
 - TypeField クラス
 - ITrackingActivity インターフェイス
 - ITrainableActivity インターフェイス
 - ITrainableClassifierActivity インターフェイス
 - ITrainableExtractorActivity インターフェイス
 - TrainableClassifierAsyncCodeActivity クラス
 - TrainableClassifierCodeActivity クラス
 - TrainableClassifierNativeActivity クラス
 - TrainableExtractorAsyncCodeActivity クラス
 - TrainableExtractorCodeActivity クラス
 - TrainableExtractorNativeActivity クラス
 
 - Document Understanding ML
 - Document Understanding OCR ローカル サーバー
 - Document Understanding
 - IntelligentOCR
- リリース ノート
 - IntelligentOCR アクティビティ パッケージについて
 - プロジェクトの対応 OS
 - 認証を構成する
 - タクソノミーを読み込み
 - ドキュメントをデジタル化
 - ドキュメント分類スコープ
 - キーワード ベースの分類器
 - Document Understanding プロジェクト分類器
 - インテリジェント キーワード分類器
 - ドキュメント分類アクションを作成
 - ドキュメント検証成果物を作成
 - ドキュメント検証成果物を取得
 - ドキュメント分類アクション完了まで待機し再開
 - 分類器トレーニング スコープ
 - キーワード ベースの分類器トレーナー
 - インテリジェント キーワード分類器トレーナー
 - データ抽出スコープ
 - Document Understanding プロジェクト抽出器
 - Document Understanding プロジェクト抽出器トレーナー
 - 正規表現ベースの抽出器
 - フォーム抽出器
 - インテリジェント フォーム抽出器
 - ドキュメントを墨消し
 - ドキュメント検証アクションを作成
 - ドキュメント検証アクション完了まで待機し再開
 - 抽出器トレーニング スコープ
 - 抽出結果をエクスポート
 
 - ML サービス
 - OCR
 - OCR Contracts
- リリース ノート
 - OCR コントラクトについて
 - プロジェクトの対応 OS
 - IOCRActivity インターフェイス
 - OCRAsyncCodeActivity クラス
 - OCRCodeActivity クラス
 - OCRNativeActivity クラス
 - Character クラス
 - OCRResult クラス
 - Word クラス
 - FontStyles 列挙型
 - OCRRotation 列挙型
 - OCRCapabilities クラス
 - OCRScrapeBase クラス
 - OCRScrapeFactory クラス
 - ScrapeControlBase クラス
 - ScrapeEngineUsages 列挙型
 - ScrapeEngineBase
 - ScrapeEngineFactory クラス
 - ScrapeEngineProvider クラス
 
 - OmniPage
 - PDF
 - [リストから削除済] ABBYY
 - [リストから削除済] ABBYY Embedded
 
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。
新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

Document Understanding アクティビティ
最終更新日時 2025年10月28日
メソッド
BeforeExecute(System.Activities.AsyncCodeActivityContext, System.AsyncCallback, object)System.Collections.Generic.Dictionary<string, object>- このメソッドをオーバーライドして、アクティビティのImage引数以外のすべての入力引数を計算および提供し、アクティビティの入力引数をディクショナリとして返します。キーは引数名、値は引数値です。メモ: 設計時にコンテキストが利用できない場合、メソッドのパラメーターは null になります。 この場合、アクティビティの引数を読み取れないため、既定値を指定できます。BeginExecute(System.Activities.AsyncCodeActivityContext, System.AsyncCallback, object)System.IAsyncResult- このメソッドをオーバーライドしてアクティビティ コードを実装できます。 その引数がワークフロー ランタイムによって呼び出されて、アクティビティが非同期に実行されます。 追跡、変数、引数へのアクセスも可能です。EndExecute(System.Activities.AsyncCodeActivityContext, System.IAsyncResult)-System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Drawing.Rectangle, string>>- このメソッドをオーバーライドして、関連付けられた非同期アクティビティ操作が完了したことをワークフロー ランタイムに通知することができます。OCRAsyncCodeActivity()OnSuccess(System.Activities.AsyncCodeActivityContext, UiPath.OCR.Contracts.DataContracts.OCRResult)void OnSuccess- このメソッドは、OCR 結果を計算した後に呼び出されます。 出力引数やその他の最終操作を設定するために使用できます。PerformOCRAsync(System.Drawing.Image, System.Collections.Generic.Dictionary<string, object>, System.Threading.CancellationToken)System.Threading.Tasks.Task<UiPath.OCR.Contracts.DataContracts.OCRResult>- 画像を処理し、抽出したテキスト情報を返します。 options パラメーターはアクティビティ引数のディクショナリで、キーは引数名、値は引数値です。
プロパティ
ExtractWords- 単語を抽出する必要があるかどうかを取得または設定します。ImageSystem.Activities.InArgument<System.Drawing.Image>- 処理する画像です。LanguageSystem.Activities.InArgument<string>- OCR エンジンが UI 要素または画像から文字列を抽出する際に使用する言語です。 Google OCR エンジンの場合、このフィールドには、ルーマニア語の場合は「ron」、イタリア語の場合は「ita」、フランス語の場合は「fra」などの言語ファイル接頭辞を含める必要があります。 サポートされている言語の接頭辞は、このページにあります。OutputSystem.Activities.OutArgument<UiPath.OCR.Contracts.OcrActivityResult>- アクティビティの出力です。 レガシー、時代遅れの議論。TextSystem.Activities.OutArgument<string>- 単語のテキスト値です。
[DisplayName("Sample OCRAsyncCodeActivity")]
internal class SampleOCRAsyncCodeActivity : OCRAsyncCodeActivity
    {
        [Browsable(true)]
        public override InArgument<Image> Image { get; set; }
        public InArgument<string> CustomInput { get; set; }
        public OutArgument<string> CustomOutput { get; set; }
        public override Task<OCRResult> PerformOCRAsync(Image image, Dictionary<string, object> options, CancellationToken ct)
        {
            string customInput = options[nameof(CustomInput)] as string;
            string text = $"Text from {nameof(SampleOCRAsyncCodeActivity)} with custom input: {customInput}";
            return Task.FromResult(OCRResultHelper.FromText(text));
        }
        protected override void OnSuccess(AsyncCodeActivityContext context, OCRResult result)
        {
            CustomOutput.Set(context, $"Custom output: '{result.Text}' has {result.Words.Length} words.");
        }
        protected override Dictionary<string, object> BeforeExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state)
        {
            return new Dictionary<string, object>
            {
                { nameof(CustomInput), CustomInput.Get(context) }
            };
        }
    }[DisplayName("Sample OCRAsyncCodeActivity")]
internal class SampleOCRAsyncCodeActivity : OCRAsyncCodeActivity
    {
        [Browsable(true)]
        public override InArgument<Image> Image { get; set; }
        public InArgument<string> CustomInput { get; set; }
        public OutArgument<string> CustomOutput { get; set; }
        public override Task<OCRResult> PerformOCRAsync(Image image, Dictionary<string, object> options, CancellationToken ct)
        {
            string customInput = options[nameof(CustomInput)] as string;
            string text = $"Text from {nameof(SampleOCRAsyncCodeActivity)} with custom input: {customInput}";
            return Task.FromResult(OCRResultHelper.FromText(text));
        }
        protected override void OnSuccess(AsyncCodeActivityContext context, OCRResult result)
        {
            CustomOutput.Set(context, $"Custom output: '{result.Text}' has {result.Words.Length} words.");
        }
        protected override Dictionary<string, object> BeforeExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state)
        {
            return new Dictionary<string, object>
            {
                { nameof(CustomInput), CustomInput.Get(context) }
            };
        }
    }