A man who set up secret cameras to film visitors to his home for his own sexual gratification has been convicted.