Huawei enhances the cameras of its latest flagship phone by using software to analyse what is being photographed.