How Does One Go On Charging Ni-Cd Battery's
The normal charge rate for Nickel Cadmium (NiCd) cells is 1/10th of the capacity for 14 hours.

For the ones you have there the first would require a constant 30mA with the second needed 60mA.

You could use a resistor from 12v to provide the constant current but keep monitoring the voltage and current to determine if anything unusual occurs.

The voltage should not go over ~1.5V per cell.

NiCd are not legal in new equipment so those are old (The data code on the second is 0904 probably meaning 9th week of 2004).  They have probably degraded to the point where they do not function well.

When the batteries get old not only do they have reduced capacity but they also tend to have high self-discharge so even if they do charge up they may discharge by themselves in only a few days.

As the other poster indicates cadmium is toxic so they should be disposed of in an approved manner.

You can learn more at Battery University.