Professional Documents
Culture Documents
1/ Overview
The shadow offset that we need to detect here, mostly will be box-shadow, a
property of CSS (Cascading Style Sheets) which is used in website markup along
with HTML.
The horizontal offset of the shadow (X offset), positive means the shadow will be on
the right of the box, a negative offset will put the shadow on the left of the box.
The vertical offset of the shadow (Y offset), a negative one means the box-shadow
will be above the box, a positive one means the shadow will be below the box.
a. Use edge detector to draw border lines around component and its shadow:
b. Draw all the detected contours (because the shadow is a bit blurry and does
not have one fill color like component so it will create noise contours, which
we will deal with later)
c. Draw bounding box to wrap around all the detected contours (including noise
contours)
d. Merge nearby contours to remove noise bounding boxes and keep the true
ones that wrap up the shadow and component we need.
e. Apply object detection model using Faster-RCNN on Detectron2 framework to
detect the bounding box of the component:
4/ Challenges
- The input image should contain one components since larger ones with dense
detail will not be a good idea:
Because there are too much noises from other components, which will affect
the merging process:
→ Suggest solution: Using object detection model to extract important components
that we only want to base on to get the shadow such as: button, block, input.
5/ References
In case those in charge of the project only want to improve the object detection
model with contour scripts, please contact the teacher and he will connect you to
corresponding collaborators.
For papers that already involved in problems similar to this project (most of them are
natural shadow in real life image), you can take a look here:
Shadow Detection and Removal Using Tri-Class Based Thresholding and Shadow
Matting Technique:
https://www.sciencedirect.com/science/article/pii/S2212017316302377