显示底片位置的txt文件如下所示:
<?php
$res = $conn->query("SELECT * FROM activitybook");
$sId = [];
echo "<table>";
while($row=$res->fetch_array())
{
if (count($sId) == 0) {
$sId[] = $row['sid'];
}
if (!in_array($row['sid'], $sId)) {
$sId[] = $row['sid'];
echo "</table><table>";
}
echo
"<tr>
<th>SID</th>
<th>Date</th>
<th>FName</th>
<th>LName</th>
<th>activity</th>
<th>time</th>
<th>score</th>
</tr>
<tr>
<td>" . $row['sid'] . "</td>
<td>" . $row['fname'] . "</td>
<td>" . $row['lname'] . "</td>
<td>" . $row['activity'] . "</td>
<td>" . $row['atime'] . "</td>
<td>" . $row['ascore'] . "</td>
</tr>";
}
?>
我使用以下代码:
F:\SampleTraining\posdata\0.jpg
F:\SampleTraining\posdata\1.jpg
F:\SampleTraining\posdata\2.jpg
....
F:\SampleTraining\posdata\405.jpg
负图txt文件为
haartraining.exe -data xml -vec pos.vec -bg negdata.txt -nstages 6 -minhitrate 0.5 -maxfalsealarm 0.3 -npos 405 -nneg 957 -w 30 -h 30 -nonsym -mem 2048
我使用python3.7和opencv3.4