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

本站现有博文333篇,共被浏览920250

本站已经建立2626天!

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