Bayer-Group / paquo

PAthological QUpath Obsession - QuPath and Python conversations
GNU General Public License v3.0
104 stars 16 forks source link

Control qupath interactively from python #7

Open sdvillal opened 4 years ago

sdvillal commented 4 years ago

This is easy on linux, almost impossible on macos, I have not tried on windows.

As an alternative, there are OS-dependent libraries that allow to instrument GUIs (for example, back in the day I had mild success instrumenting ImageScope using pywinauto).

ap-- commented 4 years ago

Hmmm. We should definitely go with something that'll be supported on all platforms.

I've been looking at qupath's scripting interface and I believe it should be possible to write a minimal qupath plugin that just offers all of the scripting interface via libzmq.

sdvillal commented 4 years ago

I also thought about this, I initially thought it is not so simple. Having an "API server" in a running QuPath instance would require exposing quite a bit of non-trivial APIs (so we would need to somewhat marshall java object specifications back and forth).

ap-- commented 4 years ago

I was thinking (as a production ready 🤣 hack) if it's possible to generate groovy on the python side, transmit via some messaging layer and execute in the qupath plugin.

sdvillal commented 4 years ago

Oh, so nasty, I like it!

A project we can look at is: https://github.com/imagej/pyimagej

ap-- commented 4 years ago

Oh, so nasty, I like it!

We'll just need some perfume for the code smell 😄

A project we can look at is: https://github.com/imagej/pyimagej

nice! very interesting.

sdvillal commented 4 years ago

there is also imglyb and scijava, from the same people; still I prefer to have switched to jpype

ap-- commented 4 years ago

(itemized from #4 )

ap-- commented 4 years ago

Ha someone did the groundwork: https://github.com/arjvik/QuPath-Scripts

sdvillal commented 4 years ago

I had not seen that, good catch!