Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Image handling extension_Crop and then store small images problem
Pekka_Jounela
Member, University Professor Posts: 4 University Professor
Dear experts,
I am using Image Handling extension and the goal is to store a collection of small images cropped from a large large image. To crop many small images (from top-left to right-bottom) I have utilized Loop Parameters operator that is found inside the Pre-Process Images operator (see process attached). The first pre-processing step (until the break-point after Loop Parameters) looks like working appropriately, but then after hitting the Run-button for the second time an error occurs ("The connection is producing wrong type of data").
Are there any ways to solve the error message?
So far I have tried to solve the problem by using operators like Append (Superset), Collect, Flatten Collection and Loop Collection in various ways and combinations but nothing seems to work.
Any help is graciously appreciated
Cheers, Pekka
Attached is the process.
Tagged:
0
Answers
I tested your process and it seemed to work for me, as soon as I removed that loop operator and put the transformation chain straight into the pre-process operator.
I assume, you wanted to iterate over the images in a directory. The good news is that we are doing just that under the hood.
The Read Image Meta Data operator given a directory collects the images (recursively) and provides the list in an ExampleSet.
That is the input for the Pre-Process Operator where you only need to make sure to set the path attribute to the appropriate one to get things working. I recommend taking a look at the Pre-Process tutorial process (MNIST).
Kind regards,
Mate