After adding a step to identify image files, you can add a processor to perform media analysis.
To add media analysis
Add a processor, by dragging the processor icon from the components toolbar to the canvas.
The Add Processor dialog box opens.
In the Source list, click idol.nifi.
Select the MediaAnalysis processor and click ADD.
The processor is added to the canvas.
Create a connection between the KeyViewRouteOnFileType processor and the MediaAnalysis processor.
The Create Connection dialog box opens.
In the For Relationships area, select the images check box and click ADD.
The connection appears on the canvas. FlowFiles that represent image files are added to the queue for media analysis, because this relationship matches the name of the property you created in the KeyViewRouteOnFileType processor in Add File Format Detection.
Right-click the MediaAnalysis processor and click Configure.
The Configure Processor dialog box opens.
In the properties list, set the following properties:
Media Server Hosts | A comma-separated list of Media Servers to use for analysis, for example: media-one:14000,media-two:14000 . |
Media Server Configuration Name | The name of the session configuration file to use for media analysis. For this example, type ocrdoc . |
XSLT File | (Optional) The path of the XSL transformation to apply to the response from Media Server before the information is added to the document metadata. If you do not specify an XSL transformation, the processor adds the entire response to the document, unaltered. |
In the Concurrent Tasks box, type the number of FlowFiles to process concurrently. If your Media Server has sufficient resources you can increase the value so that several files are analyzed at the same time, increasing throughput. For example, to process four images concurrently type 4
.
Before attempting to process multiple images concurrently, ensure that you have configured your Media Server to run multiple simultaneous processing sessions. This must also be permitted by your Media Server license.
Create a connection between the MediaAnalysis processor and the StandardizeMetadata processor.
The Create Connection dialog box opens.
In the For Relationships area, select the success check box and click ADD.
The connection appears on the canvas. Media files that were processed successfully are sent to the StandardizeMetadata processor. Notice that the media files bypass the KeyView filtering step. This makes sense because KeyView is unlikely to extract any useful text from an image file.
|