Skip to content

Commit

Permalink
added and updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
vikasgupta-github committed Oct 8, 2018
1 parent 3e64625 commit f818752
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
21 changes: 21 additions & 0 deletions HandPose/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Please run getModels.sh from the command line to download the model in the correct folder.

### USAGE

#### Python
**For using it on single image : **
python handPoseImage.py

**For using on video : **
python handPoseVideo.py

#### C++
**From the command line : **
cmake .
make

**For using it on single image : **
./handPoseImage

**For using on video : **
./handPoseVideo
2 changes: 1 addition & 1 deletion HandPose/handPoseImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main(int argc, char **argv)

cout << "USAGE : ./handPoseImage <imageFile> " << endl;

string imageFile = "hand.jpg";
string imageFile = "right-frontal.jpg";
// Take arguments from commmand line
if (argc == 2)
{
Expand Down
2 changes: 1 addition & 1 deletion HandPose/handPoseImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
POSE_PAIRS = [ [0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[0,9],[9,10],[10,11],[11,12],[0,13],[13,14],[14,15],[15,16],[0,17],[17,18],[18,19],[19,20] ]
net = cv2.dnn.readNetFromCaffe(protoFile, weightsFile)

frame = cv2.imread("hand.jpg")
frame = cv2.imread("right-frontal.jpg")
frameCopy = np.copy(frame)
frameWidth = frame.shape[1]
frameHeight = frame.shape[0]
Expand Down
2 changes: 1 addition & 1 deletion HandPose/handPoseVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int main(int argc, char **argv)
{
float thresh = 0.01;

cv::VideoCapture cap(0);
cv::VideoCapture cap("asl.mp4");

if (!cap.isOpened())
{
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Learn OpenCV : C++ and Python Examples. You can find the details at [LearnOpenC

| Blog Post | |
| ------------- |:-------------|

|[Hand Keypoint Detection using Deep Learning and OpenCV](https://www.learnopencv.com/hand-keypoint-detection-using-deep-learning-and-opencv/) |
|[Deep learning based Object Detection and Instance Segmentation using Mask R-CNN in OpenCV (Python / C++)](https://www.learnopencv.com/deep-learning-based-object-detection-and-instance-segmentation-using-mask-r-cnn-in-opencv-python-c/) | [Code](https://github.com/spmallick/learnopencv/tree/master/Mask-RCNN) |
|[Install OpenCV 4 on Ubuntu 18.04](https://www.learnopencv.com/install-opencv-4-on-ubuntu-18-04/) | [Code](https://github.com/spmallick/learnopencv/blob/master/InstallScripts/installOpenCV-18-04.sh) |
|[Install OpenCV 4 on Ubuntu 16.04](https://www.learnopencv.com/install-opencv-4-on-ubuntu-16-04/) | [Code](https://github.com/spmallick/learnopencv/blob/master/InstallScripts/installOpenCV-16-04.sh) |
Expand Down

0 comments on commit f818752

Please sign in to comment.