public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Palimaka (kensington)" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libkface/files: libkface-4.7.0-histogram.patch
Date: Mon, 11 May 2015 13:55:05 +0000 (UTC)	[thread overview]
Message-ID: <20150511135505.126FD9E6@oystercatcher.gentoo.org> (raw)

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






                 reply	other threads:[~2015-05-11 13:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150511135505.126FD9E6@oystercatcher.gentoo.org \
    --to=kensington@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox