Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAGA openCV and processing tools. #27367

Closed
qgib opened this issue Aug 3, 2018 · 2 comments
Closed

SAGA openCV and processing tools. #27367

qgib opened this issue Aug 3, 2018 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Aug 3, 2018

Author Name: Patrice Carbonneau (Patrice Carbonneau)
Original Redmine Issue: 19540
Affected QGIS version: 3.2.1
Redmine category:processing/saga


None of the open CV processing tools seem to work. I have read that they do not function as part of a modeller, but for me they don't even work outside any sortt of batching mode. There are doubts about usage, notably about the 'Class Identifier' parameter. But there is no documentation (even in 2.18 where this tool did exist) and the help button has a dead link. I treid a little csv file with the name of the classes. Error message is the same for all openCV tools. Main error seems to be about selecting a library? I notice that QGIS installs SAGA 2.3.2, but open CV tools are not available in that version of SAGA, only much later.

{ '1SE_RULE' : True, 'ACTIVE_VARS' : 0, 'CLASSES' : 'C:/Users/patca/AppData/Local/Temp/processing_7c97d6ddd9dd4aeb9964c897acb1336d/b70c949afe684f9694a842a7e5d829f0/CLASSES.sdat', 'FEATURES' : '', 'MAX_CATEGRS' : 10, 'MAX_DEPTH' : 10, 'MIN_SAMPLES' : 2, 'NORMALIZE' : False, 'REG_ACCURACY' : 0.01, 'TRAIN_AREAS' : 'E:\Deep Riverscapes\StMarg\Qtest2_class.shp', 'TRAIN_CLASS' : 'D:/DeepRiverscapes/CLS_ID.csv', 'TRUNC_PRUNED' : True }

imagery_opencv "Random Forest Classification (OpenCV)" -NORMALIZE false -TRAIN_AREAS "E:\Deep Riverscapes\StMarg\Qtest2_class.shp" -TRAIN_CLASS "C:/Users/patca/AppData/Local/Temp/processing_7c97d6ddd9dd4aeb9964c897acb1336d/4743f3c5d45043c3baf34be4e4fd9366/TRAIN_CLASS.shp" -MAX_DEPTH 10 -MIN_SAMPLES 2 -MAX_CATEGRS 10 -1SE_RULE true -TRUNC_PRUNED true -REG_ACCURACY 0.01 -ACTIVE_VARS 0 -CLASSES "C:/Users/patca/AppData/Local/Temp/processing_7c97d6ddd9dd4aeb9964c897acb1336d/b70c949afe684f9694a842a7e5d829f0/CLASSES.sdat"

C:\PROGRA1\QGIS31.2\bin>set SAGA=C:/PROGRA1/QGIS31.2/apps\saga-ltr

C:\PROGRA1\QGIS31.2\bin>set SAGA_MLB=C:/PROGRA1/QGIS31.2/apps\saga-ltr\modules

C:\PROGRA1\QGIS31.2\bin>PATH=C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages\numpy\core;C:\PROGRA1\QGIS31.2\apps\qgis\bin;C:\PROGRA1\QGIS31.2\apps\Python36;C:\PROGRA1\QGIS31.2\apps\Python36\Scripts;C:\PROGRA1\QGIS31.2\apps\qt5\bin;C:\PROGRA1\QGIS31.2\apps\Python27\Scripts;C:\PROGRA1\QGIS31.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages\pypiwin32_system32;;C:/PROGRA1/QGIS31.2/apps\saga-ltr;C:/PROGRA1/QGIS31.2/apps\saga-ltr\modules

C:\PROGRA1\QGIS31.2\bin>saga_cmd imagery_opencv "Random Forest Classification (OpenCV)" -NORMALIZE false -TRAIN_AREAS "E:\Deep Riverscapes\StMarg\Qtest2_class.shp" -TRAIN_CLASS "C:/Users/patca/AppData/Local/Temp/processing_7c97d6ddd9dd4aeb9964c897acb1336d/4743f3c5d45043c3baf34be4e4fd9366/TRAIN_CLASS.shp" -MAX_DEPTH 10 -MIN_SAMPLES 2 -MAX_CATEGRS 10 -1SE_RULE true -TRUNC_PRUNED true -REG_ACCURACY 0.01 -ACTIVE_VARS 0 -CLASSES "C:/Users/patca/AppData/Local/Temp/processing_7c97d6ddd9dd4aeb9964c897acb1336d/b70c949afe684f9694a842a7e5d829f0/CLASSES.sdat"
Error: select a library


## #####

### ##

# ## ## #### #

##### ## #

# ## ##### #

SAGA Version: 2.3.2 (64 bit)

69 loaded tool libraries (640 tools):

  • climate_tools
  • contrib_perego
  • db_odbc
  • db_pgsql
  • docs_html
  • garden_3d_viewer
  • garden_fractals
  • garden_games
  • garden_learn_to_program
  • garden_webservices
  • grid_analysis
  • grid_calculus
  • grid_calculus_bsl
  • grid_filter
  • grid_gridding
  • grid_spline
  • grid_tools
  • grid_visualisation
  • imagery_classification
  • imagery_isocluster
  • imagery_maxent
  • imagery_photogrammetry
  • imagery_segmentation
  • imagery_svm
  • imagery_tools
  • io_esri_e00
  • io_gdal
  • io_gps
  • io_grid
  • io_grid_image
  • io_shapes
  • io_shapes_dxf
  • io_table
  • io_virtual
  • pj_georeference
  • pj_geotrans
  • pj_proj4
  • pointcloud_tools
  • pointcloud_viewer
  • shapes_grid
  • shapes_lines
  • shapes_points
  • shapes_polygons
  • shapes_tools
  • shapes_transect
  • sim_cellular_automata
  • sim_ecosystems_hugget
  • sim_erosion
  • sim_fire_spreading
  • sim_hydrology
  • sim_ihacres
  • sim_qm_of_esp
  • sim_rivflow
  • statistics_grid
  • statistics_kriging
  • statistics_points
  • statistics_regression
  • ta_channels
  • ta_compound
  • ta_hydrology
  • ta_lighting
  • ta_morphometry
  • ta_preprocessor
  • ta_profiles
  • ta_slope_stability
  • table_calculus
  • table_tools
  • tin_tools
  • tin_viewer

type -h or --help for further information

C:\PROGRA1\QGIS31.2\bin>exit
Execution completed in 6.62 seconds
Results:
{'CLASSES': 'C:/Users/patca/AppData/Local/Temp/processing_7c97d6ddd9dd4aeb9964c897acb1336d/b70c949afe684f9694a842a7e5d829f0/CLASSES.sdat'}

Loading resulting layers
The following layers were not correctly generated.

  • C:/Users/patca/AppData/Local/Temp/processing_7c97d6ddd9dd4aeb9964c897acb1336d/b70c949afe684f9694a842a7e5d829f0/CLASSES.sdat
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2019

Author Name: Alexander Bruy (@alexbruy)


Please test with master/3.4. If issue persist please provide test data and steps to reproduce.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 13, 2019

Author Name: Alexander Bruy (@alexbruy)


  • resolution was changed from to no timely feedback
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Feb 13, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant