A judge can also dismiss a case on the onset, if the judge feels that the DA had no valid grounds to prosecute. That doesn't even find someone innocent, it just comes a lot closer than an acquittal...