Ask Your Question

sush0907's profile - activity

2016-02-03 00:15:20 -0600 received badge  Enthusiast
2016-02-01 04:52:36 -0600 received badge  Editor (source)
2016-02-01 04:29:39 -0600 asked a question Add trained data to makefile Tesseract-OCR

Hi

I have created new Trained data "eng2.traineddata", now i want to add it to config folder. not by this step "sudo cp eng2.traineddata /usr/local/share/tessdata/"

want to add in makefile and then install tesseract. ../tesseract-ocr/tessdata/Makefile.in

can anybody help me with steps which all files do i need to change.

thanks.

2015-12-24 00:09:10 -0600 commented question python to c++ using opencv

thanks for the reply, in actual i need to know the sorting part of it. how to do it..? as here sorted() is python api. How to sort in descending order?

2015-12-23 23:42:35 -0600 asked a question python to c++ using opencv

Hi,

I want to convert the below lines written in python to c++,

find the contours in the thresholded image, then sort the contours

by their area, keeping only the largest one

(_,cnts, _) = cv2.findContours(closed.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) c = sorted(cnts, key = cv2.contourArea, reverse = True)[0]

the full code is available over here, http://www.pyimagesearch.com/2014/11/...

can anybody help me how i could write it in c++ mainly the sorting part.

Thanks in advance.