Commit dbad1bf28b0ac8c862770232aa3aca0553e9e190
1 parent
41af8384
remove hogpersondetector
Showing
1 changed file
with
0 additions
and
59 deletions
openbr/plugins/metadata/hogpersondetector.cpp deleted
| 1 | -#include <opencv2/objdetect/objdetect.hpp> | |
| 2 | - | |
| 3 | -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
| 4 | - * Copyright 2012 The MITRE Corporation * | |
| 5 | - * * | |
| 6 | - * Licensed under the Apache License, Version 2.0 (the "License"); * | |
| 7 | - * you may not use this file except in compliance with the License. * | |
| 8 | - * You may obtain a copy of the License at * | |
| 9 | - * * | |
| 10 | - * http://www.apache.org/licenses/LICENSE-2.0 * | |
| 11 | - * * | |
| 12 | - * Unless required by applicable law or agreed to in writing, software * | |
| 13 | - * distributed under the License is distributed on an "AS IS" BASIS, * | |
| 14 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * | |
| 15 | - * See the License for the specific language governing permissions and * | |
| 16 | - * limitations under the License. * | |
| 17 | - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
| 18 | - | |
| 19 | -#include <openbr/plugins/openbr_internal.h> | |
| 20 | - | |
| 21 | -using namespace cv; | |
| 22 | - | |
| 23 | -namespace br | |
| 24 | -{ | |
| 25 | - | |
| 26 | -/*! | |
| 27 | - * \ingroup transforms | |
| 28 | - * \brief Detects objects with OpenCV's built-in HOG detection. | |
| 29 | - * \br_link http://docs.opencv.org/modules/gpu/doc/object_detection.html | |
| 30 | - * \author Austin Blanton \cite imaus10 | |
| 31 | - */ | |
| 32 | -class HOGPersonDetectorTransform : public UntrainableTransform | |
| 33 | -{ | |
| 34 | - Q_OBJECT | |
| 35 | - | |
| 36 | - HOGDescriptor hog; | |
| 37 | - | |
| 38 | - void init() | |
| 39 | - { | |
| 40 | - hog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector()); | |
| 41 | - } | |
| 42 | - | |
| 43 | - void project(const Template &src, Template &dst) const | |
| 44 | - { | |
| 45 | - dst = src; | |
| 46 | - std::vector<Rect> objLocs; | |
| 47 | - QList<Rect> rects; | |
| 48 | - hog.detectMultiScale(src, objLocs); | |
| 49 | - foreach (const Rect &obj, objLocs) | |
| 50 | - rects.append(obj); | |
| 51 | - dst.file.setRects(rects); | |
| 52 | - } | |
| 53 | -}; | |
| 54 | - | |
| 55 | -BR_REGISTER(Transform, HOGPersonDetectorTransform) | |
| 56 | - | |
| 57 | -} // namespace br | |
| 58 | - | |
| 59 | -#include "metadata/hogpersondetector.moc" |