|
|
|
|
|
<Image>.CoordinateToImage (Function) In french: <Image>.CoordonnéeVersImage Converts the coordinates of a rectangle in the Image control to the original image coordinate system. This function is used to match the coordinates in the Image control with the coordinates in the source image.
// Load image for OCR ImageForOCR is Image = MyImage.LoadImage() // Display a thumbnail of the image in the control. IMG_Thumbnail = ImageForOCR Â // (Interactive) selection of the area on which to perform OCR. // ... Â // Convert selected coordinates to coordinates in the source image let ImageSelection = IMG_Thumbnail.CoordinateImageControlToImage(ImageControlSelection) // Perform OCR on the source image (= without quality loss) with this rectangle let sText = OCRExtractText(ImageForOCR, ImageSelection)
Syntax
<Result> = <Image control>.CoordinateToImage(<Coordinates to convert>)
<Result>: Rectangle variable Rectangle variable that corresponds to the rectangle in the original image coordinate system. <Image control>: Control name Image control used. <Coordinates to convert>: Rectangle variable Name of the Rectangle variable that corresponds to the rectangle in the Image control coordinate system. Remarks - The conversion takes into account the display mode of the image.
- The function is ignored if the displayed image is repeated.
Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|