Hi !
Super quick post today, with an answet to a question that we had last week in one of our Reactor Sessions:
Can we access to a camera π€³ while Iβm coding in a Jupter Notebook?
So, the answer is YES. Here is a sample:
And as usual, letβs share some code and some notes to test this.
- Iβm coding this sample using Visual Studio Code and the Jupyter Notebook extension (link)
- Iβm accesing camera 2 on my devices, I have several cameras.
- Iβm using matpotlib to show the image, from an OpenCV Mat. This is super cool, it automatically understand Mat().
- Important: remember to release the camera at the end!
And here is the code:
Happy coding!
Greetings
El Bruno
More posts in my blog ElBruno.com.
Top comments (0)