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

本站现有博文337篇,共被浏览957764次

本站已经建立2669天!

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