Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: yowich on October 07, 2019, 11:48:48 PM
-
Python API "selectPointsByColor" does not select the same points as it does with the Menu (Tools - Dense Clouds - Select Points By Color).
For example,
dense_cloud.selectPointsByColor(color=[104,89,166], tolerance=40, channels='HSV')
does not select any point in my dense cloud, but lots of points are selected if I run Tools - Dense Cloud - Select Points by Color and enter the same values.
I have also tried to use different colors and python API "selectPointsByColors" really didn't select the points.
Is it a bug?
-
Hello yowich,
Can you please send the screenshot of the Select Points by Color dialog and also the color selection frame?
-
For the color tuple you should input red, green and blue values anyway, irrespective to the channels parameters used.
I think using RGB tuple instead of HSV for the color parameter should solve the problem, can you please check that?