How working tracking system?

Hello.
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?

Thanks.
Best Regards