Capture Camera Quality

164 views
Skip to first unread message

Hazim Dirdiri

unread,
Mar 5, 2021, 7:20:55 AM3/5/21
to Bonsai Users
Hello,
I'm doing Optogenetic acquisition using bonsai; and recently the Quality of the video captured from the camera is significantly bad, The output is about 28Mb for 20 min video, with very blurry image; that is not the same of the camera itself. previously it worked well! So i'm trying to figure out the cause, maybe it is the FourCC encoding, but it seems well! and Camera Capture from the beginning is not working well.

Attached the workflow:

Thanks,
bonsai_capture.PNG

Ori Yarden

unread,
Mar 5, 2021, 4:52:14 PM3/5/21
to Hazim Dirdiri, Bonsai Users
The image in the frame looks fine, and if you're wondering about the LargestBinaryRegion node which appears "blurry" (ie fewer pixels) it doesn't look like bad image quality; you could try moving the camera closer to the arena.

Best,

On Fri, Mar 5, 2021 at 7:20 AM Hazim Dirdiri <hazim.d...@gmail.com> wrote:
    EXTERNAL EMAIL : Exercise caution when responding, opening links, or opening attachments.
 
--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/4d0ec049-49cf-488a-ae96-44908a109da0n%40googlegroups.com.


--
Ori Yarden
Teacher's Assistant
Psychology Department
Florida Atlantic University
BS-12, room 123
Boca Raton, FL 33431

Hazim Dirdiri

unread,
Apr 8, 2021, 12:51:55 PM4/8/21
to Bonsai Users
Sorry, i found my reply wasn't sent.
Thanks for your response, i think it's hard to see in the attached screenshot, but the quality of the video gets reduced a lot from the one captured in camera and the one in bonsai that's in the output. Which in some videos makes trouble in detecting the threshold.

Best,
Hazim

Ori Yarden

unread,
Apr 13, 2021, 12:34:57 PM4/13/21
to Hazim Dirdiri, Bonsai Users
If you are not using the Crop node in your workflow, then the image quality (ie number of pixels) should be 1:1 for the camera and boncai output; if you are using the Crop node, well then that's what is causing the reduction in image quality (ie number of pixels) for the bonsai output video. So if you are using the Crop node, decrease the distance between the camera and object being filmed (ie in your case lower the camera's position as much as you can while still having everything you need within the frame as to avoid having to use the Crop node). Other then that, maybe your configuration file for the camera capture node is set below your camera's performance.

Best,

Sebastian Wittekindt

unread,
Apr 13, 2021, 3:45:58 PM4/13/21
to Bonsai Users
Hi Hazim,

Not sure this will solve your issue but you could try using the FourCC code "DIB " (important to include the space). This will encode in close to he source quality, without compression.

Reply all
Reply to author
Forward
0 new messages