How to flood-fill part of a bitmap enclosed by a black border with my chosen color?

前端 未结 2 516
孤城傲影
孤城傲影 2020-12-06 08:22

I want to programmatically modify a bitmap using python but don\'t really need a thorough grounding in the subject, so would like to concentrate on learning just what I need

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-06 09:13

    You can try the opencv binding in python. Here is some example: http://opencv.willowgarage.com/documentation/python-introduction.html

    You can then use the cvFloodFill function to flood fill a region.

提交回复
热议问题