Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!