roscore
# Export this to set the variables to capture form webcam
export GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb,framerate=30/1 ! ffmpegcolorspace"
# run gscam to get input from webcam and publish to /camera/image_raw topic
rosrun gscam gscam
# Open a new node to display the webcam output
rosrun image_view image_view image:=/camera/image_raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://nbviewer.jupyter.org/github/BVLC/caffe/blob/master/examples/00-classification.ipynb |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Import the modules | |
import cv2 | |
import sys | |
import numpy as np | |
# Set the global parameters | |
''' |
Caffe Model Zoo -- Full docs here
To download a model use -
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dervative is rate of change. | |
`Hello` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Question 1 | |
# http://progexercise.dev.indeed.net/progcontest/problems/1 | |
input = "RUNNINGWITHSCISSORS" | |
list = list(input) | |
dic = {} | |
count = len(list); |