Within the custom blueprints for Keras image models, how exactly do we use the Open CV Detect Largest Rectangle ? Specifically, I would like this image preprocessing task to extract out a roof from an aerial image before the model proceeds with the rest of the blueprint tasks. Not sure how to implement this Open CV Detect Largest Rectangle in a custom BP, or how to check the results.
Here is the answer from my colleague
Image Variables, add via Composable ML search palette
Detect Largest Rectangle task. The task itself detect largest rectangle and crops it (edited)
Thanks - is there anyway to inspect the output of the OPEN CV Detect Largest Rectangle ?
Note that I checked the activation map and image embeddings, and they still seem to show the entire image without any cropping/rectangles.
To get the output of most any task in a blueprint--assuming you are in the cloud and/or have access to custom tasks as part of composable ML--you can embed a custom task inside the blueprint that both passes output along to the next task and makes it available for download. In the near future, we will include an example of this more generally here in the DR Community. For now, ask your friendly Customer Success Manager or Customer-facing Data Scientist for more information.
Regarding some more details about the Open CV largest rectangle task. The OpenCV largest rectangle task may struggle to find rectangle because: