We give a concrete and surprisingly simple characterization of compact sets $ K \subset \mathbb{R}^{{2 \times 2}} $ for which families of approximate solutions to the inclusion problem$Du$∈$K$are compact. In particular our condition is algebraic and can be tested algorithmically. We also prove that the quasiconvex hull of compact sets of 2 × 2 matrices can be localized. This is false for compact sets in higher dimensions in general.