|
streamlit # π The shiny star of our web app galaxy! |
|
opencv-python # πΈ Snap-happy king of camera wizardry! | π·π₯ cap = cv2.VideoCapture(0) - Snags your webcam faster than a paparazzi at a celebrity meltdown! | ποΈβ¨ cv2.imwrite("snap.jpg", cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)) - Saves a grayscale masterpiece like Picasso on a budget! | π΅οΈββοΈπ edges = cv2.Canny(frame, 100, 200) - Turns your pic into a crime scene outlineβedges so sharp they cut! |
|
sounddevice # ποΈ Audio ace dropping beats like a pro! | π€π©οΈ sd.rec(44100) - Snags sound like a storm-chasing rockstar! | ππ‘ sd.query_devices() - Spies audio gear like a tech sleuth! | πΆπΎ sd.play(data) - Blasts tunes faster than a DJ remix! |
|
imageio # πΌοΈ Lightweight champ of pixel-pushing antics! | πΉπ reader = imageio.get_reader('<video0>') - Peeks at your webcam like a shy artist stealing glances! | π¨οΈπ imageio.imwrite("pic.jpg", frame, quality=85) - Squeezes your pic into a JPEG tighter than skinny jeans after Thanksgiving! | ποΈπ€‘ imageio.mimwrite("gif.gif", [frame1, frame2], fps=5) - Stitches frames into a GIF like a clown juggling pixels! |
|
pyav # π¬ FFmpeg-powered AV maestro, bow down! | π₯π₯ container = av.open('/dev/video0') - Kicks off video capture like a rockstar smashing a guitar solo! | π¬πΏ frames = [f for f in av.open('vid.mp4').decode(video=0)] - Rips apart video frames like a movie critic on a rampage! | π€β¨ graph = av.filter.Graph().add("negate").pull() - Flips colors like a moody teenager dyeing their hair! |
|
moviepy # π₯ Video editing diva strutting her stuff! | ποΈπ clip = mp.ImageSequenceClip([frame1, frame2], fps=15) - Twirls frames into a video like a diva on a dance floor! | ππ clip = mp.VideoFileClip("vid.mp4").resize((320, 240)) - Shrinks your vid like a royal tailor fitting a gown! | π¬π€ final = mp.concatenate_videoclips([clip1, clip2]) - Glues clips together like a matchmaking grandma at a wedding! |
|
pandas # πΌ Data-wrangling panda for our file history circus! |
|
wave # π Wave rider for audio file shenanigans! |
|
numpy # π’ Number-crunching sidekick, always ready to rumble! |