画像からテキストを抽出する n8n アクション
PDF4me 画像からテキストを抽出 画像からテキストコンテンツを抽出します OCR テクノロジーを通じて n8n 自動化ワークフロー。画像を処理 n8n トリガー、バイナリデータ、base64文字列、または公開 URL多言語対応、高精度文字認識、レイアウト保持、構造化テキスト出力により、文書のデジタル化とデータ抽出のためのテキストの自動認識と抽出を実現します。このソリューションは、スキャンされた文書の処理、データ入力の自動化、名刺のデジタル化に最適です。 OCRレシートのスキャン、写真からのテキスト抽出、自動化 OCR 多言語対応とシームレスな統合による高精度なテキスト認識を必要とするワークフロー。
関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →
設定
追加する PDF4me 「画像テキスト抽出」ノードを n8n ワークフローを実行し、必要なパラメータを設定します。初期設定手順については、こちらをご覧ください。 n8n 統合ガイド。
前提条件:
- PDF4me API 資格
- n8n ワークフローへのアクセス
構成:
- 追加 PDF4me ノードからワークフローへ
- 「画像からテキストを抽出」アクションを選択します。
- 入力パラメータを設定します(下記参照)。

パラメータ
画像テキスト抽出アクションのパラメータ一覧です。これらのパラメータを設定することで、画像からのテキスト抽出を制御できます。
重要: アスタリスク(***)が付いているパラメータは必須であり、アクションが正しく機能するためには必ず指定する必要があります。
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| Input Data Type | Required | Choose how to provide the image file to extract text from. Options: Binary Data, Base64 String, URL. Default is `Binary Data`. | Binary Data |
| Input Binary Field | Conditional | Name of the binary property that contains the image file. Shown when Input Data Type is Binary Data. Default is `data`. | data |
| Base64 Image Content | Conditional | Base64 encoded image content. Shown when Input Data Type is Base64 String. | /9j/4AAQSkZJRgAB... |
| Image URL | Conditional | URL to the image file to extract text from. Shown when Input Data Type is URL. | https://abc.com/demo.jpg |
| Output File Name | Optional | Name for the output extracted text file (JSON). Default is `image_text_extract.json`. | image_text_extract.json |
| Async | Optional | Not used: the node always sends the request to PDF4me as asynchronous (IsAsync true), whatever this is set to. Default is `Yes`. | Yes |
| Binary Data Output Name | Optional | Custom name for the binary data in n8n output. Default is `data`. | data |
出力
出力パラメータ
| 分野 | タイプ | 内容物 |
|---|---|---|
success | Boolean | True when the operation succeeded. |
message | String | Status message, `Image text extracted successfully`. |
fileName | String | File name of the resulting file. |
mimeType | String | Always `application/json`. |
fileSize | Number | Size of the returned file in bytes. |
data | Binary | PDF4me's response with the extracted text, stored unchanged as a JSON file named after Output File Name. The text is not added to the item's JSON. |
N8N 行動対応
の PDF4me 画像からテキストを抽出 API 複数の形式で表示可能なレスポンスを返します。ニーズに最適な表示形式を選択してください。
- JSON
- Table
- Schema
- Binary
JSON 回答形式
生 JSON からの応答 API:
[
{
"success": true,
"message": "Image text extracted successfully",
"fileName": "image_text_extract.json",
"mimeType": "application/json",
"fileSize": 0
}
]
テーブルビュー
構造化された表形式の応答データ:
| パラメータ | 価値 |
|---|---|
| success | true |
| message | Image text extracted successfully |
| fileName | image_text_extract.json |
| mimeType | application/json |
| fileSize | 0 |
スキーマビュー
レスポンスのデータ構造と型:
1 item
success: ☑ true
message: AB Image text extracted successfully
fileName: AB image_text_extract.json
mimeType: AB application/json
fileSize: # 0
タイプ指標:
AB= String#= 番号☑= Boolean[]= Array
バイナリデータビュー
実際のテキスト抽出ファイルデータと情報:
data
─────────────────────────────
File Name: image_text_extract.json
File Extension: json
Mime Type: application/json
File Size: 0 bytes
Status: Image text extracted successfully
バイナリデータアクセス:
- n8n バイナリオブジェクト:
$binary.data.data - Base64 コンテンツ直接使用可能
- ファイル操作ダウンロード、メール送信、または保存の準備ができました
ユースケース
OCR テキスト認識とデジタル化
- スキャンした文書、領収書、フォームからテキストを抽出し、デジタル処理する。
- 手書きのメモや印刷物を検索可能なテキスト形式に変換する
- 名刺と連絡先情報を処理して、自動データ入力を行う。
画像ベースのコンテンツ分析
- スクリーンショットや画像からテキストを抽出し、コンテンツ分析とインデックス作成に活用する。
- ソーシャルメディア画像にテキストオーバーレイを重ねて処理し、感情分析を行う。
- 在庫管理システムのために製品パッケージとラベルを分析する
アクセシビリティおよび翻訳サービス
- 画像からテキストを抽出して、視覚障害のあるユーザー向けのアクセシブルなコンテンツを作成する
- 自動翻訳ワークフローのために多言語文書を処理する
- 画像ベースのテキストを音声形式に変換してアクセシビリティアプリケーションに活用する
研究とデータマイニング
- 研究論文、記事、学術文書からテキストを抽出する
- デジタル研究プロジェクトのために歴史的文書やアーカイブを処理する
- 画像ベースのアンケートやフィードバックフォームを分析してデータを収集する