From the videos shown, I see "pattern" comparison, specially on the second example where we can clearly see "alignment" squares to help the digitising.
So I guess that, complicated, yes, specially finding the "test" boundaries, then it's a matter of creating a grid, and compare it to a master pattern.
Of course, this is my theory...