Skip to content

Instantly share code, notes, and snippets.

View sborquez's full-sized avatar
🤖
AI means love in chinese

Sebastián Bórquez sborquez

🤖
AI means love in chinese
View GitHub Profile
@tarlen5
tarlen5 / calculate_mean_ap.py
Last active June 3, 2024 12:57
Calculate mean Average Precision (mAP) for a set of ground truth and predicted bounding boxes for a set of images.
"""
author: Timothy C. Arlen
date: 28 Feb 2018
Calculate Mean Average Precision (mAP) for a set of bounding boxes corresponding to specific
image Ids. Usage:
> python calculate_mean_ap.py
Will display a plot of precision vs recall curves at 10 distinct IoU thresholds as well as output
@kylehounslow
kylehounslow / client.py
Last active April 23, 2024 10:58
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'