File size: 6,354 Bytes
0b158b6
b65f4e0
0b158b6
 
b65f4e0
 
 
 
 
 
 
 
 
 
0b158b6
 
b65f4e0
 
 
 
 
 
 
 
 
 
0b158b6
 
b65f4e0
 
 
 
 
 
 
 
 
 
0b158b6
 
b65f4e0
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Streamlit Base
streamlit  # 🌟 The shiny star of our web app galaxy! | "st.write('Hello, world!')" - Greets the universe like a cosmic chatbot!

# PDF Libraries
pypdf  # πŸ“œ Splits, merges, and extracts text from PDFs | "pypdf.PdfReader('doc.pdf').pages[0].extract_text()" - Snags text faster than a paper shredder at a spy convention!
pikepdf  # πŸ“œ Edits PDFs with low-level control using QPDF | "pikepdf.Pdf.open('in.pdf').save('out.pdf')" - Gives your PDF a makeover like a digital plastic surgeon!
pdfminer.six  # πŸ“œ Extracts text and layout from PDFs | "pdfminer.high_level.extract_text('doc.pdf')" - Pulls text out like a magician yanking a rabbit from a hat!
fpdf2  # πŸ“œ Generates PDFs from scratch | "fpdf.FPDF().add_page().output('new.pdf')" - Whips up a PDF quicker than a chef flipping pancakes!
pdfkit  # πŸ“œ Converts HTML to PDF (requires wkhtmltopdf) | "pdfkit.from_url('http://example.com', 'out.pdf')" - Turns web pages into PDFs like a spider spinning a paper web!
pdfrw  # πŸ“œ Reads/writes PDFs, supports merging | "pdfrw.PdfReader('doc.pdf')" - Reads PDFs like a librarian with a caffeine buzz!
pdfplumber  # πŸ“œ Extracts text and tables from PDFs | "pdfplumber.open('doc.pdf').pages[0].extract_text()" - Dives into PDFs and grabs text like a plumber fixing a leaky pipe!
pymupdf  # πŸ“œ High-performance PDF reading/writing | "fitz.open('doc.pdf')[0].get_text()" - Speed-reads PDFs faster than a bookworm on espresso!
borb  # πŸ“œ Modern PDF creation and editing | "borb.pdf.Document().save('out.pdf')" - Crafts PDFs smoother than a bard reciting poetry!
pdf2image  # πŸ“œ Converts PDFs to images (requires Poppler) | "pdf2image.convert_from_path('doc.pdf')[0].save('out.jpg')" - Turns PDFs into pics like a wizard waving a wand!

# Image Capture Libraries
opencv-python  # πŸ“Έ Captures and processes images from cameras | "cv2.imwrite('snap.jpg', cv2.VideoCapture(0).read()[1])" - Snaps a pic quicker than a paparazzi at a celebrity meltdown!
pillow  # πŸ–ΌοΈ Processes and saves images | "Image.fromarray(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)).save('out.jpg')" - Polishes pics like a pillow fluffer at a sleepover!
imutils  # πŸ“Έ Simplifies image capture with threading | "imutils.video.VideoStream(src=0).start().read()" - Grabs frames smoother than a cat burglar in sneakers!
pyscreeze  # πŸ“Έ Captures screenshots | "pyscreeze.screenshot().save('screen.jpg')" - Snags your screen like a sneaky spy with a camera!
pyautogui  # πŸ“Έ Captures screenshots and automates | "pyautogui.screenshot().save('screen.jpg')" - Snaps your desktop faster than a robot paparazzo!
mss  # πŸ“Έ Fast screenshot capture | "mss.mss().shot(output='screen.png')" - Captures screens quicker than a ninja snapping selfies!
imageio  # πŸ“Έ Reads/writes images, supports cameras | "imageio.imwrite('out.jpg', imageio.get_reader('<video0>').get_next_data())" - Snags images like a pirate looting a pixel treasure chest!
pygrabber  # πŸ“Έ Captures images on Windows via DirectShow | "pygrabber.dshow_graph.FilterGraph().grab_frame().save('out.jpg')" - Grabs Windows shots like a cowboy roping a pixel steer!
scikit-image  # πŸ“Έ Advanced image processing | "skimage.io.imsave('out.jpg', frame)" - Processes pics like a scientist dissecting a pixel frog!
grab  # πŸ“Έ Captures screenshots with a simple API | "grab.Grab().screen().save('screen.jpg')" - Snaps screens like a ghost haunting your desktop!

