by detecting the scanned medium directly