def ham_text(individual, config):
    if (trg_image is None):
        get_trg_image()
    map_arr = individual.chromosome.map_arr[10:(- 10), 10:(- 10)]
    return (- (trg_image != map_arr).sum())
def ham_text(individual, config):
    if (trg_image is None):
        get_trg_image()
    map_arr = individual.chromosome.map_arr[10:(- 10), 10:(- 10)]
    return (- (trg_image != map_arr).sum())