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

本站现有博文327篇,共被浏览831870

本站已经建立2536天!

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