# Video Capture Libraries
opencv-python  # πŸŽ₯ Captures video from cameras | "cv2.VideoCapture(0).read()[1]" - Grabs video frames like a director snatching scenes from a blockbuster!
vidgear  # πŸŽ₯ High-performance video capture with FFmpeg | "vidgear.gears.CamGear(source=0).start().read()" - Streams video smoother than a greased-up eel!
moviepy  # πŸŽ₯ Edits and processes video files | "moviepy.editor.VideoFileClip('video.mp4').write_videofile('out.mp4')" - Edits clips like a director yelling 'Cut!' at a pixel party!
pyav  # πŸŽ₯ FFmpeg-based video capture | "av.open('/dev/video0').decode(video=0).__next__()" - Grabs frames like a ninja snatching scrolls from a vault!
pafy  # πŸŽ₯ Streams YouTube videos (requires youtube-dl) | "pafy.new('youtube_url').getbest().url" - Streams YouTube like a couch potato binge-watching cat videos!
cvpubsubs  # πŸŽ₯ Multi-camera video capture with pub/sub | "cvpubsubs.webcam_pub.VideoHandlerThread(0).start()" - Captures cams like a pub serving pixel pints!
imutils  # πŸŽ₯ Threaded video capture | "imutils.video.VideoStream(src=0).start().read()" - Streams video like a thief sneaking frames in the night!
imageio  # πŸŽ₯ Reads video from cameras | "imageio.get_reader('<video0>').get_next_data()" - Snags video frames like a fisherman reeling in pixel fish!
grab  # πŸŽ₯ Captures screen video (via screenshots) | "grab.Grab().screen().save('frame.jpg')" - Records screens like a ghost filming a desktop haunting!
pyscreeze  # πŸŽ₯ Captures screen video (via screenshots) | "pyscreeze.screenshot().save('screen.jpg')" - Snaps screen video like a spy with a frame-by-frame camera!

# Audio Capture Libraries
pydub  # 🎡 Manipulates audio, supports recording with FFmpeg | "pydub.AudioSegment.from_file('audio.wav').export('out.wav')" - Twists audio like a DJ spinning tunes at a silent disco!
sounddevice  # 🎡 Low-latency audio capture | "sounddevice.rec(44100).tobytes()" - Snags audio smoother than a whisper in a quiet cave!
soundfile  # 🎡 Reads/writes audio files | "soundfile.write('out.wav', data, 44100)" - Saves sound like a librarian archiving whispers!
pyaudioanalysis  # 🎡 Audio analysis with capture | "pyAudioAnalysis.audioBasicIO.read_audio_file('audio.wav')[1]" - Analyzes audio like a detective cracking a sonic mystery!
pyo  # 🎡 Audio processing and synthesis | "pyo.Server().boot().start()" - Spins audio magic like a wizard mixing potions!
speechrecognition  # 🎡 Captures audio for speech recognition | "speech_recognition.Recognizer().listen(speech_recognition.Microphone())" - Hears you like a nosy neighbor with super ears!
soundcard  # 🎡 Cross-platform audio capture | "soundcard.default_microphone().record(44100, 1)" - Captures sound like a bard strumming a silent lute!
webrtcvad  # 🎡 Voice activity detection for audio capture | "webrtcvad.Vad().is_speech(audio_frame, 16000)" - Detects voices like a spy eavesdropping on a whisper party!