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

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

本站已经建立2476天!

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