soumyadeepdey / MarginNoiseRemoval

Removal of Margin noise from scanned document images
0 stars 0 forks source link

How to run the margin executable? #1

Open tonsquemike opened 5 years ago

tonsquemike commented 5 years ago

I follow the instructions on readme but for step 3 I can not find the "example folder" When I run the margin executable with a jpg file the console returns: ./margin /Users/tonsquemike/Projects/calculaEntropiaLineasDeTexto/test/baseLines/0015.jpg

Reading input XMl

--------------------------- Given Document: /Users/tonsquemike/Projects/calculaEntropiaLineasDeTexto/test/baseLines/0015.jpg Provide Extension of Input Document as (.xml) or (.xsd)

When I check the dataset for this task I Step3 -> we have to execute the "margin" as shown in the example in the example folder.

Does this repo only work with labeled data? What I need to parse as arguments to remove the margin of a jpg file?

I also attach an xml with jpg file: input_data.zip

output: Reading input XMl

libc++abi.dylib: terminating with uncaught exception of type cv::Exception: OpenCV(3.4.3) /tmp/opencv-20181001-41572-id0soo/opencv-3.4.3/modules/imgproc/src/color.cpp:181: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

        Reading XML Document: [/Users/tonsquemike/Projects/calculaEntropiaLineasDeTexto/test/baseLines/0015.xml] [Anveshwak-> vertion=1.1, date=27-01-2017][1]    5801 abort      ./margin
soumyadeepdey commented 5 years ago

Code expect to provide the input in XML format, where name of the file should be written into an XML file. Example of such an example file is given. If you open the file, you can see, that only name within the XML file is the name of the image. This type of formatting is done because, this code was developed as a part of a large symposiam, where output of code is used as input to other codes, and so on.

On Thu, Nov 29, 2018 at 7:41 AM Miguel Ángel García Calderón < notifications@github.com> wrote:

I follow the instructions on readme but for step 3 I can not find the "example folder" When I run the margin executable with a jpg file the console returns: ./margin /Users/tonsquemike/Projects/calculaEntropiaLineasDeTexto/test/baseLines/0015.jpg

Reading input XMl

--------------------------- Given Document: /Users/tonsquemike/Projects/calculaEntropiaLineasDeTexto/test/baseLines/0015.jpg Provide Extension of Input Document as (.xml) or (.xsd)

When I check the dataset https://github.com/soumyadeepdey/MarNr-Data for this task I Step3 -> we have to execute the "margin" as shown in the example in the example folder.

Does this repo only work with labeled data? What I need to parse as arguments to remove the margin of a jpg file?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/soumyadeepdey/MarginNoiseRemoval/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AMdlP5jm5G4EHh_z4WuLGJ7sgdwr-fexks5uz0I8gaJpZM4Y4y2V .

--

Thanks and Regards Soumyadeep Dey Research Scholar (PhD) IIT KGP ( CSE ) mob no : +919433715948