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

本站现有博文333篇,共被浏览919829

本站已经建立2625天!

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