title: Crontab camera capture using python-opencv
body: <p>Here is my python program:</p>
  
  <pre><code> #!/usr/bin/env/ python
    import cv
    capture1=cv.CaptureFromCAM(0)
    cv.SetCaptureProperty(capture1,cv.CV_CAP_PROPER_FRAME_WIDTH,320)  
    cv.SetCaptureProperty(capture1,cv.CV_CAP_PROPER_FRAME_HEIGHT,240)
    while 1:
         cam1=cv.QueryFrame(capture1);
         cv.SaveImage("camera.jpg",cam1);
         cv.WaitKey(11)
         print 'Done!'
  </code></pre>
  
  <p>On crontab:</p>
  
  <pre><code>@reboot sudo python /home/program.py &gt;/home/result.txt
  </code></pre>
  
  <p>But its not saving the image.Definitely I have done something wrong! I got the similar problem when I was reading image <code>cv2.imread("image.jpg")</code> but it was returning <code>None</code> so I added full path to the image <code>/home/image.jpg</code>.That problem was solved!.Is cron not getting camera feed? 
  Thanx for help!</p>