Maecky
Maecky

Reputation: 2038

Pycharm, OpenCV execute on remote server and display Image locally

I set up PyCharm for remote debugging according to this tutorial on CodeProject http://www.codeproject.com/Tips/987276/Remote-Programming-of-RaspberryPi-using-PyCharm

I am now wondering if it is possible to execute a Python Script with the help of PyCharm on the RaspberryPI and receive the output in PyCharm. Specifically I want to do some image processing and display the image with the help of OpenCV. It would be great to get the image displayed on my Windows machine, not on the Pi.

Another usecase, I want to create some matplot figure, execute the script on the pi and show the Output back in PyCharm on my Windows machine.

Is this possiple?

Kind Regards

Upvotes: 4

Views: 2931

Answers (1)

dragon7
dragon7

Reputation: 1133

You can do this using OpenCV Image Viewer Plugin. Debug you program using remote interpreter in Pycharm, stop at the breakpoint and choose "View as image".

https://plugins.jetbrains.com/plugin/14371-opencv-image-viewer

enter image description here

Disclaimer: I'm an author of this plugin

Upvotes: 5

Related Questions