itu membatalkan saat saya mencoba membuka webcame menggunakan opencv

I found the solution! I tried running the script using the default terminal that comes with mac and it worked :) So it seems there was some weird issue with the third party terminal (iTerm) I was using
Clasher