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

本站现有博文333篇,共被浏览921919

本站已经建立2628天!

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