Required hardware

To run the sample codes do I need to have a camera?
for example Dummy Camera
when I run the sample I can see the app graph but cannot see the video its a dark video

Which sample apps are you running? For anything interesting, you will likely need a camera, but any webcam should work usually.