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

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

本站已经建立2579天!

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