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

本站现有博文323篇,共被浏览795261

本站已经建立2493天!

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