Unless it’s a network camera with the ability to request specific frame numbers for read, the answer is that you will just read from the camera like you normally would without Spark inside of a foreachrdd() and parallelize the result out for processing once you have it in a collection in the driver’s memory.

 

If the camera expects you to read continuously you will need to implement a custom receiver to constantly read from the camera and buffer the data until the next batch comes around.

 

 

From: Lavallen Pablo [mailto:intoexit@yahoo.com.ar]
Sent: Monday, November 30, 2015 5:07 PM
To: User <user@spark.apache.org>
Subject: capture video with spark streaming

 

Hello! Can anyone guide me please,  on how to capture video from a camera with spark streaming ? any article or book to read to recommend me ?
thank you