I was in a similar situation with people who ditched me with a project at the last second. Usually, the teacher will "catch" those who don't do their work. In my case, she actually asked who did it. I tried to cover for them, but.... it was kinda obvious they didn't do anything. Since it's a final project, try working with someone else in the class. Do like a study-buddy thing with someone who's doing their work, share ideas. If it's history you can give me a shout and I'll try and help ya out.
Think about it this way: The professor will know that these fools decided to slack off. If you turn in a B project yourself and put the extra effort into it, the dirt will be on them. In my situation, I got literally stood up by every member in my group. We were supposed to have a group paper ready for class, but I never heard back on what the final paper was. They hadn't done any work all semester and I sensed what was up, so I wrote my part of the paper but embellished on it. Of course, I got asked 10 minutes before class to present my piece. I got torn apart but only because I didn't do in-text examples. The teacher fixed the problem by reorganizing everyone into groups based on perceived interest. They made up something on the spot.
This is your chance to look good in front of everybody else.
If you really don't get along with the professor, drop the class and take it with someone else. I actually later dropped the class, I was dominating conversation or something. I really didn't like her teaching methods.
Don't directly confront your teacher, especially not blow up. Trust me, if it's viewed as confrontational it'll be big trouble. I'm guessing you don't have the greatest hold on your non-verbal communication skills, and it might show if you feel angry in ways you don't really comprehend. That is, if your problems are similar to mine.
If you do talk to your teacher, do it quietly, in her office. Kindly mention that you would appreciate transferring groups.