Computer-assisted Venus flytrap captures objects on demand