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

本站现有博文340篇,共被浏览1017822次

本站已经建立2718天!

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