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

本站现有博文320篇,共被浏览762426

本站已经建立2436天!

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