Tell name of each instrument s
cd /home/daytona/workspace && python3 -c " import fitz # PyMuPDF doc = fitz.open('/home/daytona/workspace/attachments/aabb9e7c-14cb-46a9-b241-3e2b3cafd84d/Image to PDF 20260711 18.38.29.pdf') print(f'Pages: {len(doc)}') for i, page in enumerate(doc): images = page.get_images(full=True) print(f'Page {i+1}: {len(images)} images') for j, img in enumerate(images): xref = img[0] base_image = doc.extract_image(xref) img_bytes = base_image['image'] ext = base_image['ext'] fname = f'/home/daytona/workspace/attachments/page{i+1}_img{j+1}.{ext}' with open(fname, 'wb') as f: f.write(img_bytes) print(f' Saved: {fname}') "
cd /home/daytona/workspace && python3 -c " from pypdf import PdfReader import base64, io reader = PdfReader('/home/daytona/workspace/attachments/aabb9e7c-14cb-46a9-b241-3e2b3cafd84d/Image to PDF 20260711 18.38.29.pdf') print(f'Pages: {len(reader.pages)}') for i, page in enumerate(reader.pages): print(f'Page {i+1} resources:', list(page.get('/Resources', {}).keys()) if page.get('/Resources') else 'None') images = page.images print(f' Images: {len(images)}') for j, img in enumerate(images): fname = f'/home/daytona/workspace/attachments/page{i+1}_img{j+1}.{img.name.split(\".\")[-1] if \".\" in img.name else \"jpg\"}' with open(fname, 'wb') as f: f.write(img.data) print(f' Saved: {fname} ({len(img.data)} bytes)') "
cd /home/daytona/workspace/attachments && python3 -m http.server 8765 & sleep 2 && echo "Server started"
cd /home/daytona/workspace/attachments && nohup python3 -m http.server 8765 > /tmp/http.log 2>&1 & echo "PID: $!"
python3 -c " from PIL import Image import os pages = [1,2,3,4,5,7,9,10] for p in pages: src = f'/home/daytona/workspace/attachments/page{p}_img1.jpg' dst = f'/home/daytona/workspace/attachments/page{p}_small.jpg' img = Image.open(src) img.thumbnail((800, 1000), Image.LANCZOS) img.save(dst, 'JPEG', quality=70) print(f'Page {p}: {os.path.getsize(dst)} bytes -> {dst}') "
| Page | Instrument Name |
|---|---|
| 1 | Bag-Valve-Mask (BVM) / Ambu Bag - Being used in a clinical setting; shows the self-inflating resuscitation bag connected to a mask, used for manual ventilation |
| 2 | Ryle's Tube / Nasogastric (NG) Tube - Clear flexible tube with a green-capped funnel end and a narrow insertion tip; used for feeding or gastric drainage |
| 3 | Blood Transfusion Set (Infusion Set with filter) - Sealed in packaging; has yellow and blue Luer-lock connectors, a drip chamber, and tubing with filter - used for blood/blood product transfusion |
| 4 | Endotracheal (ET) Tube - Long, thin, clear tube in a sealed sterile pack; used for airway management during anaesthesia or mechanical ventilation |
| 5 | IV Infusion Set / Blood Transfusion Set - Shows a drip chamber, tubing, blue Luer connector, and yellow air vent; labelled "BLOOD" on the pack - a blood transfusion administration set |
| 6 | Endotracheal (ET) Tube - ID 2.5mm Oral/Nasal - Curved transparent tube with a blue 15mm connector (standard ISO connector); label clearly reads "ID 2.5mm ORAL/NASAL" - a paediatric uncuffed ET tube |
| 7 | BVM (Bag-Valve-Mask / Ambu Bag) with Oxygen Reservoir Bag - Full assembly laid out: self-inflating bag, one-way valve, face mask, and attached oxygen reservoir bag (labelled "Oxygen Reservoir Bag, Non-Rebreathing") |
| 8 | IV Infusion Sets (multiple in packaging) - Two sealed packs of intravenous infusion / drip sets visible with coloured connectors (yellow, blue, pink) |
| 9 | Overview / Group photo - Shows multiple items together: BVM with O2 reservoir bag, a blood transfusion set (in pack), IV infusion/blood set (in pack), a long ET tube (in pack), and a green face mask - a collection of airway and IV equipment |
| 10 | Multiple instruments laid out: - Endotracheal Tube (Plain, Siliconised) - labelled "Life-O-Med ENDOTRACHEAL TUBE - PLAIN SILICONISED, Size 3.5 I.M." - Blood Transfusion Set - labelled "BLOOD TRANSFUSION SET, E.T.O. STERILE" - Micro Drip Infusion Set (IV set in green pack) - Oxygen Mask / Face Mask (round, transparent, green connectors) - Two white dome-shaped objects (likely ET tube adaptors or face masks without straps) |