Quick beginner question

Please forgive me, but at the end of the game here, in the red circles would black claim those white stones? Or would you have to play on to capture (how would this situation be scored) and visa versa in the blue circle would they claim the 3 black stones? Thanks!

Please forgive me, but at the end of the game here, in the red circles would black claim those white stones? Or would you have to play on to capture (how would this situation be scored) and visa versa in the blue circle would they claim the 3 black stones? Thanks!