This is a Lua script to manage capturing process on diybookscanners with chdkptp