Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

import cv2 from tkinter import * from tkinter import ttk from abc import ABC, abstractmethod from collections.abc import MutableMapping import xlwt class Visualize: def __init__(self):

"""import cv2 from tkinter import * from tkinter import ttk from abc import ABC, abstractmethod from collections.abc import MutableMapping import xlwt class Visualize: def __init__(self): self.root = Tk() self.root.title("Storeroom Software") self.frame = ttk.Frame(self.root, padding=10) self.frame.grid() self.capture_button = ttk.Button(self.frame, text="Capture", command=self.capture_video) self.capture_button.grid(column=0, row=0) self.image_button = ttk.Button(self.frame, text="Image", command=self.show_image) self.image_button.grid(column=1, row=0) self.root.mainloop() def capture_video(self): self.cap = cv2.VideoCapture(0) while True: ret, frame = self.cap.read() cv2.imshow("Storeroom", frame) if cv2.waitKey(1) == 27: break self.cap.release() cv2.destroyAllWindows()"""
this continue like this: class RawMaterials(MutableMapping): def __init__(self, *args, **kwargs): self.store = dict() self.update(dict(*args, **kwargs)) # use the free update to set keys def __getitem__(self, key): return self.store[self.__keytransform__(key)] def __setitem__(self, key, value): self.store[self.__keytransform__(key)] = value def __delitem__(self, key): del self.store[self.__keytransform__(key)] def __iter__(self): return iter(self.store) def __len__(self): return len(self.store) def __keytransform__(self, key): return key

In the first comment line we opened camera with visuaile class and now we want to write in this code work like this

3. Write a class named RawMaterials

5. Products class should inherit the RawMaterials class

6. At least 5 raw material items (objects) should be given to the software with the following attributes:

Name (dress, pen ect)

Date of purchase(20.10.2021)

Name of Supplier(sem)

Storage expiration date(21.10.2021)

Storage code(55512244)

Description(this is a pink dress)

we want to add this in this code

And add an interface where users can add products

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

What is Amazon's diversity statement?

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago

Question

Detailed note on the contributions of F.W.Taylor

Answered: 1 week ago