DESCRIPTION
-----------
This projects brings an open source standalone and portable tool 
that helps to print (from home and without using a photo booth 
software) photographs that conform to the biometric passport 
standards.


ARCHITECTURE
------------
The main classes (package: com.otk.application):
- Main: only serves as the application entry point
- IdPhotoProject: the project class implementing all the features offered in the GUI
- IdPhotoUI: generates the GUI by using the RelectionUI library + customizations.


DEVELOPERS & SUPPORT
--------------------
For more information about about the developers or in order to
get some support please contact the owners of this website:
https://www.phoyosystem.com


DEBIAN INTEGRATION
------------------
Build commands:
	sudo apt-get install libpdfbox-java
	sudo apt-get install libjempbox-java
	
	export DEBFULLNAME="OTK Software"
	export DEBEMAIL="contact@otksoftware.com"
	
	mh_make	(then add these to debian/control#Depends: openjdk-8-jre, ffmpeg, v4l-utils)

	export VERSION=`cat debian/changelog | grep UNRELEASED |  grep -P '\d+(\.\d+)+' -o`
	export MAVEN_VERSION=`cat pom.xml | grep -A10 "<project " | grep "<version>" |  grep -P '\d+(\.\d+)+' -o`
	if [ "$VERSION" == "$MAVEN_VERSION" ]; then echo "Current version=$VERSION"; else echo "---- WARNING: Version mismatch: DEBIAN=$VERSION and MAVEN=$MAVEN_VERSION ----"; fi
	
	cp  debian-resources/install debian/install
	echo 'tar cfz ../phoyo-id_$VERSION.orig.tar.gz src debian-resources *.xml *.txt' > debian/orig-tar.sh; chmod +x debian/orig-tar.sh; debian/orig-tar.sh
	echo 'extend-diff-ignore = "(debian|tmp|misc|jvm|\.classpath|\.settings|\.project)"' > debian/source/options
	
	cp pom.xml pom.beforeDebianBuild.xml;\
	BUILD_DIR="$HOME/tmp/phoyo-id";\
	rm -rf "$BUILD_DIR";\
	mkdir "$BUILD_DIR";\
	mv ../phoyo-id_$VERSION.orig.tar.gz "$BUILD_DIR/..";\
	cp -r debian "$BUILD_DIR";\
	chmod -x "$BUILD_DIR/debian/install";\
	cd "$BUILD_DIR";\
	tar xfz ../phoyo-id_$VERSION.orig.tar.gz;\
	debuild;\
	cd -;\
	cp pom.beforeDebianBuild.xml pom.xml
	
Cleaning command:
	cd $HOME/tmp/phoyo-id; rm ../phoyo-id*.*; cd -
	debuild clean


ACKNOWLEDGEMENTS
----------------
Thanks to the developers of the following open source projects:
- reflectionui (http://javacollection.net/reflectionui/)
- pdfbox (https://pdfbox.apache.org/)
- jhlabs (http://www.jhlabs.com/)
