Sounds like Inspector Gadget, except the girl was a normal girl who was just really smart and it was her uncle who was the cybernetically enhanced detective but he was a bit of a doofus and there was a dog, also.