Tensorflow Installation and Applications
This content covers the installation process of TensorFlow along with tutorials, usage of Jupyter notebook, and various tests like music genre classification using CNN, Optical Character Recognition with Tesseract, and object recognition with Yolo. It also provides insights into using LSTM for music genre classification and integrates TensorFlow into the code. Explore the world of AI with TensorFlow!
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Stem 7 AT using Tensorflow KH Wong Stem7:4: AI and Tensorflow 1
Overview Introduction Installation of tensorflow Tutorial of tensorflow Use of jupyter notebook Tests : CNN Music genre classification test Tesseract Optical Character Recognition (OCR) Yolo test (object recognition) Stem7:4: AI and Tensorflow 2
Introduction Install Tensorflow Tensorflow test Applications Stem7:4: AI and Tensorflow 3
Installation of Tensorflow https://sites.google.com/site/hongslinks/tensor_wi ndows Stem7:4: AI and Tensorflow 4
Tutorial of tensorflow https://sites.google.com/site/hongslinks/tensor_wi ndows Stem7:4: AI and Tensorflow 5
CNN Stem7:4: AI and Tensorflow 6
Using jupyter notebook https://sites.google.com/site/hongslinks/tensor_wi ndows/juptere3-notebook Stem7:4: AI and Tensorflow 7
Music genre classification test #for music genre lstm_genre_classifier_keras.py from (https://github.com/ruohoruotsi/LSTM-Music-Genre-Classification) from keras.models import Sequential from python.keras.layers.recurrent import LSTM from python.keras.layers import Dense from keras.optimizers import Adam need to change to if you use Tensorflow 2.x instead of tensorflow1 from tensorflow.python.keras.models import Sequential #add tensorflow from tensorflow.python.keras.layers.recurrent import LSTM #add tensorflow from tensorflow.python.keras.layers import Dense #add tensorflow from tensorflow.keras.optimizers import Adam #add tensorflow instead of tensorflow.python Stem7:4: AI and Tensorflow 8
Tesseract Optical Character Recognition (OCR) From https://digi.bib.uni-mannheim.de/tesseract/ Download: e.g. tesseract-ocr-w64-setup-v5.0.0.20190623.exe ,execute this file and Install tesseract Add win10-path: C:\Program Files\Tesseract-OCR; In Anacoda-prompt (administrator user) type Pip install pytesseract #https://medium.com/better-programming/beginners-guide-to-tesseract-ocr-using- python-10ecbb426c3d import pytesseract from PIL import Image img = Image.open("c://images//test1.png") #type text and save as image test1.png text = pytesseract.image_to_string(img, lang='eng') print(text) Stem7:4: AI and Tensorflow 9
Test 4.3a Tesseract Optical character recognition (OCR), send text to Arduino LCD display From https://digi.bib.uni-mannheim.de/tesseract/ Download: e.g. tesseract-ocr-w64-setup-v5.0.0.20190623.exe ,execute this file and Install tesseract Add win10-path: C:\Program Files\Tesseract-OCR; In Anacoda-prompt (administrator user) type Pip install pytesseract #https://medium.com/better-programming/beginners-guide-to-tesseract-ocr-using- python-10ecbb426c3d import pytesseract from PIL import Image img = Image.open("c://images//test1.png") #type text and save as image test1.png text = pytesseract.image_to_string(img, lang='eng') print(text) Stem7:4: AI and Tensorflow 10
Yolo test (not successful) From : https://medium.com/%E9%9B%9E%E9%9B%9E%E8%88%87 %E5%85%94%E5%85%94%E7%9A%84%E5%B7%A5%E7%A8 %8B%E4%B8%96%E7%95%8C/%E6%A9%9F%E5%99%A8%E 5%AD%B8%E7%BF%92-ml-note-yolo- %E5%88%A9%E7%94%A8%E5%BD%B1%E5%83%8F%E8%BE %A8%E8%AD%98%E5%81%9A%E7%89%A9%E4%BB%B6%E 5%81%B5%E6%B8%AC-object-detection- %E7%9A%84%E6%8A%80%E8%A1%93-3ad34a4cac70 In anaconda prompt (administrator mode) >conda install git >git clone https://github.com/thtrieu/darkflow >pip install Cython Stem7:4: AI and Tensorflow 11