Skip to content

Commit

Permalink
Update stella_camera.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrexlab authored Mar 7, 2022
1 parent c793944 commit 4038216
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stella_camera/src/stella_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
from cv_bridge import CvBridge, CvBridgeError

if __name__=="__main__":
os.system('sudo modprobe bcm2835-v4l2')
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH,640)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT,480)
cap.set(cv2.CAP_PROP_FRAME_WIDTH,320)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT,240)

rospy.init_node('stella_camera_node')
bridge = CvBridge()
Expand Down

0 comments on commit 4038216

Please sign in to comment.