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

本站现有博文319篇,共被浏览753632

本站已经建立2411天!

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