添加测试图片

添加测试图片
This commit is contained in:
2020-01-07 14:49:10 +08:00
parent 0b5a672af4
commit a674ae1567
16 changed files with 7 additions and 16 deletions

View File

@@ -13,6 +13,7 @@
using namespace std; using namespace std;
//#define mydataFmt double //#define mydataFmt double
#define Num 128 #define Num 128
//#define Num 512
typedef float mydataFmt; typedef float mydataFmt;
struct pBox : public cv::String { struct pBox : public cv::String {

View File

@@ -159,17 +159,7 @@ void run() {
int b = 0; int b = 0;
if (b == 0) { if (b == 0) {
// Mat image = imread("../40.jpg"); Mat image = imread("../test_img/zhangjie0.jpeg");
Mat image = imread("../3.jpeg");
// Mat image = imread("../4.jpeg");
// Mat image = imread("../xiena.jpeg");
// Mat image = imread("../hejiong.jpeg");
// Mat image = imread("../libingbing.jpeg");
// Mat image = imread("../zhangjie.jpg");
// Mat image = imread("../Kong_Weiye.jpg");
// Mat image = imread("../kkk.jpg");
// Mat image = imread("../20.png");
// Mat image = imread("../emb_img/0.jpg");
clock_t start; clock_t start;
start = clock(); start = clock();
@@ -180,7 +170,7 @@ void run() {
run_facenet(image, vecRect, 13);// 第三个参数csv数量如果为0则是保存emb到csv功能 run_facenet(image, vecRect, 13);// 第三个参数csv数量如果为0则是保存emb到csv功能
imshow("result", image); imshow("result", image);
imwrite("../result.jpg", image); imwrite("../test_img/result.jpg", image);
start = clock() - start; start = clock() - start;
// cout<<"time is "<<start/10e3<<endl; // cout<<"time is "<<start/10e3<<endl;
cout << "time is " << (double) start / CLOCKS_PER_SEC * 1000 << "ms" << endl; cout << "time is " << (double) start / CLOCKS_PER_SEC * 1000 << "ms" << endl;
@@ -236,8 +226,8 @@ void test_facenet(Mat &image, vector<Rect> &vecRect, vector<mydataFmt> &n) {
* 对比两张图两个人的emb * 对比两张图两个人的emb
*/ */
void test() { void test() {
Mat image0 = imread("../hejiong1.jpeg"); Mat image0 = imread("../test_img/tom1.jpeg");
Mat image1 = imread("../hejiong0.jpeg"); Mat image1 = imread("../test_img/tom0.jpeg");
image0 = RS(image0); image0 = RS(image0);
image1 = RS(image1); image1 = RS(image1);
@@ -274,9 +264,9 @@ void test() {
imshow("result0", image0); imshow("result0", image0);
// resizeWindow("result0", w0, h0); //创建一个固定值大小的窗口 // resizeWindow("result0", w0, h0); //创建一个固定值大小的窗口
imwrite("../result0.jpg", image0); imwrite("../test_img/result0.jpg", image0);
imshow("result1", image1); imshow("result1", image1);
imwrite("../result1.jpg", image1); imwrite("../test_img/result1.jpg", image1);
start = clock() - start; start = clock() - start;
// cout<<"time is "<<start/10e3<<endl; // cout<<"time is "<<start/10e3<<endl;
cout << "time is " << (double) start / CLOCKS_PER_SEC * 1000 << "ms" << endl; cout << "time is " << (double) start / CLOCKS_PER_SEC * 1000 << "ms" << endl;

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

BIN
test_img/jason0.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
test_img/jason1.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
test_img/tom0.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
test_img/tom1.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB