pypylon icon indicating copy to clipboard operation
pypylon copied to clipboard

how to continuously grab and save images using basler ace cameras , without giving count of images, and the loop should be keep on running until that variable is true

Open thasnimolvs opened this issue 4 years ago • 5 comments

thasnimolvs avatar Jul 10 '21 11:07 thasnimolvs

start unlimited grabbing using: cam.StartGrabbing() you can stop the grabbing, when you detect your condition by calling cam.StopGrabbing()

thiesmoeller avatar Jul 11 '21 21:07 thiesmoeller

@thiesmoeller currently am using threading method for this camera, so i was using while true loop before 1st class, and run the same code with while loop in main body also.is it work well or should i apply the while loop in thread created for grabbing, saving images and to the final main body also?

  1. IF I did nt use this cam.StopGrabbing() AND CAM.OPEN, WHAT will happen to the code ?????????????? becoz normally in my code am not using it. so i want to know is there any negative effects without this parameter in code?? becoz after two times cntrl+c , then only my code will stop running

thasnimolvs avatar Jul 12 '21 10:07 thasnimolvs

@thasnimolvs check this example with grab strategies ;] https://github.com/basler/pypylon-samples/blob/main/notebooks/grabstrategies.ipynb

ToKraTheSecond avatar Aug 02 '21 10:08 ToKraTheSecond

@thasnimolvs this two examples may also help you https://github.com/basler/pypylon/blob/master/samples/grabusinggrabloopthread.py https://github.com/basler/pypylon/blob/master/samples/grabstrategies.py

ToKraTheSecond avatar Aug 02 '21 10:08 ToKraTheSecond