Sync object-detection from metro-analytics-catalog
Browse filesFiles changed (4)
126 unmodified lines127128129130131132133134135136137138139140141142143144145146147148149150151152126 unmodified linesimport numpy as npimport openvino as ovCOCO_NAMES = ["person","bicycle","car","motorcycle","airplane","bus","train","truck","boat","traffic light","fire hydrant","stop sign","parking meter","bench","bird","cat","dog","horse","sheep","cow","elephant","bear","zebra","giraffe","backpack","umbrella","handbag","tie","suitcase","frisbee","skis","snowboard","sports ball","kite","baseball bat","baseball glove","skateboard","surfboard","tennis racket","bottle","wine glass","cup","fork","knife","spoon","bowl","banana","apple","sandwich","orange","broccoli","carrot","hot dog","pizza","donut","cake","chair","couch","potted plant","bed","dining table","toilet","tv","laptop","mouse","remote","keyboard","cell phone","microwave","oven","toaster","sink","refrigerator","book","clock","vase","scissors","teddy bear","hair drier","toothbrush",]CONF_THRESHOLD = 0.4INPUT_SIZE = 640core = ov.Core()model = core.read_model("yolo26n_openvino_model/yolo26n.xml")# Change device to "GPU" or "NPU" to run on integrated GPU or NPU.compiled = core.compile_model(model, "CPU")126 unmodified lines127128129130131132133134135136137138139140141142143144145146126 unmodified linesimport numpy as npimport openvino as ovCONF_THRESHOLD = 0.4INPUT_SIZE = 640core = ov.Core()model = core.read_model("yolo26n_openvino_model/yolo26n.xml")# YOLO26 embeds the 80 COCO class names in rt_info -- read them instead of# hardcoding the list. Ultralytics separates multi-word names with# underscores (e.g. "traffic_light"), so restore spaces for display.COCO_NAMES = [name.replace("_", " ")for name in model.get_rt_info()["model_info"]["labels"].value.split()]# Change device to "GPU" or "NPU" to run on integrated GPU or NPU.compiled = core.compile_model(model, "CPU")
53 unmodified lines545556575859606162636465666768697053 unmodified lineselseecho "Already present: test.jpg"fi# Ask for approval before downloading models and sample filesecho ""echo "This script will download:"echo " - Model weights and/or sample files"echo ""read -p "Continue with downloads? (yes/no): " APPROVALif [[ "${APPROVAL}" != "yes" ]]; thenecho "Download cancelled by user."exit 0fiecho ""echo "--- Downloading sample test video ---"if [[ ! -f test_video.mp4 ]]; then53 unmodified lines54555657585953 unmodified lineselseecho "Already present: test.jpg"fiecho ""echo "--- Downloading sample test video ---"if [[ ! -f test_video.mp4 ]]; then
README.md+8-14
expected_output_dlstreamer.gif

Large File Pointer Details
- SHA256: db02d0c6a136c017e181241fd242cbbb1d4d3cb5e5cb9be3ea10e5cfeed1cdd7
- Pointer size: 133 Bytes
- Size of remote file: 19.2 MB

Large File Pointer Details
- SHA256: 36e30e34c3f01db83e7f50f832c90dcb66b4a867e1dfebeed0c99d4ce44cc0fc
- Pointer size: 133 Bytes
- Size of remote file: 19.1 MB
expected_output_openvino.jpg

Large File Pointer Details
- SHA256: c28135338b04e5826cba22950cdc84f56e1c3b642f6cda5d6de30dd0de50d180
- Pointer size: 131 Bytes
- Size of remote file: 349 kB

Large File Pointer Details
- SHA256: 434445b1dba5e36e5b354ff4dc2a9ed9a5560d06ac5606b8966d8704e9448cdf
- Pointer size: 131 Bytes
- Size of remote file: 348 kB
export_and_quantize.sh-11