Open tdowrick opened 3 years ago
In GitLab by @ThomasDowrick on Jun 19, 2019, 10:39
RSDG Meeting with Brett on 21/06 to test out neural stim machine.
In GitLab by @ThomasDowrick on Jul 3, 2019, 10:35
I found and tested this code snippet for taking a screenshot of a specific window:
from PIL import ImageGrab
from win32 import win32gui
hwnd = win32gui.FindWindow(None, r'Window_title')
win32gui.SetForegroundWindow(hwnd)
dimensions = win32gui.GetWindowRect(hwnd)
image = ImageGrab.grab(dimensions)
image.show()
Assuming that the neurostimulator remote viewer is running on the same laptop, this should be a workable solution?
In GitLab by @AnastasisGeorgoulas on May 23, 2019, 15:56
At the moment, we can save all transforms with the "Save transforms" button, which creates a file with the timestamp in its name.
@ThomasDowrick suggested we use this to also track the location of the neurostimulator. Then, post-session, we can have a simple script that extracts the locations of the tip, and saves them in a file along with the corresponding times.
We will need a calibration step for the neurostimulator (which will have a separate SureTrack-type device attached), to compute the transform to its tip. We could do this with
Also to be investigated: can we receive input from the foot pedal (like the Stealth Station does) instead of the button?