Apple, Google, Huawei, and Samsung are competing aggressively on the strength of their camera — apart from the Internet, it is the most used feature on a smartphone. They are spending thousands of millions of dollars on software and hardware to improve the photography on their devices. Meanwhile, Nikon and Canon are racking up losses…