May 2018
Beginner
490 pages
13h 16m
English
This section uses CNN_TDC_STRATEGY.py to apply the trained models to the target concept images. READ_CNN_MODEL.py (as shown previously) was converted into CNN_TDC_STRATEGY.py by adding variable directory paths (for the model.h5 files and images) and classification messages, as shown in the following code:
#loads,traffic,food processingA=['dataset_O/','dataset_traffic/','dataset/']MS1=['loaded','jammed','productive']MS2=['unloaded','change','gap']#____________________LOAD MODEL____________________________json_file = open(directory+'model/model.json', 'r')....s=identify(directory+'classify/img1.jpg')
Each subdirectory contains four subdirectories:
Read now
Unlock full access