A Two-Colour CCD Survey of the North Celestial Cap: I. The Method