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

本站现有博文332篇,共被浏览870681

本站已经建立2579天!

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