May 2018
Beginner
490 pages
13h 16m
English
CRL-MM-IoT_SVM.py uses a fine-tuned version of the MDP_Graph.py described in the previous chapter.
If the crlmm function, which classifies parking lot images into full or available space, returns a 0, the program detects it and displays a message. The code samples contain the line number of the following code excerpt:
389: if(crlmm==0): full = load_img("FULL.JPG") plt.subplot(111) plt.imshow(full) plt.title('PARKING LOT STATUS : This parking lot is full.' +'\n'+'Another webcam is consulted',fontname='Arial', fontsize=10) #plt.text(0.1,2, "The frame is the input of a trained CNN") plt.show(block=False) time.sleep(5) plt.close() print("This parking lot is full, searching...") ...Read now
Unlock full access