Who invented the camera is a difficult question to answer as the camera's development has grown throughout history since Ancient Greece and Ancient China. The first developments sprang forth from the invention of camera obscures that projected an image using mirrors and lenses. These were hardly permanent and did not create physical photographs.
The next real stage in the invention of the camera continued in 1817 with Nicéphore Niépce who took the first photograph. He created his own camera that took photographs that slowly faded away. Later, he would develop a technique using pewter and chemicals to create a permanent image of where light was shown and not shown.
The typical camera seen in movies that seems to take hours to take one photograph and is the reason why many old photographs had subjects that were not smiling was created by Désiré van Monckhoven who invented the collodion dry plates technique around 1855. This technique was used with many photographs from the Civil War and other events of the time. Later methods would expand on his technique and create quicker photographic machines and methods.
One of the most popular of these later methods was the invention of film by George Eastman. He created a process that had cameras creating images onto paper film and eventually celluloid. The cameras he would later begin to sell were called Kodak cameras and would be the early ancestor of what we call Kodak today. This would evolve into the mass production of cameras which was never thought to be possible until George Eastman set the world on fire with his invention.