Enter code here...

I am doing Live Video streaming using the camera Logitech C310 on BeaglBone 
Black. For checking whether it is working, I wrote a basic code for getting 
the frame and printing the frame in its array form but I always get an 
empty array. I tried the same code on my laptop with the same camera, In 
which I get some value. I don't why I am getting like this in Beaglebone 
black, Here is the code as well as the sample output. I have installed 
opencv 2.4.9.1 in beaglebone but opencv 3.0.0 in my laptop. 


*Code*


import numpy as np
import cv2

cap = cv2.VideoCapture(0)

while True:
  ret, frame = cap.read()
  print ret
  print frame

cap.release()


*Output from BeagleBone Black*

..., 
[[0 0 0]
[0 0 0]
[0 0 0]
..., 
[0 0 0]
[0 0 0]
[0 0 0]]

[[0 0 0]
[0 0 0]
[0 0 0]
..., 
[0 0 0]
[0 0 0]
[0 0 0]]

[[0 0 0]
[0 0 0]
[0 0 0]
..., 
[0 0 0]
[0 0 0]
[0 0 0]]]


*Output from my Laptop*


 [133 104  84]
 ..., 
 [138 148 148]
 [135 152 153]
 [138 155 156]]

 [[138 102  83]
 [139 103  84]
 [134 102  83]
 ..., 
 [127 143 146]
 [136 152 155]
 [141 157 160]]]
 [[[ 14  19  15]
 [ 13  18  14]
 [ 13  18  14]
 ..., 
 [ 79  79  80]
 [ 80  80  81]
 [ 79  79  80]]



-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/bd2ebc41-85be-448d-9ed4-a9fcffb65f33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to