From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B6FD1138CCF for ; Mon, 11 May 2015 13:55:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 00DC4E089C; Mon, 11 May 2015 13:55:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A4C1DE089C for ; Mon, 11 May 2015 13:55:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7DD0F33D3CA for ; Mon, 11 May 2015 13:55:06 +0000 (UTC) Received: by oystercatcher.gentoo.org (Postfix, from userid 2323) id 126FD9E6; Mon, 11 May 2015 13:55:05 +0000 (UTC) From: "Michael Palimaka (kensington)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, kensington@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libkface/files: libkface-4.7.0-histogram.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: libkface-4.7.0-histogram.patch X-VCS-Directories: media-libs/libkface/files X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20150511135505.126FD9E6@oystercatcher.gentoo.org> Date: Mon, 11 May 2015 13:55:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 653e0509-a36a-4e38-a790-838abebe090a X-Archives-Hash: 749e9df873d809d719d5d59a58b383fc 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 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& 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 currentHistograms = ptr()->get >("histograms"); -- 2.3.6