EADST

Python: Two Rectangles Overlap Area (IoU)

Two Rectangles Overlap Area (IoU)

rec1 = [0, 0, 2, 2]
rec2 = [1, 1, 3, 3]
x = max(min(rec1[2], rec2[2]) - max(rec1[0], rec2[0]), 0)
y = max(min(rec1[3], rec2[3]) - max(rec1[1], rec2[1]), 0)
area = x * y

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Paper GIT UI InvalidArgumentError LoRA 阿里云 TTS Bert Safetensors FP16 Paddle EXCEL Cloudreve Michelin Pandas Windows Hotel C++ Pickle PDF Color QWEN GPTQ LeetCode 版权 Tensor Web Disk Docker Ptyhon VSCode PyTorch Crawler Template Streamlit Ubuntu 公式 Base64 CUDA 财报 Linux HaggingFace NLTK NameSilo AI Tiktoken SVR Qwen 飞书 hf Tracking diffusers uWSGI Baidu YOLO Video Permission Google Interview Land Qwen2 FastAPI tqdm UNIX Magnet Card Food LaTeX 证件照 Quantization scipy 净利润 Dataset Translation ChatGPT Gemma Bipartite MD5 Vim Claude Shortcut torchinfo WAN 多线程 SAM Data Plotly ModelScope TSV mmap Clash Attention Nginx Llama FP32 VPN 签证 IndexTTS2 GPT4 FP8 Heatmap Plate LLM git PyCharm llama.cpp Random Qwen2.5 HuggingFace Bin 算法题 Numpy CTC transformers CAM Excel Diagram Conda Logo TensorRT Sklearn BF16 logger Image2Text FlashAttention Knowledge VGG-16 PDB Python ResNet-50 Markdown 报税 Jupyter Miniforge DeepSeek v2ray RAR Anaconda CEIR OCR Statistics 搞笑 Django Augmentation LLAMA TensorFlow Pytorch Math Hungarian CLAP OpenCV Github CC Review Pillow v0.dev tar printf 多进程 SQL Distillation Website NLP BTC 域名 DeepStream Datetime Input Password Use FP64 git-lfs Git PIP 音频 Animate OpenAI 继承 WebCrawler XML uwsgi CV ONNX Jetson COCO Mixtral GGML SPIE Freesound Quantize Vmess JSON GoogLeNet Hilton Breakpoint Proxy Firewall Zip Domain 关于博主 XGBoost Transformers CSV 腾讯云 API Algorithm SQLite BeautifulSoup Bitcoin RGB
站点统计

本站现有博文309篇,共被浏览735809

本站已经建立2373天!

热门文章
文章归档
回到顶部