Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too long time on acqusition #3

Open
PKUPHYZYC opened this issue Feb 7, 2022 · 1 comment
Open

Too long time on acqusition #3

PKUPHYZYC opened this issue Feb 7, 2022 · 1 comment

Comments

@PKUPHYZYC
Copy link

Hi,

I am running it on python3.9.7 on windows. Basically everything works well, except that the acquisition time is too long for our experiment. I set integral time to be 0.01s, but the total time consumed to acquire one frame is almost 0.9s.

I didn't go deep into the dcam.py, but I found that a lot of time was consumed on allocating buffers. Basically every time I send a commend to acquire a frame, the program will allocate buffer, lock frame, copy it back and release buffer. I am wondering is there any way to not allocate buffer every time, but just one time for all? Also is it possible to set a region-of-interest thus decrease the space of the buffer and decrease the time of allocation?

Thanks

@tiagocoutinho
Copy link
Owner

Hi @PKUPHYZYC,
Thank you for your bug report. Unfortunately I stopped working at the institute where I had a camera to test width so it's very hard for me to fix/improve the project to meet your needs.

I would be happy to review a PR that fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants