An ultrasound app in 10 LOC

A project log for pyusbus: a python lib for ultrasound usb probes

An API for medical ultrasound usb probes

kelu124kelu124 04/14/2021 at 19:460 Comments

Now faster with the linear probe! Optimized code would look like:

import streamlit as st
import pyusbus as usbProbe
import cv2

image_zone = st.empty()

probe = usbProbe.UP20()

while True:     
    img = probe.getImage()   
    rgb = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR) 
    res = cv2.resize(rgb, dsize=(440, 500), interpolation=cv2.INTER_CUBIC)    

See the full streamlit app.