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

本站现有博文323篇,共被浏览799690

本站已经建立2498天!

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