513 lines
22 KiB
HTML
513 lines
22 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<!-- NewPage -->
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<!-- Generated by javadoc (1.8.0_292) on Sat Dec 25 08:13:28 UTC 2021 -->
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
<title>FaceRecognizerSF (OpenCV 4.5.5 Java documentation)</title>
|
||
|
<meta name="date" content="2021-12-25">
|
||
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||
|
<script type="text/javascript" src="../../../script.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script type="text/javascript"><!--
|
||
|
try {
|
||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||
|
parent.document.title="FaceRecognizerSF (OpenCV 4.5.5 Java documentation)";
|
||
|
}
|
||
|
}
|
||
|
catch(err) {
|
||
|
}
|
||
|
//-->
|
||
|
var methods = {"i0":9,"i1":10,"i2":9,"i3":9,"i4":9,"i5":10,"i6":10,"i7":10,"i8":10};
|
||
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||
|
var altColor = "altColor";
|
||
|
var rowColor = "rowColor";
|
||
|
var tableTab = "tableTab";
|
||
|
var activeTableTab = "activeTableTab";
|
||
|
</script>
|
||
|
<noscript>
|
||
|
<div>JavaScript is disabled on your browser.</div>
|
||
|
</noscript>
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<div class="topNav"><a name="navbar.top">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
<a name="navbar.top.firstrow">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="navList" title="Navigation">
|
||
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
||
|
<li><a href="package-summary.html">Package</a></li>
|
||
|
<li class="navBarCell1Rev">Class</li>
|
||
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
<li><a href="../../../index-all.html">Index</a></li>
|
||
|
<li><a href="../../../help-doc.html">Help</a></li>
|
||
|
</ul>
|
||
|
<div class="aboutLanguage">
|
||
|
<script>
|
||
|
var url = window.location.href;
|
||
|
var pos = url.lastIndexOf('/javadoc/');
|
||
|
url = pos >= 0 ? (url.substring(0, pos) + '/javadoc/mymath.js') : (window.location.origin + '/mymath.js');
|
||
|
var script = document.createElement('script');
|
||
|
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML,' + url;
|
||
|
document.getElementsByTagName('head')[0].appendChild(script);
|
||
|
</script>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="subNav">
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../org/opencv/objdetect/FaceDetectorYN.html" title="class in org.opencv.objdetect"><span class="typeNameLink">Prev Class</span></a></li>
|
||
|
<li><a href="../../../org/opencv/objdetect/HOGDescriptor.html" title="class in org.opencv.objdetect"><span class="typeNameLink">Next Class</span></a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../index.html?org/opencv/objdetect/FaceRecognizerSF.html" target="_top">Frames</a></li>
|
||
|
<li><a href="FaceRecognizerSF.html" target="_top">No Frames</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList" id="allclasses_navbar_top">
|
||
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
||
|
</ul>
|
||
|
<div>
|
||
|
<script type="text/javascript"><!--
|
||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||
|
if(window==top) {
|
||
|
allClassesLink.style.display = "block";
|
||
|
}
|
||
|
else {
|
||
|
allClassesLink.style.display = "none";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="subNavList">
|
||
|
<li>Summary: </li>
|
||
|
<li>Nested | </li>
|
||
|
<li><a href="#field.summary">Field</a> | </li>
|
||
|
<li>Constr | </li>
|
||
|
<li><a href="#method.summary">Method</a></li>
|
||
|
</ul>
|
||
|
<ul class="subNavList">
|
||
|
<li>Detail: </li>
|
||
|
<li><a href="#field.detail">Field</a> | </li>
|
||
|
<li>Constr | </li>
|
||
|
<li><a href="#method.detail">Method</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<a name="skip.navbar.top">
|
||
|
<!-- -->
|
||
|
</a></div>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
<div class="header">
|
||
|
<div class="subTitle">org.opencv.objdetect</div>
|
||
|
<h2 title="Class FaceRecognizerSF" class="title">Class FaceRecognizerSF</h2>
|
||
|
</div>
|
||
|
<div class="contentContainer">
|
||
|
<ul class="inheritance">
|
||
|
<li>java.lang.Object</li>
|
||
|
<li>
|
||
|
<ul class="inheritance">
|
||
|
<li>org.opencv.objdetect.FaceRecognizerSF</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<div class="description">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<hr>
|
||
|
<br>
|
||
|
<pre>public class <span class="typeNameLabel">FaceRecognizerSF</span>
|
||
|
extends java.lang.Object</pre>
|
||
|
<div class="block">DNN-based face recognizer, model download link: https://drive.google.com/file/d/1ClK9WiB492c5OZFKveF3XiHCejoOxINW/view.</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="summary">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<!-- =========== FIELD SUMMARY =========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="field.summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Field Summary</h3>
|
||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
||
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||
|
<th class="colLast" scope="col">Field and Description</th>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><code>static int</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#FR_COSINE">FR_COSINE</a></span></code> </td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><code>static int</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#FR_NORM_L2">FR_NORM_L2</a></span></code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="method.summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Method Summary</h3>
|
||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||
|
<th class="colLast" scope="col">Method and Description</th>
|
||
|
</tr>
|
||
|
<tr id="i0" class="altColor">
|
||
|
<td class="colFirst"><code>static <a href="../../../org/opencv/objdetect/FaceRecognizerSF.html" title="class in org.opencv.objdetect">FaceRecognizerSF</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#Z:Z__fromPtr__-long-">__fromPtr__</a></span>(long addr)</code> </td>
|
||
|
</tr>
|
||
|
<tr id="i1" class="rowColor">
|
||
|
<td class="colFirst"><code>void</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#alignCrop-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-">alignCrop</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> src_img,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> face_box,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> aligned_img)</code>
|
||
|
<div class="block">Aligning image to put face on the standard position</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i2" class="altColor">
|
||
|
<td class="colFirst"><code>static <a href="../../../org/opencv/objdetect/FaceRecognizerSF.html" title="class in org.opencv.objdetect">FaceRecognizerSF</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#create-java.lang.String-java.lang.String-">create</a></span>(java.lang.String model,
|
||
|
java.lang.String config)</code>
|
||
|
<div class="block">Creates an instance of this class with given parameters</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i3" class="rowColor">
|
||
|
<td class="colFirst"><code>static <a href="../../../org/opencv/objdetect/FaceRecognizerSF.html" title="class in org.opencv.objdetect">FaceRecognizerSF</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#create-java.lang.String-java.lang.String-int-">create</a></span>(java.lang.String model,
|
||
|
java.lang.String config,
|
||
|
int backend_id)</code>
|
||
|
<div class="block">Creates an instance of this class with given parameters</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i4" class="altColor">
|
||
|
<td class="colFirst"><code>static <a href="../../../org/opencv/objdetect/FaceRecognizerSF.html" title="class in org.opencv.objdetect">FaceRecognizerSF</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#create-java.lang.String-java.lang.String-int-int-">create</a></span>(java.lang.String model,
|
||
|
java.lang.String config,
|
||
|
int backend_id,
|
||
|
int target_id)</code>
|
||
|
<div class="block">Creates an instance of this class with given parameters</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i5" class="rowColor">
|
||
|
<td class="colFirst"><code>void</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#feature-org.opencv.core.Mat-org.opencv.core.Mat-">feature</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> aligned_img,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> face_feature)</code>
|
||
|
<div class="block">Extracting face feature from aligned image</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i6" class="altColor">
|
||
|
<td class="colFirst"><code>long</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#getNativeObjAddr--">getNativeObjAddr</a></span>()</code> </td>
|
||
|
</tr>
|
||
|
<tr id="i7" class="rowColor">
|
||
|
<td class="colFirst"><code>double</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#match-org.opencv.core.Mat-org.opencv.core.Mat-">match</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> _face_feature1,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> _face_feature2)</code>
|
||
|
<div class="block">Calculating the distance between two face features</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i8" class="altColor">
|
||
|
<td class="colFirst"><code>double</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/objdetect/FaceRecognizerSF.html#match-org.opencv.core.Mat-org.opencv.core.Mat-int-">match</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> _face_feature1,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> _face_feature2,
|
||
|
int dis_type)</code>
|
||
|
<div class="block">Calculating the distance between two face features</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||
|
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="details">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<!-- ============ FIELD DETAIL =========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="field.detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Field Detail</h3>
|
||
|
<a name="FR_COSINE">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>FR_COSINE</h4>
|
||
|
<pre>public static final int FR_COSINE</pre>
|
||
|
<dl>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../constant-values.html#org.opencv.objdetect.FaceRecognizerSF.FR_COSINE">Constant Field Values</a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="FR_NORM_L2">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>FR_NORM_L2</h4>
|
||
|
<pre>public static final int FR_NORM_L2</pre>
|
||
|
<dl>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../constant-values.html#org.opencv.objdetect.FaceRecognizerSF.FR_NORM_L2">Constant Field Values</a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="method.detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Method Detail</h3>
|
||
|
<a name="Z:Z__fromPtr__-long-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>__fromPtr__</h4>
|
||
|
<pre>public static <a href="../../../org/opencv/objdetect/FaceRecognizerSF.html" title="class in org.opencv.objdetect">FaceRecognizerSF</a> __fromPtr__(long addr)</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="alignCrop-org.opencv.core.Mat-org.opencv.core.Mat-org.opencv.core.Mat-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>alignCrop</h4>
|
||
|
<pre>public void alignCrop(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> src_img,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> face_box,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> aligned_img)</pre>
|
||
|
<div class="block">Aligning image to put face on the standard position</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>src_img</code> - input image</dd>
|
||
|
<dd><code>face_box</code> - the detection result used for indicate face in input image</dd>
|
||
|
<dd><code>aligned_img</code> - output aligned image</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="create-java.lang.String-java.lang.String-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>create</h4>
|
||
|
<pre>public static <a href="../../../org/opencv/objdetect/FaceRecognizerSF.html" title="class in org.opencv.objdetect">FaceRecognizerSF</a> create(java.lang.String model,
|
||
|
java.lang.String config)</pre>
|
||
|
<div class="block">Creates an instance of this class with given parameters</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>model</code> - the path of the onnx model used for face recognition</dd>
|
||
|
<dd><code>config</code> - the path to the config file for compability, which is not requested for ONNX models</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>automatically generated</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="create-java.lang.String-java.lang.String-int-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>create</h4>
|
||
|
<pre>public static <a href="../../../org/opencv/objdetect/FaceRecognizerSF.html" title="class in org.opencv.objdetect">FaceRecognizerSF</a> create(java.lang.String model,
|
||
|
java.lang.String config,
|
||
|
int backend_id)</pre>
|
||
|
<div class="block">Creates an instance of this class with given parameters</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>model</code> - the path of the onnx model used for face recognition</dd>
|
||
|
<dd><code>config</code> - the path to the config file for compability, which is not requested for ONNX models</dd>
|
||
|
<dd><code>backend_id</code> - the id of backend</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>automatically generated</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="create-java.lang.String-java.lang.String-int-int-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>create</h4>
|
||
|
<pre>public static <a href="../../../org/opencv/objdetect/FaceRecognizerSF.html" title="class in org.opencv.objdetect">FaceRecognizerSF</a> create(java.lang.String model,
|
||
|
java.lang.String config,
|
||
|
int backend_id,
|
||
|
int target_id)</pre>
|
||
|
<div class="block">Creates an instance of this class with given parameters</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>model</code> - the path of the onnx model used for face recognition</dd>
|
||
|
<dd><code>config</code> - the path to the config file for compability, which is not requested for ONNX models</dd>
|
||
|
<dd><code>backend_id</code> - the id of backend</dd>
|
||
|
<dd><code>target_id</code> - the id of target device</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>automatically generated</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="feature-org.opencv.core.Mat-org.opencv.core.Mat-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>feature</h4>
|
||
|
<pre>public void feature(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> aligned_img,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> face_feature)</pre>
|
||
|
<div class="block">Extracting face feature from aligned image</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>aligned_img</code> - input aligned image</dd>
|
||
|
<dd><code>face_feature</code> - output face feature</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getNativeObjAddr--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getNativeObjAddr</h4>
|
||
|
<pre>public long getNativeObjAddr()</pre>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="match-org.opencv.core.Mat-org.opencv.core.Mat-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>match</h4>
|
||
|
<pre>public double match(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> _face_feature1,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> _face_feature2)</pre>
|
||
|
<div class="block">Calculating the distance between two face features</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>_face_feature1</code> - the first input feature</dd>
|
||
|
<dd><code>_face_feature2</code> - the second input feature of the same size and the same type as _face_feature1</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>automatically generated</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="match-org.opencv.core.Mat-org.opencv.core.Mat-int-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>match</h4>
|
||
|
<pre>public double match(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> _face_feature1,
|
||
|
<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a> _face_feature2,
|
||
|
int dis_type)</pre>
|
||
|
<div class="block">Calculating the distance between two face features</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>_face_feature1</code> - the first input feature</dd>
|
||
|
<dd><code>_face_feature2</code> - the second input feature of the same size and the same type as _face_feature1</dd>
|
||
|
<dd><code>dis_type</code> - defining the similarity with optional values "FR_OSINE" or "FR_NORM_L2"</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>automatically generated</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
<a name="navbar.bottom.firstrow">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="navList" title="Navigation">
|
||
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
||
|
<li><a href="package-summary.html">Package</a></li>
|
||
|
<li class="navBarCell1Rev">Class</li>
|
||
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
<li><a href="../../../index-all.html">Index</a></li>
|
||
|
<li><a href="../../../help-doc.html">Help</a></li>
|
||
|
</ul>
|
||
|
<div class="aboutLanguage">
|
||
|
<script>
|
||
|
var url = window.location.href;
|
||
|
var pos = url.lastIndexOf('/javadoc/');
|
||
|
url = pos >= 0 ? (url.substring(0, pos) + '/javadoc/mymath.js') : (window.location.origin + '/mymath.js');
|
||
|
var script = document.createElement('script');
|
||
|
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML,' + url;
|
||
|
document.getElementsByTagName('head')[0].appendChild(script);
|
||
|
</script>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="subNav">
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../org/opencv/objdetect/FaceDetectorYN.html" title="class in org.opencv.objdetect"><span class="typeNameLink">Prev Class</span></a></li>
|
||
|
<li><a href="../../../org/opencv/objdetect/HOGDescriptor.html" title="class in org.opencv.objdetect"><span class="typeNameLink">Next Class</span></a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../index.html?org/opencv/objdetect/FaceRecognizerSF.html" target="_top">Frames</a></li>
|
||
|
<li><a href="FaceRecognizerSF.html" target="_top">No Frames</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
||
|
</ul>
|
||
|
<div>
|
||
|
<script type="text/javascript"><!--
|
||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||
|
if(window==top) {
|
||
|
allClassesLink.style.display = "block";
|
||
|
}
|
||
|
else {
|
||
|
allClassesLink.style.display = "none";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="subNavList">
|
||
|
<li>Summary: </li>
|
||
|
<li>Nested | </li>
|
||
|
<li><a href="#field.summary">Field</a> | </li>
|
||
|
<li>Constr | </li>
|
||
|
<li><a href="#method.summary">Method</a></li>
|
||
|
</ul>
|
||
|
<ul class="subNavList">
|
||
|
<li>Detail: </li>
|
||
|
<li><a href="#field.detail">Field</a> | </li>
|
||
|
<li>Constr | </li>
|
||
|
<li><a href="#method.detail">Method</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<a name="skip.navbar.bottom">
|
||
|
<!-- -->
|
||
|
</a></div>
|
||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
<p class="legalCopy"><small>Generated on 2021-12-25 08:13:27 / OpenCV 4.5.5</small></p>
|
||
|
</body>
|
||
|
</html>
|