How working tracking system?

i have an idea i wanna do some app on openframeworks.
it’s will be working like that ;

  • from computer user can be import some pdf file into app and with webcam can change pages with moving hands

it’s possible ?
if yes how?

Best Regards