I need to get data in the form: Title of the image, Latitude, Longitude
I have tried pytesseract but the resultant text is not accurate. I found alphabets in the text rather than latitude and longitude.
I need to get data in the form: Title of the image, Latitude, Longitude [![Lat_Image][2]][2]
path = 'C:/BackUp/PhD/Data_from_Core_AP/Python/GeoTaggingWellsImages/filtered_images/Chittoor/'+file
img = cv2.imread(path)
crop_img = img[365:385,10:395]
gray = cv2.cvtColor(crop_img, cv2.COLOR_BGR2GRAY)
ret, thresh = cv2.threshold(crop_img,245 ,255, cv2.THRESH_TRUNC)
cv2.imwrite("C:/BackUp/PhD/Data_from_Core_AP/Python/GeoTaggingWellsImages/filtered_images/temp.jpeg", gray)
text = pytesseract.image_to_string(Image.open("C:/BackUp/PhD/Data_from_Core_AP/Python/GeoTaggingWellsImages/filtered_images/temp.jpeg"), config='outputbase digits')
[1]: https://i.stack.imgur.com/aoc3I.jpg
[2]: https://i.stack.imgur.com/pMgER.jpg