There are three folders of images with size 128 x 128 to use for test,train,and validation. There are subfolders called goodChair and damagedChair. Create a python image recognition program that will predict a good and damaged chair. Please create a program that creates a model with two subclass from the images. Then, use the model to predict images in the test folders with prediction of whether the images are good or damaged chairs. Print out the predictions in the folder with the label of good or bad chair, and the accuracy of the image.
Please do not give solution in image format thanku
There are three folders of images with size 128 x 128 to use for test,train,and validation. There are subfolders called goodChair and damagedChair. Create a python image recognition program that will predict a good and damaged chair. Please create a program that creates a model with two subclass from the images. Then, use the model to predict images in the test folders with prediction of whether the images are good or damaged chairs. Print out the predictions in the folder with the label of good or bad chair, and the accuracy of the image.
Requirement of python program:
-code for model
-code that uses model for image classification to predict the images
-code that prints prediction of images and percentage of accuracy
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)