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

本站现有博文339篇,共被浏览1001540次

本站已经建立2711天!

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