to get the number of frames that the camera has processed since being opened, use
Code: Select all
print SharpCap.SelectedCamera.CapturedFrameCount
Is that enough to do what you want?
cheers,
Robin
Code: Select all
print SharpCap.SelectedCamera.CapturedFrameCount
Code: Select all
import time
import clr
start = 0
end = 1024
npic = 1 #pictures
npan = 1 #pan inc
pan = start
SharpCap.SelectedCamera.PrepareToCapture ()
SharpCap.SelectedCamera.RunCapture ()
SharpCap.SelectedCamera.Controls.Pan.Value = start
pic = SharpCap.SelectedCamera.CapturedFrameCount
picc = pic + npic
while pan <end:
while pic <=picc:
pic = SharpCap.SelectedCamera.CapturedFrameCount
pan = pan + npan
SharpCap.SelectedCamera.Controls.Pan.Value = pan
picc = pic + npic
SharpCap.SelectedCamera.StopCapture ()
SharpCap.SelectedCamera.Controls.Pan.Value = start