Main public logs
From Master of Neuroscience Wiki
Combined display of all available logs of Master of Neuroscience Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 09:35, 21 October 2025 Davrot talk contribs created page How to read a webcam with CV2 (Created page with "We want to capture the webcam via CV2. Questions to [mailto:davrot@uni-bremen.de David Rotermund]<syntaxhighlight lang="shell">pip install opencv-contrib-python</syntaxhighlight><syntaxhighlight lang="python">import numpy as np import cv2 def record_video( camera_index: int, n_frames: int, fps: float = 20.0, framesize: tuple[int, int] = (640, 480), display: bool = False, ) -> tuple[bool, np.ndarray]: cap = cv2.VideoCapture(camera_index) asse...") Tag: Visual edit