I was able to get the current image from a Thorlabs uc480 camera using instrumental. My issue is when I try to adjust the parameters for grab_image. I can change cx and left to any value and get an image. But cy and top only works if cy=600 and top=300. The purpose is to create a GUI so that the user can select values for these parameters to zoom in/out an image.
Here is my code
import instrumental
from instrumental.drivers.cameras import uc480
from matplotlib.figure import Figure
import matplotlib.pyplot as plt
paramsets = instrumental.list_instruments()
cammer = instrumental.instrument(paramsets[0])
plt.figure()
framer= cammer.grab_image(timeout='1s',copy=True,n_frames=1,exposure_time='5ms',cx=640,
left=10,cy=600,top=300)
plt.pcolormesh(framer)
The above code does not give an image if I choose cy=600 and top=10. Are there any particular value set to be used for these parameters? How can I get an image of the full sensor size?
I was able to get the current image from a Thorlabs uc480 camera using
instrumental. My issue is when I try to adjust the parameters forgrab_image. I can changecxandleftto any value and get an image. Butcyandtoponly works ifcy=600andtop=300. The purpose is to create a GUI so that the user can select values for these parameters to zoom in/out an image.Here is my code
The above code does not give an image if I choose
cy=600andtop=10. Are there any particular value set to be used for these parameters? How can I get an image of the full sensor size?