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

本站现有博文332篇,共被浏览875233

本站已经建立2583天!

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