Aim Create a class called TabletCamera and a class called Facial_recognition that will be the base classes of a derived class called BioTablet. Steps for Completion Create a TabletCamera class that will be initialized with a pixels attribute. Create a Facial_recognition class with a scan_face method that prints the message, Scanning Face... Create a BioTablet class that inherits from both the TabletCamera and Facial_recognition classes. At the bottom of the script initialize an instance of the BioTablet class and pass it the value "12MP". Then we call the scan_face method and also print out the pixels attribute. Run the script with python3 main.py command and we should have an output that looks like this: Scanning Face...
Aim
Create a class called TabletCamera and a class called Facial_recognition that will be the base classes of a derived class called BioTablet.
Steps for Completion
-
Create a TabletCamera class that will be initialized with a pixels attribute.
-
Create a Facial_recognition class with a scan_face method that prints the message, Scanning Face...
-
Create a BioTablet class that inherits from both the TabletCamera and Facial_recognition classes.
-
At the bottom of the script initialize an instance of the BioTablet class and pass it the value "12MP". Then we call the scan_face method and also print out the pixels attribute.
Run the script with python3 main.py command and we should have an output that looks like this:
Scanning Face...
12MP
Code should be based off of the screenshot
![main.py
+
1 # Write the TabletCamera class here
2
234
3 # Write the Facial_recognition class here
4
5 # Write the BioTablet class here
6
7 if __name__ == '__main__':
8 # Write an instance of the BioTablet class
9
10 # Call the scan_face method from the instance
123
12 # Print the pixels from the instance
13
14](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F79b75ebb-5157-4aee-99cf-2c8fdce2f8b2%2F3708542e-6e20-4a92-a56c-b420d7621ef5%2Frsey2vq_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 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)