robocorp / rpaframework

Collection of open-source libraries and tools for Robotic Process Automation (RPA), designed to be used with both Robot Framework and Python
https://www.rpaframework.org/
Apache License 2.0
1.17k stars 227 forks source link

RPA RobotFramework Images #424

Open extmme opened 2 years ago

extmme commented 2 years ago

Hello,

KW Show Region In Image says in Python Code that return value is image? Is it posible to show image with the rectangle then?

If I wanted to show the picture with rectangle I need to add a line with saving the image.

Please can you explain how it should work and what was the idea of return - image?

Thank you.

cmin764 commented 2 years ago

Its return is documented as "Image of the selected region", therefore the output most probably should be a saved copy of the image containing the rectangle inside. I feel an optional filename parameter (like having already in Crop Image) will be enough on allowing the output image to also be saved on disk after the keyword call. What do you think @osrjv / @mikahanninen ?

extmme commented 2 years ago

Hi there,

yes, excatly. I had to add an argument filename to the python code (like having already in Crop Image) and then I got the new picture with the rectengle.

So seemed to me like bug last time in this KW.