Skip to content

Commit ee08b01

Browse files
author
Pashchenkov Maxim
committed
Applying comments
1 parent e1f4c5a commit ee08b01

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

demos/gesture_recognition_demo/cpp_gapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The demo workflow is the following:
2424
2525
## Creating a Gallery for gestures window
2626

27-
To show gestures on a additional window, the demo needs a gallery of reference videos. Each video should contain an appropriate name of gesture. You can create the gallery from an arbitrary list of images:
27+
The gallery of sample videos can be created to show the sample gestures on an additional window:
2828

2929
1. Put videos containing gestures to a separate empty folder. Each video must have only one gesture.
3030
2. Run the `python3 <omz_dir>/demos/gesture_recognition_demo/cpp_gapi/create_list.py --classes_map <path_to_a_file_with_gesture_classes> --gesture_storage <path_to_directory_with_gesture_videos>` command, which will create a `gesture_gallery.json` file with list of gestures and paths to appropriate videos.

demos/gesture_recognition_demo/cpp_gapi/create_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import json
2121
import argparse
2222

23-
parser = argparse.ArgumentParser(description='This is')
23+
parser = argparse.ArgumentParser(description='')
2424

2525
parser.add_argument('--gesture_storage',
2626
help='Path to the gesture directory')

demos/gesture_recognition_demo/cpp_gapi/src/utils.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
#include "utils.hpp"
88

99
cv::Scalar getNetShape(const std::string& path) {
10-
InferenceEngine::Core ie;
11-
const auto network = ie.ReadNetwork(path);
12-
const auto layerName = network.getInputsInfo().begin()->first;
10+
const auto network = InferenceEngine::Core{}.ReadNetwork(path);
1311
const auto layerData = network.getInputsInfo().begin()->second;
1412
const auto layerDims = layerData->getTensorDesc().getDims();
1513

@@ -20,7 +18,6 @@ cv::Scalar getNetShape(const std::string& path) {
2018
double(layerDims[3 + step]));
2119
}
2220

23-
// FIXME: cv::FileStorage can't open this .json files
2421
void erase(std::string& str, const char symbol) {
2522
str.erase(std::remove(str.begin(), str.end(), symbol), str.end());
2623
};

0 commit comments

Comments
 (0)