Skip to content

fix: pin OpenCvSharp for PaddleOCR - #339

Merged
ModerRAS merged 1 commit into
masterfrom
codex/pin-opencv-for-paddleocr
May 10, 2026
Merged

ModerRAS merged 1 commit into
masterfrom
codex/pin-opencv-for-paddleocr

Conversation

@ModerRAS

@ModerRAS ModerRAS commented May 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • pin OpenCvSharp packages to the known-good PaddleOCR Windows combination
  • remove OpenCvSharp4.Windows because it forces runtime.win to the same version
  • document the PaddleSharp issue context next to the dependency pins

Validation

  • dotnet restore TelegramSearchBot.sln
  • dotnet build TelegramSearchBot/TelegramSearchBot.csproj --configuration Release --no-restore

Summary by CodeRabbit

  • Chores
    • Updated OpenCvSharp package dependencies to maintain version compatibility across multiple packages.
    • Added documentation comments to project configuration regarding dependency management.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 10, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bb8b4a03-9f9f-4683-98a3-703dd6aa75bc

📥 Commits

Reviewing files that changed from the base of the PR and between 3e4f2fe and 8809034.

📒 Files selected for processing (1)
  • TelegramSearchBot/TelegramSearchBot.csproj

📝 Walkthrough

Walkthrough

OpenCvSharp package dependencies in the project file are updated to a pinned multi-version configuration for PaddleOCR compatibility. Core and extension libraries are pinned to version 4.11.0.20250507, the Windows runtime to 4.10.0.20240616, and a comment documents the rationale for this specific combination.

Changes

OpenCvSharp Dependency Pinning

Layer / File(s) Summary
Dependency Configuration
TelegramSearchBot/TelegramSearchBot.csproj
OpenCvSharp4 and OpenCvSharp4.Extensions versions are pinned to 4.11.0.20250507, OpenCvSharp4.runtime.win to 4.10.0.20240616, replacing the prior Windows-specific package. A block comment documents the pinned compatibility constraints for PaddleOCR and advises against alternative OpenCvSharp Windows packages.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Versions locked and pinned so tight,
PaddleOCR shines in OpenCV light,
Runtime and core in harmony dance,
No Windows-specific package stance,
Clear comments guide the way!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: pinning OpenCvSharp versions for PaddleOCR compatibility. It directly relates to the core objective of the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/pin-opencv-for-paddleocr

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

PR Check Report

Summary

Test Results

Platform Status Details
Ubuntu Passed Tests passed, artifacts uploaded
Windows Passed Tests passed, artifacts uploaded

Code Quality

  • Code formatting check
  • Security vulnerability scan
  • Dependency analysis
  • Code coverage collection

Test Artifacts

  • Test results artifacts count: 2
  • Code coverage uploaded to Codecov

Links


This report is auto-generated by GitHub Actions

@ModerRAS
ModerRAS merged commit cafb0b9 into master May 10, 2026
5 checks passed
@ModerRAS
ModerRAS deleted the codex/pin-opencv-for-paddleocr branch May 10, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant