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

本站现有博文321篇,共被浏览770816

本站已经建立2457天!

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