How to use opencv extra modules?

OpenCV: What are good ways to use open CV/python to spot marks on a page?

  • I am trying to check if a second hand book i'm planning to purchase has any page with coffee cup spots or marks or underlines etc. what should be my approach? I am able to capture the video stream of a book through my webcam/python/openCV. what should I do next?

  • Answer:

    Assuming the marks are in some colour other than black or white and the text is in black and white,you should 1)First convert it into HSV color model using cvtColor. 2) To select a particular color ,give the range of Hue values you want to select inside inrange function. Maybe for saturation and value the whole range can be given. 3) The marks are returned as white color(255) in inrange function. By the way, why use open CV when you can simply spot the marks manually :) And prefer to ask program related questions in stackoverflow to get quicker answers.

Agnel Vishal at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.