Acquisizione di immagini
Creare un collegamento a una fotocamera IP utilizzando l'oggetto ipcam
. Per creare l'oggetto, è necessario disporre dell'URL della fotocamera. Se la fotocamera richiede l'autenticazione, specificare un nome utente e una password. L'URL deve essere un flusso Motion JPEG (mjpeg) su HTTP/RTSP o un flusso H.264 su RTSp.
Utilizzare la funzione snapshot
per acquisire le immagini da una fotocamera IP. È possibile acquisire una singola immagine o impostare un loop per acquisire più immagini. Utilizzare la funzione preview
per testare il flusso della fotocamera.
Per consultare degli esempi che mostrano come collegarsi e suggerimenti per trovare l'URL della fotocamera IP e il Codec di flusso, vedere Connect to IP Cameras.
Funzioni
ipcam | Create ipcam object to acquire images from an IP
camera |
preview | Preview live video data from IP camera |
snapshot | Acquire single image frame from an IP camera |
closePreview | Close IP camera preview window |
Argomenti
- Find IP Camera URL
Find the URL of your IP Camera.
- Set Properties for IP Camera Acquisition
Set device specific properties of the IP camera during or after object creation and using the
webread
function. - Acquire Images from IP Cameras
Learn how to use the
snapshot
function to acquire one image frame from an IP camera and display it. - Acquire IP Camera Images in a Loop and Create an AVI File
Acquire multiple image frames from an IP camera, and log the images to an AVI file using MATLAB® VideoWriter.