Yes, only a judge can make a legally effective or binding determination of incompetency. It does not matter how many other people, including doctors, believe the person incompetent; there has to be a court adjudication of incompetence for there to be any legal effect.