This project is created to help the creation of the template images for FGA
Current plans.
-
Create
- Given the originalLeft
,Right
,Top
,Bottom
and theoriginal reference image
it would then create the template image. -
Reverse
- Given the templateLeft
,Right
,Top
,Bottom
andanother reference image
. It would reverse the calculations of the template sizes and fit it to the another reference image to create a template image based from the another reference image.Normal
- uses the normal calculationFrom Center
- uses the center of the template image as the reference pointFrom Right
- uses the right side of the template image as the reference point
-
Draw
- Location - Given the template
Left
,Right
,Top
,Bottom
and theoriginal reference image
it would then draw a cross mark to the location. - Region - Given the template
Left
,Right
,Top
,Bottom
and theoriginal reference image
it would then draw a rectangle to the region.
- Location - Given the template
-
Match
Template
- Given the template image and the region it resides in the original reference image. It would then match the template image to the region of the reference image using opencv.Find
- Given the template image and an reference image. It would check the reference image for the region where it has the highest match rate with the template image.
-
GUI
- A simple GUI to help with the usage of the program. Currently consideringpysimplegui
as the GUI library. -
Transform and Detect Text
- Given the templateLeft
,Right
,Top
,Bottom
andanother reference image
. It would reverse the calculations of the template sizes and use it to transform the image to the template format. Use PyTesseract to output the OCR of the selected text from the created template image. -
Detect Text
- Uses PyTesseract to output the OCR of the selected text.