Alternative approach Install RedMobile on phone (costs £4)
Use it to take pictures and forward them onto another machine to process them via MQTT