Commit b80370cf authored by Sébastien MARCEL's avatar Sébastien MARCEL

Initial commit

parents
Pipeline #22097 passed with stage
in 4 seconds
*.swp
*~
*.aux
*.log
*.nav
*.out
*.snm
*.toc
*.pdf
main.tex
stages:
- build
.build_template: &build_job
stage: build
before_script:
- git clean -ffdx
# clone graphics
- rm -rf graphics
- git clone git@gitlab.idiap.ch:master-biometrics/graphics.git
script:
- make
linux:
<<: *build_job
tags:
- linidiap
# Section 1
## Slide 1
This is the first slide
## Slide 2
This is the second slide
TEXFILE=lab.tex
PDFFILE=$(TEXFILE:%.tex=%.pdf)
%.pdf: %.tex
pandoc -t beamer ??_*.md -o main.tex
pdflatex --shell-escape $<
pdflatex --shell-escape $<
all: $(PDFFILE)
.PHONY: clean
clean:
@rm -vf $(shell find . -name "*~")
@rm -vf *.log *.lot *.lof *.loa *.toc *.idx *.inc *.ilg *.ind *.bbl *.blg
@rm -vf *.aux *.glo *.dvi *.ps *.pdf *.out *.brf *.nav *.snm *.vrb
@rm -vf $(PDFFILE)
# Biometrics Lab
## Description
Slides of the lab:
- [x] lab 1: face,
- [ ] lab 2: iris and fingerprint,
- [ ] lab 3: speaker,
- [ ] lab 4: vein and multi-modal,
- [ ] lab 5: spoofing.
## Lab material
[Lab material](./lab/lab.md)
## LaTeX Beamer slides with pandoc
We are using [pandoc](https://pandoc.org) to convert simple .md files into latex beamer.
Please refer to the lecture example (git@gitlab.idiap.ch:master-biometrics/lecture-example.git) for more details.
## Setting up
**You need to refer** to the same section the lecture example (git@gitlab.idiap.ch:master-biometrics/lecture-example.git) for more details.
For a quick setup just do
```sh
$ git clone git@gitlab.idiap.ch:master-biometrics/graphics.git
$ git clone git@gitlab.idiap.ch:master-biometrics/<this-lab>.git
$ cd <this-lab>
$ rm -rf graphics
$ ln -s ../graphics .
```
## Building the slides
As slides are written in md format we need to convert them to latex before
compiling. We are uing pandoc to convert from md to beamer.
Proceed in 2 steps when working on the slides in .md files:
1. edit only the .md files
2. check if it compiles
* First convert all the .md files into a single latex file main.tex
``` sh
$ pandoc -t beamer ??_*.md -o main.tex
```
* Next compile lab.tex that includes the actual slides in main.tex
```sh
$ pdflatex lab
```
Finally when everything works fine and the lab.pdf is generated properly
you can simply invoke make than will execute the Makefile and run pandoc +
pdflatex:
```sh
$ make -B
```
It results in a ``lab.pdf`` file. Please don't git add/commit/push this
file nor any other compilation by product such as ``main.tex`` or
``*.log *.lot *.lof *.loa *.toc *.idx *.inc *.ilg *.ind *.bbl *.blg *.aux *.glo *.dvi *.ps *.pdf *.out *.brf *.nav *.snm *.vrb`` files.
\mode<presentation>
% Requirement
\RequirePackage{tikz}
\RequirePackage{graphicx}
%\RequirePackage{fontspec}
\RequirePackage{hyperref}
% Colors
\definecolor{unidistancedark}{RGB}{24,70,139}
\definecolor{unidistancelite}{RGB}{20,118,198}
\definecolor{darkred}{RGB}{180,0,0}
\definecolor{darkgreen}{RGB}{0,128,0}
% Defines the background of all slides
\setbeamertemplate{background}{
% \begin{tikzpicture}
% \fill[color=unidistancedark] (0,2.5) rectangle (2.5,5);
% \fill[color=unidistancelite] (2.7,2.5) rectangle (\the\paperwidth,5);
% \node (logo) at (0,8.3)
% {\includegraphics[width=.5\paperwidth]{graphics/logo/idiap}};
% \ifnum\thepage>1\relax%
% \fill[white,opacity=1] (0,0)
% rectangle(\the\paperwidth,\the\paperheight);
% \fi
% \end{tikzpicture}
\begin{tikzpicture}
% The x-coordinate of the image should NOT be 0 -- it is the center of the image
\node (logo) at (2,7.5) {\includegraphics[width=.25\paperwidth]{graphics/logo/idiap}};
\fill[color=unidistancedark] (0,3.0) rectangle (2.5,5);
\fill[color=unidistancelite] (2.7,3.0) rectangle (\the\paperwidth,5);
%\fill[color=white] (0,8.3) rectangle (2.5,5);
%\fill[color=unidistancedark] (0,2.5) rectangle (2.5,5);
%\fill[color=unidistancelite] (2.7,2.5) rectangle (\the\paperwidth,5);
\ifnum\thepage>1\relax%
\fill[white,opacity=1] (0,0)
rectangle(\the\paperwidth,\the\paperheight);
\fi
\end{tikzpicture}
}
% Defines some fonts and colors
\usefonttheme{structurebold}
\setbeamercolor{unidistance title}{fg=white}
%\setbeamercolor{unidistance title}{fg=unidistancedark}
\setbeamerfont{unidistance title}{series=\bfseries,size=\large}
\setbeamercolor{unidistance subtitle}{fg=white}
%\setbeamercolor{unidistance subtitle}{fg=unidistancedark}
\setbeamerfont{unidistance subtitle}{series=\bfseries,size=\normalsize}
\setbeamercolor{unidistance author}{fg=black}
\setbeamerfont{unidistance author}{series=\bfseries}
% Title page
\defbeamertemplate*{title page}{unidistance}[1][]
{
% Normally vkip here to overlay with the box in background
\vskip3.2cm%
\begin{beamercolorbox}[wd=14cm,leftskip=3cm,#1]{title page header}
\usebeamerfont{unidistance title}\usebeamercolor[fg]{unidistance title}\inserttitle\par%
\end{beamercolorbox}%
\vskip0.1cm%
\begin{beamercolorbox}[wd=14cm,leftskip=3cm,#1]{subtitle page header}
\usebeamerfont{unidistance subtitle}\usebeamercolor[fg]{unidistance subtitle}\insertsubtitle\par%
\end{beamercolorbox}
\vskip1cm%
\begin{beamercolorbox}[wd=14cm,leftskip=3cm,#1]{author}
\usebeamerfont{unidistance author}\usebeamercolor[fg]{unidistance author}\insertauthor%
\end{beamercolorbox}
}
%% Defines the frametitle header
%\defbeamertemplate*{frametitle}{unidistance}[1][]
%{
% \begin{beamercolorbox}[wd=\paperwidth,ht=50pt]{frametitle}
%
% \begin{tikzpicture}
% %tikz coordinates are (0,0) on the bottom left of the frame, as defined
% %above - the format is (x,y) - (horizontal,vertical) displacements
%
% %use the entire region as a canvas, paint it in white
% \useasboundingbox[fill=white](0,0) rectangle(\paperwidth,50pt);
%
% %%put logo, starting on the top-left (n.b.: position w.r.t. image center)
% %\node (logo) at (.15\paperwidth+5,25pt)
% % {\includegraphics[width=.1\paperwidth]{graphics/logo/idiap}};
%
% %options: title alone or title + subtitle
% \ifx\insertframesubtitle\@empty%
% {\node[anchor=west,unidistancedark,font=\LARGE] at (.32\paperwidth,17pt){\insertframetitle};}
% \else%
% {\node[anchor=west,unidistancedark,font=\Large] at (0.32\paperwidth,28pt){\insertframetitle};%
% \node[anchor=west,unidistancelite,font=\small] at (0.32\paperwidth,14pt){\insertframesubtitle};}%
% \fi
% \end{tikzpicture}
%
% \end{beamercolorbox}
%}
% Title page
\defbeamertemplate*{toc}{unidistance}[1][]
{
}
% Set itemize and enumeration lists
\setbeamertemplate{itemize items}[square]
\setbeamercolor*{itemize item}{fg=unidistancedark}
\setbeamercolor*{itemize subitem}{fg=unidistancedark}
\setbeamercolor*{itemize subsubitem}{fg=unidistancedark}
\setbeamertemplate{enumerate items}[default]
\setbeamercolor*{enumerate item}{fg=unidistancedark}
\setbeamercolor*{enumerate subitem}{fg=unidistancedark}
\setbeamercolor*{enumerate subsubitem}{fg=unidistancedark}
% Configure blocks
\setbeamertemplate{blocks}[square]
\setbeamercolor{block title}{bg=unidistancelite,fg=white}
\setbeamercolor{block body}{bg=unidistancelite!10,fg=black}
\setbeamercolor{block title alerted}{bg=darkred!80,fg=white}
\setbeamercolor{block body alerted}{bg=red!10,fg=black}
\setbeamercolor{block title example}{bg=darkgreen!80,fg=white}
\setbeamercolor{block body example}{bg=green!10,fg=black}
% Disables navigation symbols
\setbeamertemplate{navigation symbols}{}
% Defines the frame footer
\setbeamertemplate{footline}{
\begin{beamercolorbox}[wd=\the\paperwidth,ht=20pt]{section in head/foot}%
\begin{tikzpicture}
%use the entire region as a canvas, paint it in white
\useasboundingbox[fill=white](0,0) rectangle(\paperwidth,20pt);
%left box, darker color
\path[fill=unidistancedark] (30pt,0) rectangle (110pt,20pt);
\node[anchor=center,align=center,white,font={\fontsize{5pt}{3}\selectfont}] at (72pt,10pt) { \href{http://www.idiap.ch}{Idiap} };
%right box, lighter color with title and page number
\path[fill=unidistancelite] (112pt,0) rectangle (\paperwidth-30pt,20pt);
\node[anchor=west,white,font={\fontsize{5pt}{3}\selectfont}] at (115pt,10pt) { \insertsubtitle\ | \inserttitle\ };
\node[anchor=east,white,font={\fontsize{5pt}{3}\selectfont}] at (\paperwidth-30pt,10pt) { \insertframenumber/\inserttotalframenumber };
\end{tikzpicture}
\end{beamercolorbox}
}
% Redefines maketitle so we don't need to put it in a frame
% User needs to do just "\maketitle" after "\begin{document}"
\def\maketitle{%
\ifbeamer@inframe
\titlepage
\else
\begin{frame}[plain]
\titlepage
\end{frame}
\fi
}
% Settings
\setbeamercolor*{title page header}{fg=white}
\setbeamercolor*{author}{fg=white}
\setbeamercolor*{date}{fg=white}
% Define custom front page
\def\makefrontpage{%
\begin{frame}[plain,c,noframenumbering]
\begin{center}
\includegraphics[width=.75\paperwidth]{graphics/logo/idiap}
\vskip3em
\bfseries\href{http://www.idiap.ch}{www.idiap.ch}
\end{center}
\end{frame}
}
% Define custom last page
\def\makelastpage{%
\begin{frame}[plain,c,noframenumbering]
\begin{center}
\includegraphics[width=.75\paperwidth]{graphics/logo/idiap}
\vskip3em
\bfseries\href{http://www.idiap.ch}{www.idiap.ch}
\end{center}
\end{frame}
}
\mode<all>
../graphics
\ No newline at end of file
% graphics (png, pdf, ...) NOT eps (to convert to pdf with epstopdf)
\usepackage{graphicx}
% list of path for graphics (Warning: the / at the end of each path is important)
\graphicspath{{graphics/}
{graphics/idiap/}
{graphics/projects/}
{graphics/biometrics-group/team/}
{graphics/logo/}
{graphics/applications/}
{graphics/diagrams/}
{graphics/diagrams/face-processing/}
{graphics/diagrams/face-processing/feature-extraction/}
{graphics/diagrams/face-processing/geometric-norm/}
{graphics/diagrams/face-processing/photometric-norm/}
{graphics/diagrams/speech-processing/feature-extraction/}
{graphics/diagrams/lbp/}
{graphics/diagrams/pad/}
{graphics/diagrams/cnn/}
{graphics/diagrams/biometrics-and-antispoofing/}
{graphics/diagrams/biometrics-and-pad/}
{graphics/biometrics/history/}
{graphics/biometrics/face2D/}
{graphics/biometrics/face2D/atnt/}
{graphics/biometrics/face2D/mobio/}
{graphics/biometrics/face2D/swan/}
{graphics/biometrics/face2D/fargo/}
{graphics/biometrics/face3D/}
{graphics/biometrics/face3D/fdv2016-smarcel/}
{graphics/biometrics/hface/}
{graphics/biometrics/fingerprint/}
{graphics/biometrics/fingervein/utfvp/}
{graphics/biometrics/palmvein/}
{graphics/biometrics/wristvein/}
{graphics/biometrics/wristvein/biowave/}
{graphics/biometrics/tattoo/}
{graphics/biometrics/voice/}
{graphics/biometrics/iris/}
{graphics/biometrics/signature-and-handwriting/}
{graphics/capture-devices/fingervein/}
{graphics/capture-devices/palmvein/}
{graphics/capture-devices/biowave/}
{graphics/capture-devices/swan-dc-app/}
{graphics/presentation-attack-instrument/face/}
{graphics/presentation-attack-instrument/face-print/}
{graphics/presentation-attack-instrument/face-3D-mask-rigid/}
{graphics/presentation-attack-instrument/face-3D-mask-silicone/}
{graphics/presentation-attack-instrument/fingerprint/}
{graphics/presentation-attack-instrument/altered-fingerprint/}
{graphics/presentation-attack-instrument/fingervein/}
{graphics/presentation-attack-instrument/palmvein/}
{graphics/presentation-attack-instrument/voice-replay/}
{graphics/results/face-rec/scores/}
{graphics/results/face-pad/examples/}
{graphics/results/face-pad/examples/replay-mobile/}
{graphics/results/face-pad/sfar-scoredist/}
{graphics/results/speaker-pad/sfar-scoredist/}
{graphics/results/fingervein-pad/sfar-scoredist/}
{graphics/results/palmvein-pad/sfar-scoredist/}
{graphics/spoofing-in-movies/}
{graphics/rr/}
{graphics/tabularasa/}
{graphics/beat/}
%{graphics/biometric-center/}
{graphics/demos/}
}
\DeclareGraphicsExtensions{.pdf,.jpg,.png}
\documentclass{beamer}
\usepackage[T1]{fontenc}
\usetheme{idiapbsp}
\input{settings}
\input{graphics}
% These are NOT displayed on the front page
\subject{Lab}
\institute{Master Biometrics}
% These are displayed at the title page with contents
%\title{Biometrics}
%\subtitle{Lab: XXX}
%\author[author]{Dr. Sebastien Marcel}
\title{Biometrics: Lab}
\subtitle{XXX}
\author{S\'ebastien Marcel\\
Head of Biometrics Security and Privacy group\\
Idiap research institute\\
Switzerland\\
\url{www.idiap.ch/~marcel}
}
\date{\today}
\begin{document}
\maketitle
\input{main}
\end{document}
# Lab
Lab on
- [x] lab 1: face,
- [ ] lab 2: iris and fingerprint,
- [ ] lab 3: speaker,
- [ ] lab 4: vein and multi-modal,
- [ ] lab 5: spoofing.
**TODO**
%\usetheme{Pittsburgh}
\beamertemplatenavigationsymbolsempty
%\setbeamertemplate{footline}[frame number]
%\setbeamertemplate{footline}{\hspace*{.5cm}\tiny{\insertshorttitle \hspace*{50pt} \hfill\insertframenumber/\inserttotalframenumber\hspace*{.5cm}} \vspace{2pt}}
\setbeamertemplate{footline}{\hspace*{.5cm}\tiny{\, \hspace*{50pt} \hfill\insertframenumber/\inserttotalframenumber\hspace*{.5cm}} \vspace{2pt}}
\mode<handout>{
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=4mm]
%% \pgfpagesuselayout{4 on 1}[a4paper,landscape,border shrink=2mm]
}
\usepackage{subfigure}
\usepackage{float}
\usepackage{movie15}
%\usepackage[bigfiles]{media9}
\usepackage{animate}
\usepackage{color}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{pbox}
\usepackage{adjustbox}
\usepackage{amsmath} % to bold Latin letters with \mathbf{}, to make domains \mathbb{}
\usepackage{amssymb} % additional math symbols
\usepackage{bm} % to bold Greek (in $ $ and \[ \]) letters with \bm{}
%\usepackage{dsfont} % blackboard font or ds font (for N,R,Q,C)
% math symbols
\newfont{\bb}{msbm10 scaled\magstep1}
\newcommand{\myR}{\mbox{\bb R}}
\newcommand{\myN}{\mbox{\bb N}}
%\newcommand{\myurl}[1]{\href{http://#1}{#1}}
\usepackage{url}
\usepackage{hyperref}
%\hypersetup{colorlinks=true,linkcolor=red,citecolor=green,filecolor=magenta,urlcolor=blue}
\hypersetup{colorlinks=true,linkcolor=black,citecolor=green,filecolor=magenta,urlcolor=blue}
\definecolor{blue}{rgb}{0.0,0.0,0.55}
\definecolor{darkblue}{rgb}{0.10,0.10,0.70}
\definecolor{red}{rgb}{1.0,0.0,0.0}
\definecolor{darkred}{rgb}{0.75,0.0,0.0}
\definecolor{green}{rgb}{0.0,0.80,0.0}
\definecolor{darkgreen}{rgb}{0.0,0.5,0.0}
\definecolor{dimmed}{rgb}{0.8,0.8,0.8}
\mode<beamer>{
\setbeamercolor{math text}{fg=darkblue}
\setbeamercolor{local structure}{fg=black}
}
\mode<handout>{
\setbeamercolor{math text}{fg=black}
%% \setbeamercolor{structure}{fg=black}
\setbeamercolor{local structure}{fg=black}
}
% default, triangle, circle, square et ball
%\setbeamertemplate{itemize item}[triangle]
\setbeamertemplate{itemize item}[circle]
\setbeamertemplate{itemize subitem}[circle]
\setbeamertemplate{enumerate item}[square]
\setbeamertemplate{enumerate subitem}[circle]
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
%
\usepackage{pgfplots}
\usepackage{tikz}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment