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

本站现有博文340篇,共被浏览1010393次

本站已经建立2716天!

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