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

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

本站已经建立2583天!

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