public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-libs/libkface/files: libkface-4.7.0-histogram.patch
@ 2015-05-11 13:55 Michael Palimaka (kensington)
  0 siblings, 0 replies; only message in thread
From: Michael Palimaka (kensington) @ 2015-05-11 13:55 UTC (permalink / raw
  To: gentoo-commits

kensington    15/05/11 13:55:05

  Added:                libkface-4.7.0-histogram.patch
  Log:
  Backport patch from upstream to solve performance issue wrt bug #549146.
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

Revision  Changes    Path
1.1                  media-libs/libkface/files/libkface-4.7.0-histogram.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libkface/files/libkface-4.7.0-histogram.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libkface/files/libkface-4.7.0-histogram.patch?rev=1.1&content-type=text/plain

Index: libkface-4.7.0-histogram.patch
===================================================================
From 916b00af31981a0729e05a92ae212f05279e730f Mon Sep 17 00:00:00 2001
From: Gilles Caulier <caulier.gilles@gmail.com>
Date: Sat, 21 Mar 2015 14:57:53 +0100
Subject: [PATCH] apply patch #91657 to fix libkface histogram DB table grawing
 at each registration of data. CCBUGS: 338176

---
 libkface/recognition-opencv-lbph/lbphfacemodel.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libkface/recognition-opencv-lbph/lbphfacemodel.cpp b/libkface/recognition-opencv-lbph/lbphfacemodel.cpp
index 72a3635..af8c6a5 100644
--- a/libkface/recognition-opencv-lbph/lbphfacemodel.cpp
+++ b/libkface/recognition-opencv-lbph/lbphfacemodel.cpp
@@ -160,9 +160,12 @@ void LBPHFaceModel::setHistograms(const QList<OpenCVMatData>& histograms, const
         newHistograms.push_back(histogram.toMat());
     }
 
+    m_histogramMetadata.clear();
+
     foreach (const LBPHistogramMetadata& metadata, histogramMetadata)
     {
         newLabels.push_back(metadata.identity);
+        m_histogramMetadata << metadata;
     }
 
     std::vector<cv::Mat> currentHistograms = ptr()->get<std::vector<cv::Mat> >("histograms");
-- 
2.3.6






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-11 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-11 13:55 [gentoo-commits] gentoo-x86 commit in media-libs/libkface/files: libkface-4.7.0-histogram.patch Michael Palimaka (kensington)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox