make the style in this code more professional and appealing =import tkinter as tk from…
- User
make the style in this code more professional and appealing =import tkinter as tk from PIL import Image, ImageTk
root=tk.Tk() root.title('Class Monitoring system') root.geometry('1000x1000')
Background image
bg_image = Image.open("D:/Final Year Project/bg-2.png") bg_photo = ImageTk.PhotoImage(bg_image) bg_label = tk.Label(root, image=bg_photo) bg_label.place(x=0, y=0, relwidth=1, relheight=1)
image = Image.open("D:/Final Year Project/logo.jpg") icon = ImageTk.PhotoImage(image) tk.Label(root,image=icon).pack(pady=20) tk.Label(root,text="CLASS MONITORING SYSTEM",bg='#6c757d',padx=20,height=2,width=40,font=('Arial', 35),fg='white').pack(pady=10) tk.Label(root,text="ATTENDENCE REPORT",bg='#6c757d',padx=20,height=2,font=('Arial', 30),fg='white').pack(pady=20) tk.Label(root,text="CLASS 8A",bg='#6c757d',padx=20,height=2,font=('Arial', 30),fg='white').pack(pady=10)
download_image = Image.open("D:/Final Year Project/download.png") download_icon = ImageTk.PhotoImage(download_image) tk.Button(root, text='Download Attendence Report',padx=20,pady=20, font=('Arial', 20), bg='#61a5c2', image=download_icon, compound=tk.LEFT,bd=0).pack(pady=20)
root.mainloop()
- Assistant
- User
not the code, i mean to say the output it genrerates make it look like a professional page. try your best
- Assistant
- User
is there any trained model available open source which can detect human actions like hes active , sleeping , reading writing, hand raised etc
- Assistant
- User
any pretrained dataset ?
- Assistant
- User
is there anything specific to student behaviour in class?
- Assistant
To the best of my knowledge as of the knowledge cutoff in early 2023, there isn't a large, publicly available dataset specifically tailored to student behavior in classroom settings for the purpose of training models to detect activities such as sleeping, reading, writing, raising a hand, etc. However, this is subject to change as new datasets may be released and made publicly available over time.
- User
where i can find pretrained models on general action recognition tasks
- Assistant
- User
modify this code and dont delete commented lines... just add to take input from webcam for 20 sec and save the result show in visually
- Assistant
- User
make amendment in this code =from ultralytics import YOLO
Load a model
model = YOLO("yolov8n.yaml") # build a new model from scratch
model = YOLO(r"D:\Class Behaviour analysis\runs\detect\train5\weights\best.pt") # load a pretrained model (recommended for training)
Use the model
##model.train(data="data.yaml", epochs=10) # train the model ##metrics = model.val() # evaluate model performance on the validation set results = model("D:\Class Behaviour analysis\test\1.jpg") # predict on an image
- Assistant