1 | initial version |
Shadow removal issue usually can be divided on two subtasks:
Although there are a lot of papers on this topic, you can make a solution prototype with a few OpenCV functions:
cv::solve()
to restore pixel's color in shadowed regions, like color_of_pixel_outside_shadow = x * color_of_pixel_inside_shadow
, so 'x' will be a coefficient to restore original color. Also you can try to use cv::inpaint()
for shadowed regions.