modify camera probe to use the cpp interface