Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Error with DetermineOMRThreshold() action

    Posted 02/25/25 11:59 AM
      |   view attached

    Hi,

    I am getting below error with the action DetermineOMRThreshold() for Check Boxes on the form.

    Exception in GetBlackPixelCountBMP counting pixels. Reason: Parameter must be positive and < Height.
    Parameter name: y Details: System.ArgumentOutOfRangeException: Parameter must be positive and < Height.
    Parameter name: y
       at System.Drawing.Bitmap.GetPixel(Int32 x, Int32 y)
       at SharedRecognitionTools.Actions.GetBlackPixelCountBMP(Bitmap bmp, Int32 width, Int32 height, Int32 left, Int32 top, Int32 right, Int32 bottom).

    I am trying different values for the Threshold and Background, but getting the same error. 

    Need help in resolving the error. Attached is the rrs log.

    Thanks

    Raj Chenna



    ------------------------------
    Raj Chenna
    ------------------------------

    Attachment(s)

    log
    recog icr_c_rrs (3).log   1.76 MB 1 version


  • 2.  RE: Error with DetermineOMRThreshold() action

    Posted 03/02/25 10:01 PM

    I saw your log.

    16:18:09.214 (0) t:2DB4 p:192D408 Raw coordinates: l= -15 t=-14 r=15 b=14

    Raw coordinates have negative values.

    Not sure why.  I can think of pat_RegisterZones action to adjust the origin coordinate so that all fields get coordinate greater than 0.



    ------------------------------
    dsakai
    ------------------------------