diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-03-02 16:28:09 -0800 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-03-02 16:28:09 -0800 |
| commit | a9c5394e154db4bcaecc105959a3d785b0d3cc92 (patch) | |
| tree | 097d540a782186d5bbc39e1687fc20add4bbd699 | |
| parent | 9651c1a32e740927e65cdc31e3bfba06343f7989 (diff) | |
| download | kinect-a9c5394e154db4bcaecc105959a3d785b0d3cc92.tar.gz | |
Add face recognition plot and plot generating code
| -rwxr-xr-x | data/combined/graphs/plots.py | 60 | ||||
| -rw-r--r-- | experimental.tex | 8 | ||||
| -rw-r--r-- | graphics/10fold-naive.pdf | bin | 16474 -> 16474 bytes | |||
| -rw-r--r-- | graphics/back.pdf | bin | 15468 -> 15468 bytes | |||
| -rw-r--r-- | graphics/face.pdf | bin | 0 -> 12536 bytes | |||
| -rw-r--r-- | graphics/online-sht.pdf | bin | 24198 -> 24198 bytes | |||
| -rw-r--r-- | graphics/var.pdf | bin | 16186 -> 16186 bytes |
7 files changed, 67 insertions, 1 deletions
diff --git a/data/combined/graphs/plots.py b/data/combined/graphs/plots.py new file mode 100755 index 0000000..4b32f92 --- /dev/null +++ b/data/combined/graphs/plots.py @@ -0,0 +1,60 @@ +#! /usr/bin/python + +import numpy as np +import matplotlib.pyplot as plt + +l = ["3","5","10","all"] + +#10-fold, naive +plt.cla() +for i in l: + x,y = np.loadtxt(i+"_nb_off.mat",unpack=True) + plt.plot(100*x,100*y,label="$n=$ "+i,linewidth=0.8) + plt.xlabel("Recall [%]") + plt.ylabel("Precision [%]") + plt.legend(loc="best") + plt.savefig("10fold-naive.pdf") + +#online,SHT +plt.cla() +for i in l: + x,y = np.loadtxt(i+"_sht_on.mat",unpack=True) + plt.plot(100*x,100*y,label="$n=$ "+i,linewidth=0.8,markersize=4) + plt.xlabel("Recall [%]") + plt.ylabel("Precision [%]") + plt.legend(loc="best") + plt.savefig("online-sht.pdf") + + +#face +plt.cla() +x,y = np.loadtxt("all_nb_off.mat",unpack=True) +a,b = np.loadtxt("face.csv",delimiter=",", unpack=True) +plt.plot(100*x,100*y,linewidth=0.8,label="Skeleton") +plt.plot(100*a,100*b,linewidth=0.8,label="Face") +plt.xlabel("Recall [%]") +plt.ylabel("Precision [%]") +plt.legend(loc="best") +plt.savefig("face.pdf") + +#back +plt.cla() +x,y = np.loadtxt("back_all_sht_on.mat",unpack=True) +a,b = np.loadtxt("all_sht_on.mat",unpack=True) +plt.plot(100*x,100*y,linewidth=0.8,label="Away") +plt.plot(100*a,100*b,linewidth=0.8,label="Toward") +plt.xlabel("Recall [%]") +plt.ylabel("Precision [%]") +plt.legend(loc="best") +plt.savefig("back.pdf") + +#variance-reduction +plt.cla() +x,y = np.loadtxt("half-var-all_sht_on.mat",unpack=True) +a,b = np.loadtxt("all_sht_on.mat",unpack=True) +plt.plot(100*x,100*y,linewidth=0.8,label="Reduced noise") +plt.plot(100*a,100*b,linewidth=0.8,label="Original noise") +plt.xlabel("Recall [%]") +plt.ylabel("Precision [%]") +plt.legend(loc="best") +plt.savefig("var.pdf") diff --git a/experimental.tex b/experimental.tex index be1fc16..b70e886 100644 --- a/experimental.tex +++ b/experimental.tex @@ -179,7 +179,13 @@ sequence of frames as belonging to the same run. This additional information would be used by the SHT algorithm and would thus bias the results in favor of skeleton recognition. -\todo{PLOT MISSING} +\begin{figure}[t] + \begin{center} + \includegraphics[width=0.80\textwidth]{graphics/face.pdf} + \end{center} + \caption{Precision-Recall curve for face recognition and skeleton recognition} + \label{fig:face} +\end{figure} \paragraph{People walking away from the camera.} diff --git a/graphics/10fold-naive.pdf b/graphics/10fold-naive.pdf Binary files differindex 8f0fd7a..70b0e6c 100644 --- a/graphics/10fold-naive.pdf +++ b/graphics/10fold-naive.pdf diff --git a/graphics/back.pdf b/graphics/back.pdf Binary files differindex a803a78..66e0463 100644 --- a/graphics/back.pdf +++ b/graphics/back.pdf diff --git a/graphics/face.pdf b/graphics/face.pdf Binary files differnew file mode 100644 index 0000000..88db55e --- /dev/null +++ b/graphics/face.pdf diff --git a/graphics/online-sht.pdf b/graphics/online-sht.pdf Binary files differindex 834f52c..9511855 100644 --- a/graphics/online-sht.pdf +++ b/graphics/online-sht.pdf diff --git a/graphics/var.pdf b/graphics/var.pdf Binary files differindex 7c4bd3f..e787166 100644 --- a/graphics/var.pdf +++ b/graphics/var.pdf |
