Charltsing.Liu
Charltsing.Liu
![1](https://github.com/ImageMagick/ImageMagick/assets/19963715/5fa69785-e0fa-4d45-85f7-15175c3efed4)
https://github.com/d2phap/ImageGlass/blob/develop/Source/Components/ImageGlass.Base/BHelper/Extensions/ID2D1Bitmap1Extensions.cs public static Color GetPixelColor(this IComObject? srcBitmap1, IComObject? dc, int x, int y) { if (srcBitmap1 == null || dc == null) return Color.Transparent; var bmpProps = new D2D1_BITMAP_PROPERTIES1() {...
thank you for your help. i think it is suitable for one subject in image . (sweeping in from the corner of the bounding box along 45 degree lines) but...
Another approach is to use canny edge detection,then sort to find the longest four edges, If the background is not pure, this method will recognize incorrect edge lines. [Imaging-Library](https://github.com/enginkirmaci/Imaging-Library)
thanks for your help there are some sample images [img.zip](https://github.com/DanBloomberg/leptonica/files/13258881/img.zip)