The judge was in a difficult position. He may correctly "guess" that no consent was given. But that guess irrelevant in a court of law.

I don't see that he had any other choice than to acquit.

My personal opinion is that the cab driver is s scum bag and very likely took advantage of the young woman. My opinion, however, is also irrelevant.