opencv capture app: some fix