January 2019
Intermediate to advanced
342 pages
9h 17m
English
The inference of the test data can be run by invoking the evaluate function. The evaluate function is illustrated as follows for reference. Do note that the evaluate should be designed to look at the accuracy from the overall CAPTCHA perspective and not on the character level of the CAPTCHA. So, only when all four characters of the CAPTCHA target matches the prediction can we flag the CAPTCHA as being correctly identified by the CNN.
The evaluate function for running inference on test CAPTCHAs can be coded as follows:
def evaluate(model_path,eval_dest,outdir,fetch_target=True): char_to_index_dict,index_to_char_dict = create_dict_char_to_index() files = os.listdir(eval_dest) model = keras.models.load_model(model_path) ...
Read now
Unlock full access