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

本站现有博文311篇,共被浏览743705

本站已经建立2385天!

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