Skip to content

Commit 724832f

Browse files
committed
little fixes
1 parent d11b902 commit 724832f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

examples/main.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
" CartesianCoordsMapperWidget, MarkerSelectorWidget,\n",
3737
" ROISelectorCombinedWidget, DetectorWidgetCombined\n",
3838
")\n",
39-
"from scanplot.core import Plot, CoordinatesConverter"
39+
"from scanplot.core import Plot, CoordinatesConverter, invert_image"
4040
]
4141
},
4242
{
@@ -79,6 +79,8 @@
7979
"source": [
8080
"image = load_image(plot_image_filepath)\n",
8181
"\n",
82+
"# image = invert_image(image) # only for plots with black background\n",
83+
"\n",
8284
"plot = Plot(image)\n",
8385
"plot.draw()"
8486
]
@@ -169,7 +171,10 @@
169171
"## 3. (optional step) Select region of interest\n",
170172
"\n",
171173
"For each marker type you can specify its own region of interest.\n",
172-
"Default ROI is a whole image."
174+
"Default ROI is a whole image.\n",
175+
"\n",
176+
"This step is optional, but selecting ROI for each marker can significantly improve the final detection result.\n",
177+
"Selecting ROI is also useful to avoid detections in the area of legend."
173178
]
174179
},
175180
{

0 commit comments

Comments
 (0)