def METHOD_NAME(self, x, y, code=0):
    for i in range(defs.codebox_length):
        code <<= 1
        coverage = self.obj.recognize.get_coverage(
            x + (i * defs.codebox_step) + defs.codebox_offset,
            y + defs.codebox_offset,
            defs.codebox_step - 2 * defs.codebox_offset,
            defs.codebox_height - 2 * defs.codebox_offset
        )
        if coverage > defs.codebox_on_coverage:
            code += 1
    return code