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

本站现有博文335篇,共被浏览937556

本站已经建立2648天!

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