Skip to content

rostelecom-ipc8232swc-we: correct the lens's barrel distortion (isp.ldc 200) - #203

Merged
openipc-ai merged 1 commit into
masterfrom
ipc8232swc-we-lens-correction
Oct 14, 2026
Merged

openipc-ai merged 1 commit into
masterfrom
ipc8232swc-we-lens-correction

Conversation

@widgetii

Copy link
Copy Markdown
Member

Problem

The board's wide lens bows straight lines outward: door frames and cabinet sides curve toward the edges of the picture. The stock firmware corrects this. OpenIPC did not.

Change

customizer.sh now sets cli -s .isp.ldc 200. That is majestic's VI lens distortion correction, with the same parameters the stock firmware runs on this camera. Read from its /proc/umap/vi, VI CHN LDCV3 INFO shows: Crop, DistortionRatio 200, centre 0/0, MinRatio 0.

It lives in the board profile because the lens belongs to the board: other boards with the same SP2305/OV2735 sensor may have a different lens or none.

Cost

  • About 11% of the width is lost at the edges (crop view), and corner detail is softer.
  • VPSS runs offline. The profile's existing isp.blkCnt 6 carries that at 25 fps.

Requirement: isp.ldc is in majestic master as of today. The first image built from tonight's majestic nightly onward has it.

Hardware tested on

The lab IPC8232SWC-WE (Hi3516EV300, ov2735), running the line above:

  • /proc/umap/vi shows Y Crop 0 200 0 0, identical to the stock-firmware camera, with VI online / VPSS offline.
  • The main stream holds 25 fps (126 frames in 5 s).

…dc 200)

The board's wide lens bows straight lines outward; the stock firmware
corrects it in VI with DistortionRatio 200, crop view, centred (read from
its /proc/umap/vi). Set the same in the board's customizer: the lens is
the board's, so this is where its number belongs.
@openipc-ai

Copy link
Copy Markdown
Contributor

/review

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can switch off images and animations for a plain-text comment

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@openipc-ai
openipc-ai merged commit 7b47842 into master Oct 14, 2026
7 checks passed
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.

2 participants