NMGRL / toupcam

Python interface to ToupCam Cameras
http://www.touptek.com/product/showproduct.php?lang=en&id=108
Apache License 2.0
26 stars 15 forks source link

Changing the Resolution #1

Open jpagliaccio opened 5 years ago

jpagliaccio commented 5 years ago

Jake:

I just got all of your toupcam Python code working on Linux with my camera - a MU1403 14MP USB 3 that does stills and video. Great code by the way. The image is coming out fine.

I am trying to snapshot full size images but I am stuck at 1024x768. Any suggestions? The camera will do 2048x1644 and 4096x3286. I am trying to get to 4096x3286 and then adjust white balance. Any format is okay. I can always convert with ImageMagick.

And ps - I switched to lib.Toupcam_PullImageV2() in the code.

Thanks, Joe

jirhiker commented 5 years ago

just pushed an update.

try

    cam = ToupCamCamera(size=(2048,1644))
    cam.open()
    time.sleep(1)

    cam.save('foo.jpg')
jpagliaccio commented 5 years ago

Jake:

Thanks so much. That worked great. These three sizes are all good for the MU1403 camera.

cam = ToupCamCamera(size=(4096,3286))
cam = ToupCamCamera(size=(2048,1644))
cam = ToupCamCamera(size=(1024,768))

Thanks again. Joe

On Thu, Feb 21, 2019 at 4:32 PM Jake Ross notifications@github.com wrote:

just pushed an update.

try

cam = ToupCamCamera(size=(2048,1644))
cam.open()
time.sleep(1)

cam.save('foo.jpg')

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NMGRL/toupcam/issues/1#issuecomment-466175111, or mute the thread https://github.com/notifications/unsubscribe-auth/AHUwobTfmhTUCSJXFl1REydIWvbolcyDks5vPxBdgaJpZM4bIMO8 .