设置首页收藏本站
开启左侧

[文档] Halcon最新完整错误代码汇总-20230904

  [复制链接]
Criss 发表于 2018-1-30 22:50:57 | 显示全部楼层 |阅读模式
本帖旨在收集可能出现的错误以及解决方法,欢迎大家跟帖,楼主统一汇总,这样可以帮助更多的人去解决问题,奉献是一种美德!如果部分信息为NULL,可能需要其他会员和网友补充更多细节内容才可以正确解决并且显示出来!
      如果没有你的错误码,请回贴错误码 + 详细信息

错误码原因解决方案
1201-1220控制参数类型错误错误码最后两位数字代表第几位控制类型错误,检查并且修改
1301-1320控制参数值错误错误码最后两位数字代表第几位控制值错误,检查并且修改
1350组件错误值检查并且修改
1351组件错误灰度值检查并且修改
1401-1420控制参数值数量错误错误码最后两位数字代表第几位控制值数量错误,检查并且修改
1500-1510图形参数值数量错误错误码最后两位数字代表第几位图形值数量错误,检查并且修改
2000错误的参数规范检查参数类型并且修正
2001初始化HALCONNULL
2002Used number of symbolic object names too big
2003未发现License请使用最新月份License
2021操作系统时钟被修改或回溯解决方法
2031License文件找不到特征值License文件中提供的参数值可能缺失,重新更新License
2033License与Halcon版本不匹配更换正确对应版本的License(无法解决请用切换助手修复环境)
2036不能找到License.dat文件安装最新授权
2037无效的License文件语法联合开发中可能license无效,尝试更新
2042License属性已经过期更新最新月份的License即可
2076检验和失败请确保是官方原版安装文件
5200文件不存在文件路径不正确、路径有中文无法解析或者文件格式存在问题
5312图像采集设备不能被初始化请检查采集设备是否正确连接,可能需要更新图像接口库
21010Halcon许可错误License过期失效,更新最新月份的License即可


下面是Halcon23.05版本错误代码:
  1. #define H_MSG_OK          2          /* Normal return value                 */
  2. #define H_MSG_TRUE        H_MSG_OK   /* true                                */
  3. #define H_MSG_FALSE       3          /* false                               */
  4. #define H_MSG_VOID        4          /* Stop processing                     */
  5. #define H_MSG_FAIL        5          /* Call failed                         */

  6. /****************************************************************************/
  7. #define H_ERR_BREAK         20 /* for internal use */
  8. #define H_ERR_HEN_CANCEL    21 /* operator was canceled for hdevengine */
  9. #define H_ERR_CANCEL        22 /* operator was generally cancelled */
  10. #define H_ERR_TIMEOUT_BREAK 23 /* for internal use */

  11. /*****************************************************************/
  12. /* Groups of error numbers:                                      */
  13. /*****************************************************************/
  14. /*  General error:                                               */
  15. /*    Parameter of HALCON operators                              */
  16. /*      Type input parameter            12xx                     */
  17. /*      Value input parameter           13xx                     */
  18. /*      Number values input parameter   14xx                     */
  19. /*      Number objects input parameter  15xx                     */
  20. /*****************************************************************/
  21. /*  Main part:                                                   */
  22. /*    CORE                              2xxx                     */
  23. /*      CORE0                           20xx                     */
  24. /*      CORE1                           21xx                     */
  25. /*      COREx                           22xx                     */
  26. /*      Licensing                       23xx                     */
  27. /*      Tuple, Vectors, handles         24xx                     */
  28. /*      Extensions (hlibxpi)            25xx                     */
  29. /*      HALCON scheduling               28xx-29xx                */
  30. /*    Image processing                  3xxx                     */
  31. /*      Chords                          30xx                     */
  32. /*      IPxx                            31xx                     */
  33. /*      Contour                         32xx                     */
  34. /*      XLD                             325x                     */
  35. /*      Classification                  33xx                     */
  36. /*      Morphology                      34xx                     */
  37. /*      Runlength encoding              35xx                     */
  38. /*      Bead Inspection                 371x-374x                */
  39. /*      Sheet-of-light                  375x                     */
  40. /*      Texture Inspection              381x                     */
  41. /*      ShapeFrom                       385x                     */
  42. /*      Kalman                          390x                     */
  43. /*      Structured Light                395x-396x                */
  44. /*      Background estimation           82xx                     */
  45. /*      OCR                             83xx                     */
  46. /*      OCV                             835x                     */
  47. /*      Function 1D                     837x                     */
  48. /*      Camera calibration              84xx                     */
  49. /*      Template matching               85xx                     */
  50. /*      1D Bar code                     87xx                     */
  51. /*      2D Bar code (old)               8800                     */
  52. /*      2D Data code (new)              8820-88xx                */
  53. /*      3D Matching                     89xx                     */
  54. /*    Data base                         4xxx                     */
  55. /*    IOxx                              5xxx                     */
  56. /*      General                         50xx                     */
  57. /*      Window                          51xx                     */
  58. /*      File                            52xx                     */
  59. /*      Frame grabber                   53xx                     */
  60. /*      Read picture                    55xx                     */
  61. /*      Socket                          56xx                     */
  62. /*****************************************************************/
  63. /*  Further system components                                    */
  64. /*    Memory management                 60xx                     */
  65. /*    System                            65xx                     */
  66. /*    Interfaces                                                 */
  67. /*      General                         70xx                     */
  68. /*      C                               74xx                     */
  69. /*****************************************************************/
  70. /*  Cxxx (e.g. CIPfeature)                                       */
  71. /*      Cgpx                            80xx                     */
  72. /*      Convol/Rank                     81xx                     */
  73. /*****************************************************************/
  74. /*  Misc                                                         */
  75. /*      Misc                            90xx                     */
  76. /*****************************************************************/

  77. /* Control parameters */
  78. /* Type input parameter 12xx */
  79. #define H_ERR_WIPT1        1201 /* Wrong type of control parameter: 1 */
  80. #define H_ERR_WIPT2        1202 /* Wrong type of control parameter: 2 */
  81. #define H_ERR_WIPT3        1203 /* Wrong type of control parameter: 3 */
  82. #define H_ERR_WIPT4        1204 /* Wrong type of control parameter: 4 */
  83. #define H_ERR_WIPT5        1205 /* Wrong type of control parameter: 5 */
  84. #define H_ERR_WIPT6        1206 /* Wrong type of control parameter: 6 */
  85. #define H_ERR_WIPT7        1207 /* Wrong type of control parameter: 7 */
  86. #define H_ERR_WIPT8        1208 /* Wrong type of control parameter: 8 */
  87. #define H_ERR_WIPT9        1209 /* Wrong type of control parameter: 9 */
  88. #define H_ERR_WIPT10       1210 /* Wrong type of control parameter: 10 */
  89. #define H_ERR_WIPT11       1211 /* Wrong type of control parameter: 11 */
  90. #define H_ERR_WIPT12       1212 /* Wrong type of control parameter: 12 */
  91. #define H_ERR_WIPT13       1213 /* Wrong type of control parameter: 13 */
  92. #define H_ERR_WIPT14       1214 /* Wrong type of control parameter: 14 */
  93. #define H_ERR_WIPT15       1215 /* Wrong type of control parameter: 15 */
  94. #define H_ERR_WIPT16       1216 /* Wrong type of control parameter: 16 */
  95. #define H_ERR_WIPT17       1217 /* Wrong type of control parameter: 17 */
  96. #define H_ERR_WIPT18       1218 /* Wrong type of control parameter: 18 */
  97. #define H_ERR_WIPT19       1219 /* Wrong type of control parameter: 19 */
  98. #define H_ERR_WIPT20       1220 /* Wrong type of control parameter: 20 */
  99. /* Value input parameter 13xx */
  100. #define H_ERR_WIPV1        1301 /* Wrong value of control parameter: 1 */
  101. #define H_ERR_WIPV2        1302 /* Wrong value of control parameter: 2 */
  102. #define H_ERR_WIPV3        1303 /* Wrong value of control parameter: 3 */
  103. #define H_ERR_WIPV4        1304 /* Wrong value of control parameter: 4 */
  104. #define H_ERR_WIPV5        1305 /* Wrong value of control parameter: 5 */
  105. #define H_ERR_WIPV6        1306 /* Wrong value of control parameter: 6 */
  106. #define H_ERR_WIPV7        1307 /* Wrong value of control parameter: 7 */
  107. #define H_ERR_WIPV8        1308 /* Wrong value of control parameter: 8 */
  108. #define H_ERR_WIPV9        1309 /* Wrong value of control parameter: 9 */
  109. #define H_ERR_WIPV10       1310 /* Wrong value of control parameter: 10 */
  110. #define H_ERR_WIPV11       1311 /* Wrong value of control parameter: 11 */
  111. #define H_ERR_WIPV12       1312 /* Wrong value of control parameter: 12 */
  112. #define H_ERR_WIPV13       1313 /* Wrong value of control parameter: 13 */
  113. #define H_ERR_WIPV14       1314 /* Wrong value of control parameter: 14 */
  114. #define H_ERR_WIPV15       1315 /* Wrong value of control parameter: 15 */
  115. #define H_ERR_WIPV16       1316 /* Wrong value of control parameter: 16 */
  116. #define H_ERR_WIPV17       1317 /* Wrong value of control parameter: 17 */
  117. #define H_ERR_WIPV18       1318 /* Wrong value of control parameter: 18 */
  118. #define H_ERR_WIPV19       1319 /* Wrong value of control parameter: 19 */
  119. #define H_ERR_WIPV20       1320 /* Wrong value of control parameter: 20 */
  120. #define H_ERR_WCOMP        1350 /* Wrong value of component */
  121. #define H_ERR_WGCOMP       1351 /* Wrong value of gray value component */
  122. /* Number of values input parameter 14xx */
  123. #define H_ERR_WIPN1        1401 /* Wrong number of values of ctrl.par.: 1 */
  124. #define H_ERR_WIPN2        1402 /* Wrong number of values of ctrl.par.: 2 */
  125. #define H_ERR_WIPN3        1403 /* Wrong number of values of ctrl.par.: 3 */
  126. #define H_ERR_WIPN4        1404 /* Wrong number of values of ctrl.par.: 4 */
  127. #define H_ERR_WIPN5        1405 /* Wrong number of values of ctrl.par.: 5 */
  128. #define H_ERR_WIPN6        1406 /* Wrong number of values of ctrl.par.: 6 */
  129. #define H_ERR_WIPN7        1407 /* Wrong number of values of ctrl.par.: 7 */
  130. #define H_ERR_WIPN8        1408 /* Wrong number of values of ctrl.par.: 8 */
  131. #define H_ERR_WIPN9        1409 /* Wrong number of values of ctrl.par.: 9 */
  132. #define H_ERR_WIPN10       1410 /* Wrong number of values of ctrl.par.: 10 */
  133. #define H_ERR_WIPN11       1411 /* Wrong number of values of ctrl.par.: 11 */
  134. #define H_ERR_WIPN12       1412 /* Wrong number of values of ctrl.par.: 12 */
  135. #define H_ERR_WIPN13       1413 /* Wrong number of values of ctrl.par.: 13 */
  136. #define H_ERR_WIPN14       1414 /* Wrong number of values of ctrl.par.: 14 */
  137. #define H_ERR_WIPN15       1415 /* Wrong number of values of ctrl.par.: 15 */
  138. #define H_ERR_WIPN16       1416 /* Wrong number of values of ctrl.par.: 16 */
  139. #define H_ERR_WIPN17       1417 /* Wrong number of values of ctrl.par.: 17 */
  140. #define H_ERR_WIPN18       1418 /* Wrong number of values of ctrl.par.: 18 */
  141. #define H_ERR_WIPN19       1419 /* Wrong number of values of ctrl.par.: 19 */
  142. #define H_ERR_WIPN20       1420 /* Wrong number of values of ctrl.par.: 20 */
  143. /* Number of input objects 15xx */
  144. #define H_ERR_IONTB        1500 /* Number of input objects too big */
  145. #define H_ERR_WION1        1501 /* Wrong number of values of object par.: 1 */
  146. #define H_ERR_WION2        1502 /* Wrong number of values of object par.: 2 */
  147. #define H_ERR_WION3        1503 /* Wrong number of values of object par.: 3 */
  148. #define H_ERR_WION4        1504 /* Wrong number of values of object par.: 4 */
  149. #define H_ERR_WION5        1505 /* Wrong number of values of object par.: 5 */
  150. #define H_ERR_WION6        1506 /* Wrong number of values of object par.: 6 */
  151. #define H_ERR_WION7        1507 /* Wrong number of values of object par.: 7 */
  152. #define H_ERR_WION8        1508 /* Wrong number of values of object par.: 8 */
  153. #define H_ERR_WION9        1509 /* Wrong number of values of object par.: 9 */
  154. #define H_ERR_OONTB        1510 /* Number of output objects too big */

  155. /* Error codes concerning the HALCON core */
  156. #define H_ERR_WNP          2000 /* Wrong specification of parameter (error in
  157.                                    file: xxx.def) */
  158. #define H_ERR_HONI         2001 /* Initialize Halcon:
  159.                                    reset_obj_db(Width,Height,Components) */
  160. #define H_ERR_WRKNN        2002 /* Used number of symbolic object names
  161.                                    too big */

  162. /* Error codes concerning licensing */
  163. #define H_ERR_LIC_NO_LICENSE          2003 /* No license found */
  164. #define H_ERR_LIC_NO_MODULES          2005 /* No modules in license
  165.                                               (no VENDOR_STRING) */
  166. #define H_ERR_LIC_NO_LIC_OPER         2006 /* No license for this operator */
  167. #define H_ERR_LIC_BADPLATFORM         2008 /* Vendor keys do not support this
  168.                                               platform */
  169. #define H_ERR_LIC_BADVENDORKEY        2009 /* Bad vendor keys */
  170. #define H_ERR_LIC_BADSYSDATE          2021 /* System clock has been set back */
  171. #define H_ERR_LIC_BAD_VERSION         2022 /* Version argument is invalid
  172.                                               floating point format */
  173. #define H_ERR_LIC_CANTCONNECT         2024 /* Cannot establish a connection
  174.                                               with a license server */
  175. #define H_ERR_LIC_MAXSESSIONS         2028 /* Session limit exceeded */
  176. #define H_ERR_LIC_MAXUSERS            2029 /* All licenses in use */
  177. #define H_ERR_LIC_NO_SERVER_IN_FILE   2030 /* No license server specified
  178.                                               for counted license */
  179. #define H_ERR_LIC_NOFEATURE           2031 /* Can not find feature in the
  180.                                               license file */
  181. #define H_ERR_LIC_OLDVER              2033 /* License file does not support
  182.                                               a version this new */
  183. #define H_ERR_LIC_PLATNOTLIC          2034 /* This platform not authorized by
  184.                                               license - running on platform
  185.                                               not included in PLATFORMS list */
  186. #define H_ERR_LIC_SERVBUSY            2035 /* License server busy */
  187. #define H_ERR_LIC_NOCONFFILE          2036 /* Could not find license.dat */
  188. #define H_ERR_LIC_BADFILE             2037 /* Invalid license file syntax */
  189. #define H_ERR_LIC_NOSERVER            2038 /* Cannot connect to a license
  190.                                               server */
  191. #define H_ERR_LIC_NOTTHISHOST         2041 /* Invalid host */
  192. #define H_ERR_LIC_LONGGONE            2042 /* Feature has expired */
  193. #define H_ERR_LIC_BADDATE             2043 /* Invalid date format in license
  194.                                               file */
  195. #define H_ERR_LIC_BADCOMM             2044 /* Invalid returned data from
  196.                                               license server */
  197. #define H_ERR_LIC_BADHOST             2045 /* Cannot find SERVER hostname in
  198.                                               network database */
  199. #define H_ERR_LIC_CANTWRITE           2047 /* Cannot write data to license
  200.                                               server */
  201. #define H_ERR_LIC_SERVLONGGONE        2051 /* License server does not support
  202.                                               this version of this feature */
  203. #define H_ERR_LIC_TOOMANY             2052 /* Request for more licenses than
  204.                                                this feature supports */
  205. #define H_ERR_LIC_CANTFINDETHER       2055 /* Cannot find ethernet device */
  206. #define H_ERR_LIC_NOREADLIC           2056 /* Cannot read license file */
  207. #define H_ERR_LIC_DATE_TOOBIG         2067 /* Date too late for binary format */
  208. #define H_ERR_LIC_NOSERVRESP          2069 /* Server did not respond to
  209.                                               message */
  210. #define H_ERR_LIC_SETSOCKFAIL         2075 /* setsockopt() failed */
  211. #define H_ERR_LIC_BADCHECKSUM         2076 /* Message checksum failure */
  212. #define H_ERR_LIC_INTERNAL_ERROR      2082 /* Internal licensing error */
  213. #define H_ERR_LIC_NOSERVCAP           2087 /* Server doesn't support this
  214.                                               request */
  215. #define H_ERR_LIC_POOL                2091 /* This feature is available in a
  216.                                               different license pool */
  217. #define H_ERR_LIC_NODONGLE            2300 /* Dongle not attached, or can't
  218.                                               read dongle */
  219. #define H_ERR_LIC_NODONGLEDRIVER      2301 /* Missing dongle driver */
  220. #define H_ERR_LIC_TIMEOUT             2318 /* Timeout */
  221. #define H_ERR_LIC_INVALID_CERTIFICATE 2321 /* Invalid license server
  222.                                               certificate */
  223. #define H_ERR_LIC_INVALID_TLS_CERTIFICATE 2335 /* Invalid license server
  224.                                            SSL/TLS certificate */
  225. #define H_ERR_LIC_BAD_ACTREQ          2339 /* Invalid activation request
  226.                                              received */
  227. #define H_ERR_LIC_NOT_ALLOWED         2345 /* Specified operation is not
  228.                                               allowed */
  229. #define H_ERR_LIC_ACTIVATION          2348 /* Activation error */
  230. #define H_ERR_LIC_NO_CM_RUNTIME       2379 /* No CodeMeter Runtime installed */
  231. #define H_ERR_LIC_CM_RUNTIME_TOO_OLD  2380 /* Installed CodeMeter Runtime is too
  232.                                               old */
  233. #define H_ERR_LIC_WRONG_EDITION       2381 /* License is for wrong HALCON
  234.                                               edition */
  235. #define H_ERR_LIC_UNKNOWN_FLAGS       2382 /* License contains unknown FLAGS */
  236. #define H_ERR_LIC_PREVIEW_EXPIRED     2383 /* HALCON preview version expired */
  237. #define H_ERR_LIC_NEWVER              2384 /* License does not support a HALCON
  238.                                               version this old */

  239. /*
  240. * Due to historical reasons, license error codes occupy two different ranges
  241. * of error codes. Make sure to adapt the following definitions if you add or
  242. * remove licensing error codes.
  243. */
  244. #define H_ERR_LIC_RANGE1_BEGIN      H_ERR_LIC_NO_LICENSE
  245. #define H_ERR_LIC_RANGE1_END        H_ERR_LIC_POOL
  246. #define H_ERR_LIC_RANGE2_BEGIN      H_ERR_LIC_NODONGLE
  247. #define H_ERR_LIC_RANGE2_END        H_ERR_LIC_NEWVER

  248. /* Error codes concerning the HALCON core, 2100..2199 */
  249. #define H_ERR_WOOPI        2100 /* Wrong index for output object parameter */
  250. #define H_ERR_WIOPI        2101 /* Wrong index for input object parameter*/
  251. #define H_ERR_WOI          2102 /* Wrong index for image object */
  252. #define H_ERR_WRCN         2103 /* Wrong number region/image component */
  253. #define H_ERR_WRRN         2104 /* Wrong relation name */
  254. #define H_ERR_AUDI         2105 /* Access to undefined gray value component*/
  255. #define H_ERR_WIWI         2106 /* Wrong image width */
  256. #define H_ERR_WIHE         2107 /* Wrong image height */
  257. #define H_ERR_ICUNDEF      2108 /* Undefined gray value component */

  258. /* Error codes concerning the HALCON core (+ Language interfaces),
  259.    2200..2299 */
  260. #define H_ERR_IDBD         2200 /* Inconsistent data of data base (typing) */
  261. #define H_ERR_WICPI        2201 /* Wrong index for input control parameter */
  262. #define H_ERR_DBDU         2202 /* Data of data base not defined
  263.                                    (internal error) */
  264. #define H_ERR_PNTL         2203 /* legacy: Number of operators too big */
  265. #define H_ERR_UEXTNI       2205 /* User extension not properly installed */
  266. #define H_ERR_NPTL         2206 /* legacy: Number of packages too large */
  267. #define H_ERR_NSP          2207 /* No such package installed */

  268. #define H_ERR_ICHV         2211 /* incompatible HALCON versions */
  269. #define H_ERR_ICOI         2212 /* incompatible operator interface */
  270. #define H_ERR_XPKG_WXID    2220 /* wrong extension package id */
  271. #define H_ERR_XPKG_WOID    2221 /* wrong operator id */
  272. #define H_ERR_XPKG_WOIID   2222 /* wrong operator information id */

  273. /* Error codes concerning the HALCON control tuples, 2400.. */
  274. #define H_ERR_CTPL_WTYP         2400 /* Wrong Hctuple array type */
  275. #define H_ERR_CPAR_WTYP         2401 /* Wrong Hcpar type */
  276. #define H_ERR_CTPL_WIDX         2402 /* Wrong Hctuple index */
  277. #define H_ERR_WFV               2403 /* Wrong version of file */
  278. #define H_ERR_WRONG_HANDLE_TYPE 2404 /* Wrong handle type */

  279. /* Error codes concerning the HALCON vectors, 2410.. */
  280. #define H_ERR_WVTYP         2410 /* wrong vector type */
  281. #define H_ERR_WVDIM         2411 /* wrong vector dimension */

  282. /* Error codes concerning the HALCON handles and ids 2450 ...
  283. * These error codes are only used internally and no error text is available
  284. * for these codes, therefore. */
  285. #define H_ERR_WHDL           2450 /* Wrong (unknown) HALCON handle */
  286. #define H_ERR_WID            2451 /* Wrong HALCON id, no data available */
  287. #define H_ERR_IDOOR          2452 /* HALCON id out of range */
  288. #define H_ERR_HANDLE_NULL    2453 /* Handle is NULL */
  289. #define H_ERR_HANDLE_CLEARED 2454 /* Handle was cleared */
  290. #define H_ERR_HANDLE_NOSER   2455 /* Handle type does not serialize */
  291. #define H_ERR_HANDLE_CYCLES  2456 /* Reference cycles of handles found */

  292. /* Error codes concerning control and iconic variables 2460..
  293. * These error codes are mainly used by the engine when dealing with
  294. * dictionaries, if an unexpected type is encountered (for example,
  295. * "throw(MyDict.image)" if MyDict.image is an image, not a tuple).
  296. */
  297. #define H_ERR_WT_CTRL_EXPECTED 2460 /* Type mismatch: Control expected, found iconic */
  298. #define H_ERR_WT_ICONIC_EXPECTED 2461 /* Type mismatc: Iconic expected, control found */

  299. /* Error codes concerning HALCON extensions, esp. of the
  300. * HALCON Library Extension Programming Interface (hlibxpi) 2500 ... */
  301. #define H_ERR_XPI_INIT_NOT_CALLED 2500 /* hlibxpi Init function of an extension
  302.                                         * that was build with xpi was not
  303.                                         * called */
  304. #define H_ERR_XPI_NO_INIT_FOUND   2501 /* hlib didn't find the init function
  305.                                         * of the extension it is connecting to
  306.                                         * -> old extension without hlibxpi or
  307.                                         *    the function export failed */
  308. #define H_ERR_XPI_UNRES           2502 /* Unresolved function in hlibxpi */
  309. #define H_ERR_XPI_HLIB_TOO_OLD    2503 /* HALCON extension requires a HALCON
  310.                                         * version that is newer than the
  311.                                         * connected hlib */
  312. #define H_ERR_XPI_XPI_TOO_OLD     2504 /* the (major) version of the hlibxpi
  313.                                         * which is used by the connecting
  314.                                         * extension is too small for hlib */
  315. #define H_ERR_XPI_MAJOR_TOO_SMALL 2505 /* the major version of the hlibxpi
  316.                                         * which is used by the hlib is too
  317.                                         * small */
  318. #define H_ERR_XPI_MINOR_TOO_SMALL 2506 /* the minor version of the hlibxpi
  319.                                         * which is used by the hlib is too
  320.                                         * small */
  321. #define H_ERR_XPI_INT_WRONG_MAJOR 2507 /* Wrong major version in symbol struct
  322.                                         * (internal: should not happen) */
  323. #define H_ERR_XPI_UNKNOW_HLIB_VER 2508 /* HLib version could not be detected */


  324. /* HALCON agents/scheduler (parallel processing HALCON operators),
  325.    2800..2999 */
  326. #define H_ERR_HW_WFF       2800 /* Wrong hardware information file format    */
  327. #define H_ERR_HW_WFV       2801 /* Wrong hardware information file version   */
  328. #define H_ERR_HW_RF        2802 /* Error while reading the hardware knowledge*/
  329. #define H_ERR_HW_WF        2803 /* Error while writing the hardware knowledge*/
  330. #define H_ERR_HW_TF        2804 /* Tag not found                             */
  331. #define H_ERR_HW_CPU       2805 /* No CPU Info  */
  332. #define H_ERR_HW_AOP       2806 /* No AOP Info  */
  333. #define H_ERR_HW_HVAR      2807 /* No AOP Info for this HALCON variant  */
  334. #define H_ERR_HW_HARCH     2808 /* No AOP Info for this HALCON architecture */
  335. #define H_ERR_HW_HOP       2809 /* No AOP Info for specified Operator found */
  336. #define H_ERR_HW_WAOPM     2810 /* undefined AOP model */
  337. #define H_ERR_HW_WTD       2811 /* wrong tag derivate */
  338. #define H_ERR_HW_IE        2812 /* internal error */
  339. #define H_ERR_HW_CANCEL    2813 /* hw check was canceled */

  340. #define H_ERR_GV_WA        2830 /* Wrong access to global variable */
  341. #define H_ERR_GV_NC        2831 /* Used global variable does not exist */
  342. #define H_ERR_GV_NG        2832 /* Used global variable not accessible via
  343.                                    GLOBAL_ID */

  344. #define H_ERR_HM_NT        2835 /* Halcon server to terminate is still
  345.                                    working on a job */

  346. #define H_ERR_HM_NA        2837 /* No such HALCON software agent */
  347. #define H_ERR_AG_CN        2838 /* Hardware check for parallelization not
  348.                                    possible on a single-processor machine */
  349. #define H_ERR_AG_NC        2839 /* (Seq.) HALCON does not support parallel
  350.                                    hardware check (use Parallel HALCON
  351.                                    instead) */
  352. #define H_ERR_AG_IN        2840 /* Initialization of agent failed */
  353. #define H_ERR_AG_NT        2841 /* Termination of agent failed */
  354. #define H_ERR_AG_HW        2842 /* Inconsistent hardware description file */
  355. #define H_ERR_AG_II        2843 /* Inconsistent agent information file */
  356. #define H_ERR_AG_IK        2844 /* Inconsistent agent knowledge file */
  357. #define H_ERR_AG_WV        2845 /* The file with the parallelization
  358.                                    information does not match to the
  359.                                    currently HALCON version/revision */
  360. #define H_ERR_AG_WH        2846 /* The file with the parallelization
  361.                                    information does not match to the
  362.                                    currently used machine */
  363. #define H_ERR_AG_KC        2847 /* Inconsistent knowledge base of HALCON
  364.                                    software agent */
  365. #define H_ERR_AG_CT        2848 /* Unknown communication type */
  366. #define H_ERR_AG_MT        2849 /* Unknown message type for HALCON software
  367.                                    agent */
  368. #define H_ERR_AG_WK        2850 /* Error while saving the parallelization
  369.                                    knowledge */
  370. #define H_ERR_AG_WW        2851 /* Wrong type of work information */
  371. #define H_ERR_AG_WA        2852 /* Wrong type of application information */
  372. #define H_ERR_AG_WE        2853 /* Wrong type of experience information */
  373. #define H_ERR_AG_NU        2854 /* Unknown name of HALCON software agent */
  374. #define H_ERR_AG_NE        2855 /* Unknown name and communication address of
  375.                                    HALCON software agent */
  376. #define H_ERR_AG_RR        2856 /* cpu representative (HALCON software agent)
  377.                                    not reachable */
  378. #define H_ERR_AG_CR        2857 /* cpu refuses work */
  379. #define H_ERR_AG_RN        2858 /* Description of scheduling resource
  380.                                    not found */
  381. #define H_ERR_AG_TILT      2859 /* Not accessible function of HALCON
  382.                                    software agent */

  383. #define H_ERR_WRT          2860 /* Wrong type: HALCON scheduling resource */
  384. #define H_ERR_WRS          2861 /* Wrong state: HALCON scheduling resource */
  385. #define H_ERR_UNKPT        2862 /* Unknown parameter type:
  386.                                    HALCON scheduling resource */
  387. #define H_ERR_UNKPARVAL    2863 /* Unknown parameter value:
  388.                                    HALCON scheduling resource */
  389. #define H_ERR_CTRL_WPP     2864 /* Wrong post processing of
  390.                                    control parameter */

  391. #define H_ERR_GETTI        2867 /* Error while trying to get time */
  392. #define H_ERR_GETCPUNUM    2868 /* Error while trying to get the number
  393.                                    of processors */
  394. #define H_ERR_TMPFNF       2869 /* Error while accessing temporary file */

  395. #define H_ERR_MQCNCL       2890 /* message queue wait operation canceled */
  396. #define H_ERR_MQOVL        2891 /* message queue overflow */
  397. #define H_ERR_MQCLEAR      2892 /* Threads still wait on message queue while
  398.                                  * clearing it. */
  399. #define H_ERR_M_WRFILE     2893 /* Invalid file format for a message */

  400. #define H_ERR_DICT_KEY     2894 /* Dict does not contain requested key */
  401. #define H_ERR_DICT_TUPLE_LENGTH 2895 /* Incorrect tuple length in dict */
  402. #define H_ERR_DICT_TUPLE_TYPE 2896 /* Incorrect tuple type in dict */

  403. #define H_ERR_PTHRD_SCHED  2900 /* Error while forcing a context switch */
  404. #define H_ERR_SCHED_GAFF   2901 /* Error while accessing cpu affinity */
  405. #define H_ERR_SCHED_SAFF   2902 /* Error while setting cpu affinity */

  406. #define H_ERR_CO_WSO       2950 /* wrong synchronization object  */
  407. #define H_ERR_CO_WOCO      2952 /* wrong operator call object   */
  408. #define H_ERR_CO_IOPNI     2953 /* input object not initialized */
  409. #define H_ERR_CO_ICPNI     2954 /* input control not initialized */
  410. #define H_ERR_CO_OOPNI     2955 /* output object not initialized */
  411. #define H_ERR_CO_OCPNI     2956 /* output control not initialized */

  412. #define H_ERR_PTHRD_CR     2970 /* Creation of pthread failed */
  413. #define H_ERR_PTHRD_DT     2971 /* pthread-detach failed */
  414. #define H_ERR_PTHRD_JO     2972 /* pthread-join failed */
  415. #define H_ERR_PTHRD_MI     2973 /* Initialization of mutex variable failed */
  416. #define H_ERR_PTHRD_MD     2974 /* Deletion of mutex variable failed */
  417. #define H_ERR_PTHRD_ML     2975 /* Lock of mutex variable failed */
  418. #define H_ERR_PTHRD_MU     2976 /* Unlock of mutex variable failed */
  419. #define H_ERR_PTHRD_CS     2977 /* Failed to signal pthread condition var. */
  420. #define H_ERR_PTHRD_CW     2978 /* Failed to wait for pthread cond. var. */
  421. #define H_ERR_PTHRD_CI     2979 /* Failed to init pthread condition var. */
  422. #define H_ERR_PTHRD_CD     2980 /* Failed to destroy pthread condition var.*/
  423. #define H_ERR_PTHRD_ES     2981 /* Failed to signal event. */
  424. #define H_ERR_PTHRD_EW     2982 /* Failed to wait for event. */
  425. #define H_ERR_PTHRD_EI     2983 /* Failed to init event. */
  426. #define H_ERR_PTHRD_ED     2984 /* Failed to destroy event.*/
  427. #define H_ERR_PTHRD_TSDC   2985 /* Failed to create a tsd key.*/
  428. #define H_ERR_PTHRD_TSDS   2986 /* Failed to set a thread specific data key.*/
  429. #define H_ERR_PTHRD_TSDG   2987 /* Failed to get a tsd key.*/
  430. #define H_ERR_PTHRD_TSDF   2988 /* Failed to free a tsd key.*/
  431. #define H_ERR_PTHRD_BA     2989 /* Aborted waiting at a barrier*/

  432. #define H_ERR_DCDG_FLE     2990 /* 'Free list' is empty while scheduling */

  433. #define H_ERR_MSG_PNCI     2991 /* Communication partner not checked in */
  434. #define H_ERR_MSG_CSAI     2992 /* The communication system can't be started
  435.                                    while running */
  436. #define H_ERR_MSG_CSNI     2993 /* Communication partner not checked in */

  437. #define H_ERR_PTHRD_BI     2994 /* Initialization of Barrier failed */
  438. #define H_ERR_PTHRD_BW     2995 /* Waiting at a barrier failed */
  439. #define H_ERR_PTHRD_BD     2996 /* Destroying of an barrier failed */


  440. /* Runlength data 3000..3099 */
  441. #define H_ERR_RCOIMA       3010 /* Region completely outside of the
  442.                                    image domain */
  443. #define H_ERR_ROOIMA       3011 /* Region (partially) outside of the
  444.                                    definition range of the image */
  445. #define H_ERR_RIEI         3012 /* Intersected definition range
  446.                                    region/image empty */
  447. #define H_ERR_EDEF         3013 /* Image with empty definition range */
  448. #define H_ERR_IIEI         3014 /* No common image point of two images */
  449. #define H_ERR_FLTS         3015 /* Wrong region for image (first row < 0) */
  450. #define H_ERR_LLTB         3016 /* Wrong region for image
  451.                                    (column in last row >= image width) */
  452. #define H_ERR_UENOI        3017 /* Number of images unequal in input pars. */
  453. #define H_ERR_HTS          3018 /* Image height too small */
  454. #define H_ERR_WTS          3019 /* Image width too small */
  455. #define H_ERR_CHSEG        3020 /* Internal error:
  456.                                    Multiple call of HRLInitSeg() */
  457. #define H_ERR_RLSEG1       3021 /* Internal error:
  458.                                    HRLSeg() not initialized */
  459. #define H_ERR_WGAUSSM      3022 /* Wrong size of filter for Gauss */
  460. #define H_ERR_FSEIS        3033 /* Filter size exceeds image size */
  461. #define H_ERR_FSEVAN       3034 /* Filter size evan */
  462. #define H_ERR_FSTOBIG      3035 /* Filter size to big */
  463. #define H_ERR_EMPTREG      3036 /* Region is empty */
  464. #define H_ERR_DOM_DIFF     3037 /* Domains of the input images differ */


  465. /* Coordinates */
  466. #define H_ERR_ROWTB        3040 /* Row value of a coordinate > 2^15-1
  467.                                    (XL: 2^30 - 1) */
  468. #define H_ERR_ROWTS        3041 /* Row value of a coordinate < -2^15+1
  469.                                    (XL: -2^30+1) */
  470. #define H_ERR_COLTB        3042 /* Column value of a coordinate > 2^15-1
  471.                                    (XL: 2^30 - 1) */
  472. #define H_ERR_COLTS        3043 /* Column value of a coordinate < -2^15+1
  473.                                    (XL: -2^30+1) */

  474. /* Error codes concerning image processing, 31xx */
  475. #define H_ERR_WRTHR        3100 /* Wrong segmentation threshold */
  476. #define H_ERR_UNKF         3101 /* Unknown feature */
  477. #define H_ERR_UNKG         3102 /* Unknown gray value feature */
  478. #define H_ERR_EINCC        3103 /* Internal error in HContCut */
  479. #define H_ERR_EINCP1       3104 /* Error in HContToPol:
  480.                                    distance of points too big */
  481. #define H_ERR_EINCP2       3105 /* Error in HContToPol: contour too long */
  482. #define H_ERR_TMR          3106 /* Too many rows (IPImageTransform) */
  483. #define H_ERR_SFZ          3107 /* Scaling factor = 0.0 (IPImageScale) */
  484. #define H_ERR_OOR          3108 /* Wrong range in transformation matrix */
  485. #define H_ERR_NEF          3109 /* Internal error in IPvvf: no element free */
  486. #define H_ERR_NOOB         3110 /* Number of input objects is zero */
  487. #define H_ERR_EMPOB        3111 /* At least one input object has an
  488.                                    empty region */
  489. #define H_ERR_NPOT         3112 /* Operation allowed for rectangular
  490.                                    images 2**n only */
  491. #define H_ERR_TMEP         3113 /* Too many relevant points (IPHysterese) */
  492. #define H_ERR_LTB          3114 /* Number of labels in image too big */
  493. #define H_ERR_NNLA         3115 /* No labels with negative values allowed */
  494. #define H_ERR_WFS          3116 /* Wrong filter size (too small ?) */
  495. #define H_ERR_IWDS         3117 /* Images with different image size */
  496. #define H_ERR_IWTL         3118 /* Target image too wide or too far
  497.                                    on the right */
  498. #define H_ERR_IWTS         3119 /* Target image too narrow or too far
  499.                                    on the left */
  500. #define H_ERR_IHTL         3120 /* Target image too high or too far down */
  501. #define H_ERR_IHTS         3121 /* Target image too low or too far up */
  502. #define H_ERR_DNOC         3122 /* Number of channels in the input parameters
  503.                                    are different */
  504. #define H_ERR_WRCFAFLT     3123 /* Wrong color filter array type */
  505. #define H_ERR_WRCFAINT     3124 /* Wrong color filter array interpolation */
  506. #define H_ERR_NO_AFFTRANS  3125 /* Homogeneous matrix does not represent an
  507.                                    affine transformation */
  508. #define H_ERR_INPNOBDRY    3126 /* Inpainting region too close to the image
  509.                                    border */
  510. #define H_ERR_DSIZESD      3127 /* source and destination differ in size*/
  511. #define H_ERR_TMFEAT       3128 /* to many features*/
  512. #define H_ERR_AXIS_UNDEF   3129 /* Reflection axis undefined */

  513. /* Coocurrence */
  514. #define H_ERR_COWTS        3131 /* Coocurrence Matrix:
  515.                                    Too little columns for quantisation */
  516. #define H_ERR_COHTS        3132 /* Coocurrence Matrix:
  517.                                    Too little rows for quantisation */
  518. #define H_ERR_NUM_COLMN    3133 /* Wrong number of columns */
  519. #define H_ERR_NUM_LINES    3134 /* Wrong number of rows */
  520. #define H_ERR_OVL          3135 /* Number has too many digits */
  521. #define H_ERR_NOT_SYM      3136 /* Matrix is not symmetric */
  522. #define H_ERR_NUM_COLS     3137 /* Matrix is too big */
  523. #define H_ERR_SYNTAX       3138 /* Wrong structure of file */
  524. #define H_ERR_MISSING      3139 /* Less than 2 matrices */
  525. #define H_ERR_COOC_MEM     3140 /* Not enough memory */
  526. #define H_ERR_NO_FILE      3141 /* Can not read the file */
  527. #define H_ERR_FILE_WR      3142 /* Can not open file for writing */
  528. #define H_ERR_NUM_LUCOLS   3143 /* Too many lookup table colors */

  529. #define H_ERR_WNOLI        3145 /* Too many Hough points (lines) */
  530. #define H_ERR_DITS         3146 /* Target image has got wrong height
  531.                                    (not big enough) */
  532. #define H_ERR_WINTM        3147 /* Wrong interpolation mode */
  533. #define H_ERR_THICK_NK     3148 /* Region not compact or not connected */


  534. /* Laws */
  535. #define H_ERR_WIND3        3170 /* Wrong filter index for filter size 3 */
  536. #define H_ERR_WIND5        3171 /* Wrong filter index for filter size 5 */
  537. #define H_ERR_WIND7        3172 /* Wrong filter index for filter size 7 */
  538. #define H_ERR_WLAWSS       3173 /* Wrong filter size; only 3/5/7 */

  539. /* Noise estimation */
  540. #define H_ERR_NE_NPTS      3175 /* Number of suitable pixels too small to
  541.                                    reliably estimate the noise */

  542. /* Contour */
  543. #define H_ERR_WNEE         3200 /* Different number of entries/exits
  544.                                    in HContCut */
  545. #define H_ERR_REF          3201 /* Reference to contour is missing */

  546. /* XLD */
  547. #define H_ERR_XLDWT        3250 /* Wrong XLD type */
  548. #define H_ERR_XLD_RPF      3252 /* Border point is set to FG */
  549. #define H_ERR_XLD_MCL      3253 /* Maximum contour length exceeded */
  550. #define H_ERR_XLD_MCN      3254 /* Maximum number of contours exceeded */
  551. #define H_ERR_XLD_CTS      3255 /* Contour too short for fetch_angle_xld */
  552. #define H_ERR_XLD_CRD      3256 /* Regression parameters of contours
  553.                                    already computed */
  554. #define H_ERR_XLD_CRND     3257 /* Regression parameters of contours not
  555.                                    yet entered! */

  556. #define H_ERR_DBXC         3258 /* Data base: XLD object has been deleted */
  557. #define H_ERR_DBWXID       3259 /* Data base: Object has no XLD-ID */

  558. #define H_ERR_XLD_WNP      3260 /* Wrong number of contour points allocated */
  559. #define H_ERR_XLD_CAND     3261 /* Contour attribute not defined */

  560. #define H_ERR_FIT_ELLIPSE  3262 /* Ellipse fitting failed */
  561. #define H_ERR_FIT_CIRCLE   3263 /* Circle fitting failed */
  562. #define H_ERR_FIT_CLIP     3264 /* All points classified as outliers
  563.                                    (ClippingFactor too small or used points
  564.                                    not similar to primitive) */
  565. #define H_ERR_FIT_QUADRANGLE 3265 /* Quadrangle fitting failed */
  566. #define H_ERR_INCOMPL_RECT 3266 /* No points for at least one rectangle side */
  567. #define H_ERR_XLD_COI      3267 /* A contour point lies outside of the image */
  568. #define H_ERR_FIT_NOT_ENOUGH_POINTS  3274 /* Not enough points for model
  569.                                              fitting */


  570. #define H_ERR_NWF          3275 /* No ARC/INFO world file */
  571. #define H_ERR_NAIGF        3276 /* No ARC/INFO generate file */

  572. #define H_ERR_DXF_UEOF     3278 /* Unexpected end of file while
  573.                                    reading DXF file */
  574. #define H_ERR_DXF_CRGC     3279 /* Cannot read DXF-group code from file */
  575. #define H_ERR_DXF_INAPP    3280 /* Inconsistent number of attributes
  576.                                    per point in DXF file */
  577. #define H_ERR_DXF_INAPPN   3281 /* Inconsistent number of attributes and
  578.                                    names in DXF file */
  579. #define H_ERR_DXF_INAPCN   3282 /* Inconsistent number of global attributes
  580.                                    and names in DXF file */
  581. #define H_ERR_DXF_CRAPP    3283 /* Cannot read attributes from DXF file */
  582. #define H_ERR_DXF_CRAPC    3284 /* Cannot read global attributes
  583.                                    from DXF file */
  584. #define H_ERR_DXF_CRAN     3285 /* Cannot read attribute names from DXF file */
  585. #define H_ERR_DXF_WPN      3286 /* Wrong generic parameter name */
  586. #define H_ERR_DXF_IEDT     3289 /* Internal DXF I/O error: Wrong data type */

  587. #define H_ERR_XLD_ISOL_POINT 3290 /* Isolated point while contour merging */

  588. #define H_ERR_NURBS_CCBF   3291  /* Constraints cannot be fulfilled */

  589. #define H_ERR_NSEG         3292  /* No segment in contour */
  590. #define H_ERR_NO_ONE_P     3293  /* Only one or no point in template contour */

  591. /* Classification */
  592. #define H_ERR_SESF         3300 /* Syntax error in file for training */
  593. #define H_ERR_TMFE         3301 /* Maximum number of attributes per example
  594.                                    exceeded */
  595. #define H_ERR_OPSF         3302 /* Not possible to open file for training */
  596. #define H_ERR_TMSS         3303 /* Too many data sets for training */
  597. #define H_ERR_TMSAM        3305 /* Too many examples for one data set for
  598.                                    training */
  599. #define H_ERR_TMCLS        3306 /* Too many classes */
  600. #define H_ERR_TMBOX        3307 /* Maximum number of cuboids exceeded */
  601. #define H_ERR_OPCF         3308 /* Not possible to open classificator's file */
  602. #define H_ERR_SCLA         3309 /* Error while saving the classificator */
  603. #define H_ERR_OPF          3310 /* Not possible to open protocol file */
  604. #define H_ERR_CLEX         3311 /* Classificator with this name is already
  605.                                    existent */
  606. #define H_ERR_TMCLA        3312 /* Maximum number of classificators exceeded */
  607. #define H_ERR_CNTL         3313 /* Name of classificator is too long, >= 20 */
  608. #define H_ERR_CLNNF        3314 /* Classificator with this name is not
  609.                                    existent */
  610. #define H_ERR_NCCLA        3315 /* Current classificator is not defined */
  611. #define H_ERR_CLASS2_ID    3316 /* Wrong id in classification file */
  612. #define H_ERR_CLASS2_VERS  3317 /* The version of the classifier
  613.                                    is not supported */
  614. #define H_ERR_CLASS_NOSITEM 3318 /* Serialized item does not contain
  615.                                     a valid classifier */
  616. #define H_ERR_TM_NO_CL      3319 /* Text model does not contain a classifier
  617.                                     yet (use set_text_model_param) */


  618. #define H_ERR_KNN_CANNOT_ADD       3320  /* Adding new features is not
  619.                                             possible, because the dataset has
  620.                                             been normalized during training.
  621.                                             Please create a new classfier and
  622.                                             add all training data again or
  623.                                             disable normalization during
  624.                                             training.*/

  625. #define H_ERR_GMM_NOTRAINFILE      3330 /* Invalid file format for GMM
  626.                                            training samples */
  627. #define H_ERR_GMM_WRTRAINVERS      3331 /* The version of the GMM training
  628.                                            samples is not supported */
  629. #define H_ERR_GMM_WRSMPFORMAT      3332 /* Wrong training sample file format */
  630. #define H_ERR_GMM_NOCLASSFILE      3333 /* nvalid file format for
  631.                                            Gaussian Mixture Model (GMM) */
  632. #define H_ERR_GMM_WRCLASSVERS      3334 /* The version of the Gaussian Mixture
  633.                                            Model (GMM) is not supported */
  634. #define H_ERR_GMM_TRAIN_UNKERR     3335 /* Unknown error when training GMM */
  635. #define H_ERR_GMM_TRAIN_COLLAPSED  3336 /* Collapsed covariance matrix */
  636. #define H_ERR_GMM_TRAIN_NOSAMPLE   3337 /* No samples for at least one class */
  637. #define H_ERR_GMM_TRAIN_FEWSAMPLES 3338 /* Too few samples for at least one
  638.                                            class */
  639. #define H_ERR_GMM_NOTTRAINED       3340 /* GMM is not trained */
  640. #define H_ERR_GMM_NOTRAINDATA      3341 /* GMM has no training data */
  641. #define H_ERR_GMM_NOSITEM          3342 /* Serialized item does not contain a
  642.                                          valid Gaussian Mixture Model (GMM) */

  643. #define H_ERR_MLP_UNKOUTFUNC  3350 /* Unknown output function */
  644. #define H_ERR_MLP_NOT01ENC    3351 /* Target not in 0-1 encoding */
  645. #define H_ERR_MLP_NOTRAINDATA 3352 /* No training samples stored in the
  646.                                       classifier */
  647. #define H_ERR_MLP_NOTRAINFILE 3353 /* Invalid file format for MLP
  648.                                       training samples */
  649. #define H_ERR_MLP_WRTRAINVERS 3354 /* The version of the MLP training
  650.                                       samples is not supported */
  651. #define H_ERR_MLP_WRSMPFORMAT 3355 /* Wrong training sample format */
  652. #define H_ERR_MLP_NOCLASSIF   3356 /* MLP is not a classifier */
  653. #define H_ERR_MLP_NOCLASSFILE 3357 /* Invalid file format for
  654.                                       multilayer perceptron (MLP) */
  655. #define H_ERR_MLP_WRCLASSVERS 3358 /* The version of the multilayer
  656.                                       perceptron (MLP) is not supported */
  657. #define H_ERR_WRNUMCHAN       3359 /* Wrong number of channels */
  658. #define H_ERR_MLP_WRNUMPARAM  3360 /* Wrong number of MLP parameters */
  659. #define H_ERR_MLP_NOSITEM     3361 /* Serialized item does not contain a
  660.                                       valid multilayer perceptron (MLP) */


  661. #define H_ERR_LUT_WRNUMCHAN   3370 /* The number of image channels and the
  662.                                       number of dimensions of the look-up
  663.                                       table do not match */
  664. #define H_ERR_LUT_NRCHANLARGE 3371 /* A look-up table can be build for 2 or 3
  665.                                       channels only */
  666. #define H_ERR_LUT_CANNOTCREAT 3372 /* Cannot create look-up table. Please
  667.                                       choose a larger 'bit_depth' or select
  668.                                       the 'fast' 'class_selection'. */


  669. #define H_ERR_SVM_NOTRAINDATA  3380 /* No training samples stored in the
  670.                                        classifier */
  671. #define H_ERR_SVM_NOTRAINFILE  3381 /* Invalid file format for SVM
  672.                                        training samples */
  673. #define H_ERR_SVM_WRTRAINVERS  3382 /* The version of the SVM training
  674.                                        samples is not supported */
  675. #define H_ERR_SVM_WRSMPFORMAT  3383 /* Wrong training sample format */
  676. #define H_ERR_SVM_NOCLASSFILE  3384 /* Invalid file format for support
  677.                                        vector machine (SVM) */
  678. #define H_ERR_SVM_WRCLASSVERS  3385 /* The version of the support vector
  679.                                        machine (SVM) is not supported */
  680. #define H_ERR_SVM_WRNRCLASS    3386 /* Wrong number of classes */
  681. #define H_ERR_SVM_NU_TOO_BIG   3387 /* Chosen nu is too big */
  682. #define H_ERR_SVM_TRAIN_FAIL   3388 /* SVM Training failed */
  683. #define H_ERR_SVM_DO_NOT_FIT   3389 /* SVMs do not fit together */
  684. #define H_ERR_SVM_NO_TRAIN_ADD 3390 /* No SV in SVM to add to training */
  685. #define H_ERR_SVM_KERNELNOTRBF 3391 /* Kernel must be RBF */
  686. #define H_ERR_SVM_NO_TRAIND_FOR_CLASS 3392 /* Not all classes contained in
  687.                                               training data */
  688. #define H_ERR_SVM_NOT_TRAINED  3393 /* SVM not trained */
  689. #define H_ERR_NOT_TRAINED      3394 /* Classifier not trained */
  690. #define H_ERR_SVM_NOSITEM      3395 /* Serialized item does not contain a
  691.                                        valid support vector machine (SVM) */

  692. /* Morphology */
  693. #define H_ERR_ROTNR        3401 /* Wrong rotation number */
  694. #define H_ERR_GOL          3402 /* Wrong letter for Golay element */
  695. #define H_ERR_BEZ          3403 /* Wrong reference point */
  696. #define H_ERR_ITER         3404 /* Wrong number of iterations */
  697. #define H_ERR_MOSYS        3405 /* Mophology: system error */
  698. #define H_ERR_ART          3406 /* Wrong type of boundary */
  699. #define H_ERR_OBJI         3407 /* Morphology: Wrong number of input obj. */
  700. #define H_ERR_OBJO         3408 /* Morphology: Wrong number of output obj. */
  701. #define H_ERR_PARI         3409 /* Morphology: Wrong number of input
  702.                                    control parameter */
  703. #define H_ERR_PARO         3410 /* Morphology: Wrong number of output
  704.                                    control parameter */
  705. #define H_ERR_SELC         3411 /* Morphology: Struct. element is infinite */
  706. #define H_ERR_WRNSE        3412 /* Morphology: Wrong name for struct. elem. */

  707. /* Runlength encoding, 35xxx */
  708. #define H_ERR_WRRLN1       3500 /* Wrong number of run length rows (chords):
  709.                                    smaller than 0 */
  710. #define H_ERR_WRRLN2       3501 /* Number of chords too big, increase
  711.                                  * current_runlength_number using set_system*/
  712. #define H_ERR_WRRLL        3502 /* Run length row with negative length */
  713. #define H_ERR_RLLTB        3503 /* Run length row >= image height */
  714. #define H_ERR_RLLTS        3504 /* Run length row < 0 */
  715. #define H_ERR_RLCTB        3505 /* Run length column >= image width */
  716. #define H_ERR_RLCTS        3506 /* Lauflaengenspalte < 0 */
  717. #define H_ERR_CHLTB        3507 /* For CHORD_TYPE: Number of row too big */
  718. #define H_ERR_CHLTS        3508 /* For CHORD_TYPE: Number of row too small */
  719. #define H_ERR_CHCTB        3509 /* For CHORD_TYPE: Number of column too big */
  720. #define H_ERR_MRLE         3510 /* Exceeding the maximum number of run lengths
  721.                                    while automatic expansion */
  722. #define H_ERR_ICCOMPL      3511 /* Region->compl neither true/false */
  723. #define H_ERR_RLEMAX       3512 /* Region->max_num < Region->num */
  724. #define H_ERR_WRRLN3       3513 /* Number of chords too big for num_max */
  725. #define H_ERR_OPNOCOMPL    3514 /* Operator cannot be implemented for
  726.                                    complemented regions */

  727. /* Image format */
  728. #define H_ERR_WIMAW1        3520 /* Image width < 0 */
  729. #define H_ERR_WIMAW2        3521 /* Image width >= MAX_FORMAT */
  730. #define H_ERR_WIMAH1        3522 /* Image height <= 0 */
  731. #define H_ERR_WIMAH2        3523 /* Image height >= MAX_FORMAT */
  732. #define H_ERR_WIMAW3        3524 /* Image width <= 0 */
  733. #define H_ERR_WIMAH3        3525 /* Image height <= 0 */
  734. #define H_ERR_TMS           3550 /* Too many segments */
  735. #define H_ERR_NO_INT8_IMAGE 3551 /* INT8 images are available on 64 bit systems
  736.                                     only */


  737. /* Projective transformations */
  738. #define H_ERR_POINT_AT_INFINITY    3600 /* Point at infinity cannot be
  739.                                            converted to a Euclidean point */
  740. #define H_ERR_ML_NO_COVARIANCE     3601 /* Covariance matrix could not be
  741.                                            determined */
  742. #define H_ERR_RANSAC_PRNG          3602 /* RANSAC algorithm didn't find enough
  743.                                            point correspondences */
  744. #define H_ERR_RANSAC_TOO_DIFFERENT 3603 /* RANSAC algorithm didn't find enough
  745.                                            point correspondences */
  746. #define H_ERR_PTI_FALLBACK         3604 /* Internal diagnosis: fallback method
  747.                                            had to be used */
  748. #define H_ERR_PTI_TRAFO_SING       3605 /* Projective transformation is
  749.                                            singular */
  750. #define H_ERR_PTI_MOSAIC_UNDERDET  3606 /* Mosaic is under-determined */

  751. #define H_ERR_COV_NPD              3607 /* Input covariance matrix
  752.                                            is not positive definite */
  753. #define H_ERR_TOO_MANY_POINTS      3608 /* The number of input points
  754.                                            too large. */

  755. /* Self-calibration */
  756. #define H_ERR_INPC         3620 /* Inconsistent number of point
  757.                                    correspondences. */
  758. #define H_ERR_NOPA         3621 /* No path from reference image to one or
  759.                                    more images. */
  760. #define H_ERR_IINE         3622 /* Image with specified index does not
  761.                                    exist. */
  762. #define H_ERR_NOCM         3623 /* Matrix is not a camera matrix. */
  763. #define H_ERR_SKNZ         3624 /* Skew is not zero. */
  764. #define H_ERR_ILFL         3625 /* Illegal focal length. */
  765. #define H_ERR_KANZ         3626 /* Kappa is not zero. */
  766. #define H_ERR_VARA         3627 /* It is not possible to determine all
  767.                                    parameters for in the variable case. */
  768. #define H_ERR_LVDE         3628 /* No valid implementation selected. */
  769. #define H_ERR_KPAR         3629 /* Kappa can only be determined with the
  770.                                    gold-standard method for fixed camera
  771.                                    parameters. */
  772. #define H_ERR_IMOD         3630 /* Conflicting number of images and projection
  773.                                    mode. */
  774. #define H_ERR_PNIC         3631 /* Error in projection: Point not in any cube
  775.                                    map. */
  776. #define H_ERR_NO_SOL       3632 /* No solution found. */
  777. #define H_ERR_TINZ         3633 /* Tilt is not zero. */

  778. /* Adjust mosaic */
  779. #define H_ERR_ILMD         3640 /* Illegal combination of parameters and
  780.                                    estimation method. */

  781. /* Self-calibration of radial distortions */
  782. #define H_ERR_RDS_NSC      3660 /* No suitable contours found */
  783. #define H_ERR_RDS_NSS      3661 /* No stable solution found */
  784. #define H_ERR_RDS_ISS      3662 /* Instable solution found */
  785. #define H_ERR_RDS_NEC      3663 /* Not enough contours for calibration */


  786. /* FFT */
  787. #define H_ERR_NOFFTOPT       3650 /* Invalid file format for FFT
  788.                                      optimization data */
  789. #define H_ERR_WRFFTOPTVERS   3651 /* The version of the FFT optimization
  790.                                      data is not supported */
  791. #define H_ERR_WRHALCONVERS   3652 /* Optimization data was created with a
  792.                                    different HALCON version
  793.                                    (Standard HALCON / Parallel HALCON) */
  794. #define H_ERR_OPTFAIL        3653 /* Storing of the optimization data failed */
  795. #define H_ERR_FFTOPT_NOSITEM 3654 /* Serialized item does not contain valid
  796.                                      FFT optimization data */

  797. /* binocular_disparity */
  798. #define H_ERR_INVLD_DISP_RANGE 3690 /* Invalid disparity range for
  799.                                        binocular_disparity_ms method */

  800. /* Stereo */
  801. #define H_ERR_EPIINIM      3700 /* Epipoles are situated within the image
  802.                                    domain */
  803. #define H_ERR_EPI_FOV      3701 /* Fields of view of both cameras do not
  804.                                    intersect each other */
  805. #define H_ERR_EPI_RECT     3702 /* Rectification impossible */


  806. /* Bead Inspection */
  807. #define H_ERR_BI_WT_TARGET         3710 /* Wrong type of target_thickness
  808.                                            parameter */
  809. #define H_ERR_BI_WT_THICKNESS      3711 /* Wrong type of thickness_tolerance
  810.                                            parameter */
  811. #define H_ERR_BI_WT_POSITION       3712 /* Wrong type of position_tolerance
  812.                                            parameter */
  813. #define H_ERR_BI_WT_SIGMA          3713 /* Wrong type of sigma parameter */
  814. #define H_ERR_BI_WV_SIGMA          3714 /* Wrong value of sigma parameter */
  815. #define H_ERR_BI_WT_THRESH         3715 /* Wrong type of threshold
  816.                                            parameter */
  817. #define H_ERR_BI_WV_TARGET         3716 /* Wrong value of target_thickness
  818.                                            parameter */
  819. #define H_ERR_BI_WV_THICKNESS      3717 /* Wrong value of thickness_tolerance
  820.                                            parameter */
  821. #define H_ERR_BI_WV_POSITION       3718 /* Wrong value of position_tolerance
  822.                                            parameter */
  823. #define H_ERR_BI_WV_THRESH         3719 /* Wrong value of threshold
  824.                                            parameter */
  825. #define H_ERR_BI_WT_REFINE         3720 /* Wrong type of refinement
  826.                                            parameter */
  827. #define H_ERR_BI_WV_REFINE         3721 /* Wrong value of refinement
  828.                                            parameter */
  829. #define H_ERR_BI_WT_RESOL          3722 /* Wrong type of resolution
  830.                                            parameter */
  831. #define H_ERR_BI_WV_RESOL          3723 /* Wrong type of resolution
  832.                                            parameter */
  833. #define H_ERR_BI_WT_POLARITY       3724 /* Wrong type of polarity
  834.                                            parameter */
  835. #define H_ERR_BI_WV_POLARITY       3725 /* Wrong type of polarity
  836.                                            parameter */


  837. /* Sheet-of-light */
  838. #define H_ERR_SOL_EMPTY_MODEL_LIST 3751 /* No sheet-of-light model available*/
  839. #define H_ERR_SOL_WNIW             3752 /* Wrong input image size (width) */
  840. #define H_ERR_SOL_WNIH             3753 /* Wrong input image size (height) */
  841. #define H_ERR_SOL_WPROF_REG        3754 /* profile region does not fit the
  842.                                            domain of definition of the input
  843.                                            image */
  844. #define H_ERR_SOL_CAL_NONE         3755 /* Calibration extend not set */
  845. #define H_ERR_SOL_UNDEF_DISPARITY  3756 /* Undefined disparity image */
  846. #define H_ERR_SOL_UNDEF_DISPDOMAIN 3757 /* Undefined domain for disparity
  847.                                            image */
  848. #define H_ERR_SOL_UNDEF_CAMPAR     3758 /* Undefined camera parameter */
  849. #define H_ERR_SOL_UNDEF_LPCS       3759 /* Undefined pose of the lightplane */
  850. #define H_ERR_SOL_UNDEF_CCS        3760 /* Undefined pose of the camera
  851.                                            coordinate system */
  852. #define H_ERR_SOL_UNDEF_CCS_2_LPCS 3761 /* Undefined transformation from the
  853.                                            camera to the lightplane
  854.                                            coordinate system */
  855. #define H_ERR_SOL_UNDEF_MOV_POSE   3762 /* Undefined movement pose for xyz
  856.                                            calibration */
  857. #define H_ERR_SOL_WV_SCALE         3763 /* Wrong value of scale parameter */
  858. #define H_ERR_SOL_WV_PAR_NAME      3764 /* Wrong parameter name */
  859. #define H_ERR_SOL_WT_METHOD        3765 /* Wrong type of parameter method */
  860. #define H_ERR_SOL_WT_AMBIGUITY     3766 /* Wrong type of parameter
  861.                                            ambiguity */
  862. #define H_ERR_SOL_WT_SCORE_TYPE    3767 /* Wrong type of parameter score */
  863. #define H_ERR_SOL_WT_CALIBRATION   3768 /* Wrong type of parameter
  864.                                            calibration */
  865. #define H_ERR_SOL_WT_NUM_PROF      3769 /* Wrong type of parameter
  866.                                            number_profiles */
  867. #define H_ERR_SOL_WT_CAM_PAR       3770 /* Wrong type of element in parameter
  868.                                            camera_parameter */
  869. #define H_ERR_SOL_WT_PAR_POSE      3771 /* Wrong type of element in pose */
  870. #define H_ERR_SOL_WV_METHOD        3772 /* Wrong value of parameter method */
  871. #define H_ERR_SOL_WT_THRES         3773 /* Wrong type of parameter min_gray */
  872. #define H_ERR_SOL_WV_AMBIGUITY     3774 /* Wrong value of parameter
  873.                                            ambiguity */
  874. #define H_ERR_SOL_WV_SCORE_TYPE    3775 /* Wrong value of parameter
  875.                                            score_type */
  876. #define H_ERR_SOL_WV_CALIBRATION   3776 /* Wrong value of parameter
  877.                                            calibration */
  878. #define H_ERR_SOL_WV_NUM_PROF      3777 /* Wrong value of parameter
  879.                                            number_profiles */
  880. #define H_ERR_SOL_WV_CAMERA_TYPE   3778 /* Wrong type of camera */
  881. #define H_ERR_SOL_WN_CAM_PAR       3779 /* Wrong number of values of parameter
  882.                                            camera_parameter */
  883. #define H_ERR_SOL_WN_POSE          3780 /* Wrong number of values of pose */
  884. #define H_ERR_SOL_NO_TARGET_FOUND  3781 /* Calibration target not found */
  885. #define H_ERR_SOL_NO_VALID_SOL     3782 /* The calibration algorithm failed to
  886.                                            find a valid solution. */
  887. #define H_ERR_SOL_WT_CALIB_OBJECT  3783 /* Wrong type of parameter
  888.                                            calibration_object */
  889. #define H_ERR_SOL_INVALID_CALIB_OBJECT 3784 /* Invalid calibration object */
  890. #define H_ERR_SOL_NO_CALIB_OBJECT_SET 3785  /* No calibration object set */
  891. #define H_ERR_SOL_WR_FILE_FORMAT 3786       /* Invalid file format for
  892.                                                sheet-of-light model */
  893. #define H_ERR_SOL_WR_FILE_VERS   3787       /* The version of the
  894.                                                sheet-of-light model is not
  895.                                                supported */
  896. #define H_ERR_SOL_CAMPAR_UNSUPPORTED 3788   /* Camera type not supported by
  897.                                                calibrate_sheet_of_light_model*/
  898. /* 3789 Used to be: Not available with calibration object based calibration */
  899. #define H_ERR_SOL_PAR_CALIB 3790            /* Parameter does not match the
  900.                                                set 'calibration' */
  901. #define H_ERR_SOL_WGV_DISP         3791     /* The gray values of the disparity
  902.                                                image do not fit the height of
  903.                                                the camera */

  904. /* Texture Inspection */
  905. #define H_ERR_TI_WRONGMODEL       3800 /* Wrong texture inspection model type*/
  906. #define H_ERR_TI_NOTTRAINED       3801 /* Texture Model is not trained */
  907. #define H_ERR_TI_NOTRAINDATA      3802 /* Texture Model has no training data */
  908. #define H_ERR_TI_NOTRAINFILE      3803 /* Invalid file format for Texture
  909.                                           inspection model */
  910. #define H_ERR_TI_WRTRAINVERS      3804 /* The version of the Texture inspection
  911.                                           model is not supported */
  912. #define H_ERR_TI_WRSMPFORMAT      3805 /* Wrong training sample file format */
  913. #define H_ERR_TI_WRSMPVERS        3806 /* The version of the training sample
  914.                                           file is not supported */
  915. #define H_ERR_TI_WRIMGSIZE        3807 /* At least one of the images is too
  916.                                           small */
  917. #define H_ERR_TI_WRSMPTEXMODEL    3808 /* The samples do not match the current
  918.                                           texture model */
  919. #define H_ERR_NOT_ENOUGH_IMAGES   3809 /* No images within the texture model */

  920. /* Shape-From */
  921. #define H_ERR_SING         3850 /* The light source positions are linearly
  922.                                    dependent */
  923. #define H_ERR_FEWIM        3851 /* No sufficient image indication */
  924. #define H_ERR_ZBR_NOS      3852 /* Internal error: Function has equal signs
  925.                                    in HZBrent */


  926. /* Kalman filter */
  927. #define H_ERR_DIMK         3900 /* Kalman: Dimension n,m or p has got a
  928.                                    undefined value */
  929. #define H_ERR_NOFILE       3901 /* Kalman: File does not exist */
  930. #define H_ERR_FF1          3902 /* Kalman: Error in file (row of dimension) */
  931. #define H_ERR_FF2          3903 /* Kalman: Error in file (row of marking) */
  932. #define H_ERR_FF3          3904 /* Error in file (value is no float) */
  933. #define H_ERR_NO_A         3905 /* Kalman: Matrix A is missing in file */
  934. #define H_ERR_NO_C         3906 /* Kalman: In Datei fehlt Matrix C */
  935. #define H_ERR_NO_Q         3907 /* Kalman: Matrix Q is missing in file */
  936. #define H_ERR_NO_R         3908 /* Kalman: Matrix R is missing in file */
  937. #define H_ERR_NO_GU        3909 /* Kalman: G or u is missing in file */
  938. #define H_ERR_NOTSYMM      3910 /* Kalman: Covariant matrix is not symmetric */
  939. #define H_ERR_SINGU        3911 /* Kalman: Equation system is singular */

  940. /* Structured Light */
  941. #define H_ERR_SLM_NOT_PERSISTENT 3950 /* structured light model is not in
  942.                                          persistent mode */
  943. #define H_ERR_SLM_MSW_TOO_LARGE  3951 /* the min_stripe_width is too large for
  944.                                          the chosen pattern_width or
  945.                                          pattern_height */
  946. #define H_ERR_SLM_SSW_TOO_LARGE  3952 /* the single_stripe_width is too large
  947.                                          for the chosen pattern_width or
  948.                                          pattern_height */
  949. #define H_ERR_SLM_MSW_GT_SSW     3953 /* min_stripe_width has to be smaller
  950.                                          than single_stripe_width. */
  951. #define H_ERR_SLM_SSW_LT_MSW     3954 /* single_stripe_width is too small
  952.                                          for min_stripe_width. */
  953. #define H_ERR_SLM_NOT_PREP       3955 /* The SLM is not prepared for
  954.                                          decoding. */
  955. #define H_ERR_SLM_NO_OBJS        3956 /* The SLM does not contain the queried
  956.                                          object. */
  957. #define H_ERR_SLM_WRVERS         3957 /* The version of the structured light
  958.                                          model is not supported */
  959. #define H_ERR_SLM_WRFILE         3958 /* Invalid file format for a structured light
  960.                                          model */
  961. #define H_ERR_SLM_WRONGPATTERN   3959 /* Wrong pattern type*/
  962. #define H_ERR_SLM_NOT_DECODED    3960 /* The SLM is not decoded. */
  963. #define H_ERR_SLM_WRONGMODEL     3961 /* Wrong model type*/

  964. /* Data Base and Image data management */
  965. #define H_ERR_DBOIT        4050 /* Object is an object tuple */
  966. #define H_ERR_DBOC         4051 /* Object has been deleted already */
  967. #define H_ERR_DBWOID       4052 /* Wrong object-ID */
  968. #define H_ERR_DBTC         4053 /* Object tuple has been deleted already */
  969. #define H_ERR_DBWTID       4054 /* Wrong object tupel-ID */
  970. #define H_ERR_DBTIO        4055 /* Object tuple is an object */
  971. #define H_ERR_DBIDNULL     4056 /* Object-ID is NULL (0) */
  972. #define H_ERR_WDBID        4057 /* Object-ID outside the valid range */
  973. #define H_ERR_DBIC         4058 /* Access to deleted image */
  974. #define H_ERR_DBWIID       4059 /* Access to image with wrong key */
  975. #define H_ERR_DBRC         4060 /* Access to deleted region */
  976. #define H_ERR_DBWRID       4061 /* Access to region with wrong key */
  977. #define H_ERR_WCHAN        4062 /* Wrong value for image channel */
  978. #define H_ERR_DBITL        4063 /* Index too big */
  979. #define H_ERR_DBIUNDEF     4064 /* Index not defined */


  980. /* OpenCL related error messages */
  981. #define H_ERR_NO_OPENCL           4100 /* No OpenCL available */
  982. #define H_ERR_OPENCL_ERROR        4101 /* OpenCL Error occurred */
  983. #define H_ERR_NO_COMPUTE_DEVICES  4102 /* No compute devices available */
  984. #define H_ERR_NO_DEVICE_IMPL      4103 /* No device implementation for this
  985.                                           parameter */
  986. #define H_ERR_OUT_OF_DEVICE_MEM   4104 /* Out of device memory */
  987. #define H_ERR_INVALID_SHAPE       4105 /* Invalid work group shape */
  988. #define H_ERR_INVALID_DEVICE      4106 /* Invalid compute device */

  989. /* CUDA/cuDNN related error messages */
  990. #define H_ERR_CUDA_ERROR                  4200 /* CUDA error occurred */
  991. #define H_ERR_CUDNN_ERROR                 4201 /* cuDNN error occurred */
  992. #define H_ERR_CUBLAS_ERROR                4202 /* cuBLAS error occurred */
  993. #define H_ERR_BATCH_SIZE_NOT_SUPPORTED    4203 /* Set batch_size not
  994.                                                   supported */
  995. #define H_ERR_CUDA_NOT_AVAILABLE          4204 /* CUDA implementations not
  996.                                                   available */
  997. #define H_ERR_CUDNN_UNSUPPORTED_VERSION   4205 /* Unsupported version of cuDNN */
  998. #define H_ERR_CUDNN_FEATURE_NOT_SUPPORTED 4206 /* Requested feature not supported by
  999.                                                   cuDNN */
  1000. #define H_ERR_CUDA_DRIVER_VERSION         4207 /* CUDA driver is out-of-date */

  1001. /* MKL related error messages */
  1002. #define H_ERR_TRAINING_UNSUPPORTED        4301 /* Training is unsupported with
  1003.                                                   the selected runtime. */
  1004. #define H_ERR_CPU_INFERENCE_NOT_AVAILABLE 4302 /* CPU based inference is not
  1005.                                                   supported on this platform */

  1006. #define H_ERR_DNNL_ERROR                  4303 /* Error occurred in DNNL library */

  1007. /* AI Acclerator Interface related error messages */
  1008. #define H_ERR_HAI2_ERROR                 4320 /* AI Accelerator Interface error occurred */
  1009. #define H_ERR_HAI2_INVALID_PARAM         4321 /* Invalid parameter for AI Accelerator Interface */

  1010. /* ACL (Arm Compute Library) related error messages */
  1011. #define H_ERR_ACL_ERROR                   4400 /* ACL error occurred */

  1012. /* Visualization errors */
  1013. #define H_ERR_VISUALIZATION               4500 /* Internal visualization error */
  1014. #define H_ERR_COLOR_TYPE_UNEXP            4501 /* Unexpected color type */
  1015. #define H_ERR_NUM_COLOR_EXCEEDED          4502 /* Number of color settings exceeded */

  1016. /* I/O and window management, 51xx */
  1017. #define H_ERR_WSCN         5100 /* Wrong (logical) window number */
  1018. #define H_ERR_DSCO         5101 /* Error while opening the window */
  1019. #define H_ERR_WWC          5102 /* Wrong window coordinates */
  1020. #define H_ERR_NWA          5103 /* It is not possible to open another window */
  1021. #define H_ERR_DNA          5104 /* Device resp. operator not available */
  1022. #define H_ERR_UCOL         5105 /* Unknown color */
  1023. #define H_ERR_NWO          5106 /* No window has been opened for
  1024.                                    desired action */
  1025. #define H_ERR_WFM          5107 /* Wrong filling mode for regions */
  1026. #define H_ERR_WGV          5108 /* Wrong gray value (0..255) */
  1027. #define H_ERR_WPV          5109 /* Wrong pixel value */
  1028. #define H_ERR_WLW          5110 /* Wrong line width */
  1029. #define H_ERR_WCUR         5111 /* Wrong name of cursor */
  1030. #define H_ERR_WLUT         5112 /* Wrong color table */
  1031. #define H_ERR_WDM          5113 /* Wrong representation mode */
  1032. #define H_ERR_WRCO         5114 /* Wrong representation color */
  1033. #define H_ERR_WRDM         5115 /* Wrong dither matrix */
  1034. #define H_ERR_WRIT         5116 /* Wrong image transformation */
  1035. #define H_ERR_IPIT         5117 /* Unsuitable image type for image trafo. */
  1036. #define H_ERR_WRZS         5118 /* Wrong zooming factor for image trafo. */
  1037. #define H_ERR_WRDS         5119 /* Wrong representation mode */
  1038. #define H_ERR_WRDV         5120 /* Wrong code of device */
  1039. #define H_ERR_WWINF        5121 /* Wrong number for father window */
  1040. #define H_ERR_WDEXT        5122 /* Wrong window size */
  1041. #define H_ERR_WWT          5123 /* Wrong window type */
  1042. #define H_ERR_WND          5124 /* No current window has been set */
  1043. #define H_ERR_WRGB         5125 /* Wrong color combination or range (RGB) */
  1044. #define H_ERR_WPNS         5126 /* Wrong number of pixels set */
  1045. #define H_ERR_WCM          5127 /* Wrong value for comprise */
  1046. #define H_ERR_FNA          5128 /* set_fix with 1/4 image levels and
  1047.                                    static not valid */
  1048. #define H_ERR_LNFS         5129 /* set_lut not valid in child windows */
  1049. #define H_ERR_LOFL         5130 /* Number of concurrent used color tables
  1050.                                    is too big */
  1051. #define H_ERR_WIDT         5131 /* Wrong device for window dump */
  1052. #define H_ERR_WWDS         5132 /* Wrong window size for window dump */
  1053. #define H_ERR_NDVS         5133 /* System variable DISPLAY not defined */
  1054. #define H_ERR_WBW          5134 /* Wrong thickness for window margin */
  1055. #define H_ERR_WDVS         5135 /* System variable DISPLAY has been set
  1056.                                    wrong (<host>:0.0) */
  1057. #define H_ERR_TMF          5136 /* Too many fonts loaded */
  1058. #define H_ERR_WFN          5137 /* Wrong font name */
  1059. #define H_ERR_WCP          5138 /* No valid cursor position */
  1060. #define H_ERR_NTW          5139 /* Window is not a textual window */
  1061. #define H_ERR_NPW          5140 /* Window is not a image window */
  1062. #define H_ERR_STL          5141 /* String too long or too high */
  1063. #define H_ERR_NSS          5142 /* Too little space in the window rightw. */
  1064. #define H_ERR_NMS          5143 /* Window is not suitable for the mouse */
  1065. #define H_ERR_DWNA         5144 /* Here Windows on a equal machine is
  1066.                                    permitted only */
  1067. #define H_ERR_WOM          5145 /* Wrong mode while opening a window */
  1068. #define H_ERR_WWM          5146 /* Wrong window mode for operation */
  1069. #define H_ERR_LUTF         5147 /* Operation not possible with fixed pixel */
  1070. #define H_ERR_LUTN8        5148 /* Color tables for 8 image levels only */
  1071. /* pseudo true-color */
  1072. #define H_ERR_WTCM         5149 /* Wrong mode for pseudo real colors */
  1073. #define H_ERR_WIFTL        5150 /* Wrong pixel value for LUT */
  1074. #define H_ERR_WSOI         5151 /* Wrong image size for pseudo real colors */
  1075. #define H_ERR_HRLUT        5152 /* Error in procedure HRLUT */
  1076. #define H_ERR_WPFSL        5153 /* Wrong number of entries in color table
  1077.                                    for set_lut */

  1078. #define H_ERR_WPVS         5154 /* Wrong values for image area */
  1079. #define H_ERR_WLPN         5155 /* Wrong line pattern */
  1080. #define H_ERR_WLPL         5156 /* Wrong number of parameters for
  1081.                                    line pattern */
  1082. #define H_ERR_WNOC         5157 /* Wrong number of colors */
  1083. #define H_ERR_WPST         5158 /* Wrong value for mode of area creation */

  1084. #define H_ERR_SWNA         5159 /* Spy window is not set (set_spy) */
  1085. #define H_ERR_NSFO         5160 /* No file for spy has been set (set_spy) */
  1086. #define H_ERR_WSPN         5161 /* Wrong parameter output depth (set_spy) */

  1087. #define H_ERR_WIFFD        5162 /* Wrong window size for window dump */
  1088. #define H_ERR_WLUTF        5163 /* Wrong color table:
  1089.                                    Wrong file name or query_lut() */
  1090. #define H_ERR_WLUTE        5164 /* Wrong color table:
  1091.                                    Empty string ? */
  1092. #define H_ERR_WLUTD        5165 /* Using this hardware set_lut('default')
  1093.                                    is allowed only */

  1094. #define H_ERR_CNDP         5166 /* Error while calling online help */

  1095. #define H_ERR_LNPR         5167 /* Row can not be projected */
  1096. #define H_ERR_NFSC         5168 /* Operation is unsuitable using a computer
  1097.                                    with fixed color table */
  1098. #define H_ERR_NACD         5169 /* Computer represents gray scales only */

  1099. #define H_ERR_LUTO         5170 /* LUT of this display is full */
  1100. #define H_ERR_WCC          5171 /* Internal error: wrong color code */
  1101. #define H_ERR_WWATTRT      5172 /* Wrong type for window attribute */
  1102. #define H_ERR_WWATTRN      5173 /* Wrong name for window attribute */
  1103. #define H_ERR_WRSPART      5174 /* negative height of area (or 0) */
  1104. #define H_ERR_WCSPART      5175 /* negative width of area (or 0) */

  1105. /* Window dump */
  1106. #define H_ERR_WNCV         5176 /* Window not completely visible */

  1107. /* Fonts */
  1108. #define H_ERR_FONT_NA      5177 /* Font not allowed for this operation */

  1109. /* Threads */
  1110. #define H_ERR_WDIFFTH      5178 /* Window was created in different thread */

  1111. #define H_ERR_OBJ_ATTACHED 5194 /* Drawing object already attached to another
  1112.                                    window */

  1113. /* Image windows */
  1114. #define H_ERR_CHA3         5180 /* Internal error: only RGB-Mode */
  1115. #define H_ERR_NMWA         5181 /* No more (image-)windows available */

  1116. /* OpenGL support */
  1117. #define H_ERR_DEPTH_NOT_STORED 5179 /* Depth was not stored with window */
  1118. #define H_ERR_INDEX_NOT_STORED 5182 /* Object index was not stored with
  1119.                                        window */
  1120. #define H_ERR_PRIM_NO_POINTS 5183 /* Operator does not support primitives
  1121.                                      without point coordinates */
  1122. #define H_ERR_REMOTE_DESKTOP_SIZE 5184 /* Maximum image size for Windows Remote
  1123.                                           Desktop exceeded */
  1124. #define H_ERR_NOGL         5185 /* No OpenGL support available */
  1125. #define H_ERR_NODEPTH      5186 /* No depth information available */
  1126. #define H_ERR_OGL_ERROR    5187 /* OpenGL error */
  1127. #define H_ERR_UNSUPPORTED_FBO 5188 /* Required framebuffer object is
  1128.                                       unsupported */
  1129. #define H_ERR_OGL_HSR_NOT_SUPPORTED 5189 /* OpenGL accelerated hidden
  1130.                                             surface removal not supported on
  1131.                                             this machine */

  1132. /* window parameters */
  1133. #define H_ERR_WP_IWP       5190 /* Invalid window parameter */
  1134. #define H_ERR_WP_IWPV      5191 /* Invalid value for window parameter */
  1135. #define H_ERR_UMOD         5192 /* Unknown mode */
  1136. #define H_ERR_ATTIMG       5193 /* No image attached */

  1137. /* 3d navigation */
  1138. #define H_ERR_NVG_WM       5195 /* invalid navigation mode */

  1139. /* File I/O, 52xx */
  1140. #define H_ERR_FINTERN      5196 /* Internal file error */
  1141. #define H_ERR_FS           5197 /* Error while file synchronisation */
  1142. #define H_ERR_FISR         5198 /* insufficient rights */
  1143. #define H_ERR_BFD          5199 /* Bad file descriptor */
  1144. #define H_ERR_FNF          5200 /* File not found */
  1145. #define H_ERR_DWI          5201 /* Error while writing image data
  1146.                                    (sufficient memory ?) */
  1147. #define H_ERR_DWID         5202 /* Error while writing image descriptor
  1148.                                    (sufficient memory ?) */
  1149. #define H_ERR_DRI1         5203 /* Error while reading image data
  1150.                                    (format of image too small ?) */
  1151. #define H_ERR_DRI2         5204 /* Error while reading image data
  1152.                                    (format of image too big ?) */
  1153. #define H_ERR_DRID1        5205 /* Error while reading image descriptor:
  1154.                                    File too small */
  1155. #define H_ERR_DIMMAT       5206 /* Image matrices are different */
  1156. #define H_ERR_HNF          5207 /* Help file not found (setenv HALCONROOT) */
  1157. #define H_ERR_XNF          5208 /* Help index not found (setenv HALCONROOT) */
  1158. #define H_ERR_CNCSI        5209 /* File <standard_input> can not be closed */
  1159. #define H_ERR_CNCSO        5210 /* <standard_output/error> can not be closed */
  1160. #define H_ERR_CNCF         5211 /* File can not be closed */
  1161. #define H_ERR_EDWF         5212 /* Error while writing to file */
  1162. #define H_ERR_NFA          5213 /* Exceeding of maximum number of files */
  1163. #define H_ERR_WFIN         5214 /* Wrong file name */
  1164. #define H_ERR_CNOF         5215 /* Error while opening the file */
  1165. #define H_ERR_WFMO         5216 /* Wrong file mode */
  1166. #define H_ERR_WPTY         5217 /* Wrong type for pixel (e.g. byte) */
  1167. #define H_ERR_WIW          5218 /* Wrong image width (too big ?) */
  1168. #define H_ERR_WIH          5219 /* Wrong image height (too big ?) */
  1169. #define H_ERR_FTS1         5220 /* File already exhausted before reading
  1170.                                    an image */
  1171. #define H_ERR_FTS2         5221 /* File exhausted before terminating
  1172.                                    the image */
  1173. #define H_ERR_WDPI         5222 /* Wrong value for resolution (dpi) */
  1174. #define H_ERR_WNOW         5223 /* Wrong output image size (width) */
  1175. #define H_ERR_WNOH         5224 /* Wrong output image size (height) */
  1176. #define H_ERR_WNFP         5225 /* Wrong number of parameter values:
  1177.                                    Format description */
  1178. #define H_ERR_WPNA         5226 /* Wrong parameter name for operator */
  1179. #define H_ERR_WSNA         5227 /* Wrong slot name for parameter */
  1180. #define H_ERR_NPCF         5228 /* Operator class is missing in help file */
  1181. #define H_ERR_WHIF         5229 /* Wrong or inconsistent help/ *.idx
  1182.                                    or help/ *.sta */
  1183. #define H_ERR_HINF         5230 /* File help/ *.idx not found */
  1184. #define H_ERR_HSNF         5231 /* File help/ *.sta not found */
  1185. #define H_ERR_ICSF         5232 /* Inconsistent file help/ *.sta */
  1186. #define H_ERR_EFNF         5233 /* No explication file (.exp) found */
  1187. #define H_ERR_NFWKEF       5234 /* No file found in known graphic format */
  1188. #define H_ERR_WIFT         5235 /* Wrong graphic format */
  1189. #define H_ERR_ICNF         5236 /* Inconsistent file halcon.num */
  1190. #define H_ERR_WTIFF        5237 /* File with extension 'tiff' is no
  1191.                                    Tiff-file */
  1192. #define H_ERR_WFF          5238 /* Wrong file format */
  1193. #define H_ERR_NOGPPROC     5239 /* gnuplot could not be started */
  1194. #define H_ERR_NOGPFILE     5240 /* Output file for gnuplot could not be
  1195.                                    opened */
  1196. #define H_ERR_NOGPOUT      5241 /* Not a valid gnuplot output stream */
  1197. #define H_ERR_NOPNM        5242 /* No PNM format */
  1198. #define H_ERR_ICODB        5243 /* Inconsistent or old help file */
  1199. #define H_ERR_INVAL_FILE_ENC 5244 /* Invalid file encoding */

  1200. #define H_ERR_FNO          5245 /* File not open */
  1201. #define H_ERR_NO_FILES     5246 /* No files in use so far (none opened) */
  1202. #define H_ERR_NORFILE      5247 /* Invalid file format for regions */
  1203. #define H_ERR_RDTB         5248 /* Error while reading region data:
  1204.                                    Format of region too big. */
  1205. #define H_ERR_BINFILE_ENC  5249 /* Encoding for binary files not allowed */
  1206. #define H_ERR_EDRF         5250 /* Error reading file */

  1207. /* Serial interface */
  1208. #define H_ERR_SNO          5251 /* Serial port not open */
  1209. #define H_ERR_NSA          5252 /* No serial port available */
  1210. #define H_ERR_CNOS         5253 /* Could not open serial port */
  1211. #define H_ERR_CNCS         5254 /* Could not close serial port */
  1212. #define H_ERR_CNGSA        5255 /* Could not get serial port attributes */
  1213. #define H_ERR_CNSSA        5256 /* Could not set serial port attributes */
  1214. #define H_ERR_WRSBR        5257 /* Wrong baud rate for serial connection */
  1215. #define H_ERR_WRSDB        5258 /* Wrong number of data bits for
  1216.                                    serial connection */
  1217. #define H_ERR_WRSFC        5259 /* Wrong flow control for serial connection */
  1218. #define H_ERR_CNFS         5260 /* Could not flush serial port */
  1219. #define H_ERR_EDWS         5261 /* Error during write to serial port */
  1220. #define H_ERR_EDRS         5262 /* Error during read from serial port */

  1221. #define H_ERR_REG_NOSITEM  5270 /* Serialized item does not contain
  1222.                                    valid regions. */
  1223. #define H_ERR_REG_WRVERS   5271 /* The version of the regions is
  1224.                                    not supported. */
  1225. #define H_ERR_IMG_NOSITEM  5272 /* Serialized item does not contain
  1226.                                    valid images. */
  1227. #define H_ERR_IMG_WRVERS   5273 /* The version of the images is
  1228.                                    not supported. */
  1229. #define H_ERR_XLD_NOSITEM  5274 /* Serialized item does not contain
  1230.                                    valid XLD objects. */
  1231. #define H_ERR_XLD_WRVERS   5275 /* The version of the XLD objects is
  1232.                                    not supported. */
  1233. #define H_ERR_OBJ_NOSITEM  5276 /* Serialized item does not contain
  1234.                                    valid objects. */
  1235. #define H_ERR_OBJ_WRVERS   5277 /* The version of the objects is
  1236.                                    not supported. */
  1237. #define H_ERR_XLD_DATA_TOO_LARGE   5678 /* XLD object data can only be read by
  1238.                                            HALCON XL */
  1239. #define H_ERR_OBJ_UNEXPECTED   5279 /* Unexpected object detected */


  1240. /* File I/O, 52xx (continue) */
  1241. #define H_ERR_FNOTF        5280 /* File has not been opened in text format */
  1242. #define H_ERR_FNOBF        5281 /* File has not been opened in binary file
  1243.                                    format */
  1244. #define H_ERR_DIRCR        5282 /* Cannot create directory */
  1245. #define H_ERR_DIRRM        5283 /* Cannot remove directory */
  1246. #define H_ERR_GETCWD       5284 /* Cannot get current directory */
  1247. #define H_ERR_SETCWD       5285 /* Cannot set current directory */

  1248. #define H_ERR_XINIT        5286 /* Need to call XInitThreads() */

  1249. /* Frame grabber / Image acquisition devices */
  1250. #define H_ERR_NFS          5300 /* No image acquisition device opened */
  1251. #define H_ERR_FGWC         5301 /* IA: wrong color depth */
  1252. #define H_ERR_FGWD         5302 /* IA: wrong device */
  1253. #define H_ERR_FGVF         5303 /* IA: determination of video format
  1254.                                    not possible */
  1255. #define H_ERR_FGNV         5304 /* IA: no video signal */
  1256. #define H_ERR_UFG          5305 /* Unknown image acquisition device */
  1257. #define H_ERR_FGF          5306 /* IA: failed grabbing of an image */
  1258. #define H_ERR_FGWR         5307 /* IA: wrong resolution chosen */
  1259. #define H_ERR_FGWP         5308 /* IA: wrong image part chosen */
  1260. #define H_ERR_FGWPR        5309 /* IA: wrong pixel ratio chosen */
  1261. #define H_ERR_FGWH         5310 /* IA: handle not valid */
  1262. #define H_ERR_FGCL         5311 /* IA: instance not valid (already closed?) */
  1263. #define H_ERR_FGNI         5312 /* Image acquisition device could not be
  1264.                                    initialized */
  1265. #define H_ERR_FGET         5313 /* IA: external triggering not supported */
  1266. #define H_ERR_FGLI         5314 /* IA: wrong camera input line (multiplex) */
  1267. #define H_ERR_FGCS         5315 /* IA: wrong color space */
  1268. #define H_ERR_FGPT         5316 /* IA: wrong port */
  1269. #define H_ERR_FGCT         5317 /* IA: wrong camera type */
  1270. #define H_ERR_FGTM         5318 /* IA: maximum number of acquisition device
  1271.                                    classes exceeded */
  1272. #define H_ERR_FGDV         5319 /* IA: device busy */
  1273. #define H_ERR_FGASYNC      5320 /* IA: asynchronous grab not supported */
  1274. #define H_ERR_FGPARAM      5321 /* IA: unsupported parameter */
  1275. #define H_ERR_FGTIMEOUT    5322 /* IA: timeout */
  1276. #define H_ERR_FGGAIN       5323 /* IA: invalid gain  */
  1277. #define H_ERR_FGFIELD      5324 /* IA: invalid field */
  1278. #define H_ERR_FGPART       5325 /* IA: invalid parameter type */
  1279. #define H_ERR_FGPARV       5326 /* IA: invalid parameter value */
  1280. #define H_ERR_FGFNS        5327 /* IA: function not supported */
  1281. #define H_ERR_FGIVERS      5328 /* IA: incompatible interface version */
  1282. #define H_ERR_FGSETPAR     5329 /* IA: could not set parameter value */
  1283. #define H_ERR_FGGETPAR     5330 /* IA: could not query parameter setting */
  1284. #define H_ERR_FGPARNA      5331 /* IA: parameter not available in current
  1285.                                    configuration */
  1286. #define H_ERR_FGCLOSE      5332 /* IA: device could not be closed properly */
  1287. #define H_ERR_FGCAMFILE    5333 /* IA: camera configuration file could not be
  1288.                                    opened */
  1289. #define H_ERR_FGCALLBACK   5334 /* IA: unsupported callback type */
  1290. #define H_ERR_FGDEVLOST    5335 /* IA: device lost */
  1291. #define H_ERR_FGABORTED    5336 /* IA: grab aborted */

  1292. /* digital io devices */
  1293. #define H_ERR_IOTIMEOUT    5350 /* IO: timeout */
  1294. #define H_ERR_IOIVERS      5351 /* IO: incompatible interface version */
  1295. #define H_ERR_IOWH         5352 /* IO: handle not valid */
  1296. #define H_ERR_IODBUSY      5353 /* IO: device busy */
  1297. #define H_ERR_IOIAR        5354 /* IO: insufficient user rights */
  1298. #define H_ERR_IONF         5355 /* IO: device or channel not found */
  1299. #define H_ERR_IOPART       5356 /* IO: invalid parameter type */
  1300. #define H_ERR_IOPARV       5357 /* IO: invalid parameter value */
  1301. #define H_ERR_IOPARNUM     5358 /* IO: invalid parameter number */
  1302. #define H_ERR_IOPARAM      5359 /* IO: unsupported parameter */
  1303. #define H_ERR_IOPARNA      5360 /* IO: parameter not available in curr
  1304.                                        config.*/
  1305. #define H_ERR_IOFNS        5361 /* IO: function not supported */
  1306. #define H_ERR_IOME         5362 /* IO: maximum number of dio classes exceeded*/
  1307. #define H_ERR_IODNA        5363 /* IO: driver of io device not available */
  1308. #define H_ERR_IOABORTED    5364 /* IO: operation aborted */
  1309. #define H_ERR_IODATT       5365 /* IO: invalid data type */
  1310. #define H_ERR_IODEVLOST    5366 /* IO: device lost */
  1311. #define H_ERR_IOSETPAR     5367 /* IO: could not set parameter value */
  1312. #define H_ERR_IOGETPAR     5368 /* IO: could not query parameter setting */
  1313. #define H_ERR_IOCLOSE      5369 /* IO: device could not be closed properly */

  1314. /* Images from file */

  1315. /* JpegXR files */
  1316. #define H_ERR_JXR_UNSUPPORTED_FORMAT         5400 /* Image type is not
  1317.                                                      supported */
  1318. #define H_ERR_JXR_INVALID_PIXEL_FORMAT       5401 /* Invalid pixel format
  1319.                                                      passed to filter
  1320.                                                      function */
  1321. #define H_ERR_JXR_INTERNAL_ERROR             5402 /* Internal JpegXR error. */
  1322. #define H_ERR_JXR_FORMAT_SYNTAX_ERROR        5403 /* Syntax error in output
  1323.                                                      format string */
  1324. #define H_ERR_JXR_TOO_MANY_CHANNELS          5404 /* Maximum number of channels
  1325.                                                      exceeded */
  1326. #define H_ERR_JXR_EC_ERROR                   5405 /* Unspecified error in JXR
  1327.                                                      library */
  1328. #define H_ERR_JXR_EC_BADMAGIC                5406 /* Bad magic number in JXR
  1329.                                                      library */
  1330. #define H_ERR_JXR_EC_FEATURE_NOT_IMPLEMENTED 5407 /* Feature not implemented in
  1331.                                                      JXR library */
  1332. #define H_ERR_JXR_EC_IO                      5408 /* File read/write error in
  1333.                                                      JXR library */
  1334. #define H_ERR_JXR_EC_BADFORMAT               5409 /* Bad file format in JXR
  1335.                                                      library */

  1336. /* General */
  1337. #define H_ERR_LIB_FILE_CLOSE          5500 /* Error while closing the
  1338.                                               image file */
  1339. #define H_ERR_LIB_FILE_OPEN           5501 /* Error while opening the
  1340.                                               image file */
  1341. #define H_ERR_LIB_UNEXPECTED_EOF      5502 /* Premature end of the
  1342.                                               image file */
  1343. #define H_ERR_IDTL                    5503 /* Image dimensions too large for
  1344.                                               this file format */
  1345. #define H_ERR_ITLHV                   5504 /* Image too large for this HALCON
  1346.                                               version */
  1347. #define H_ERR_TMIO                    5505 /* Too many iconic objects for
  1348.                                               this file format */
  1349. #define H_ERR_FILE_FORMAT_UNSUPPORTED 5506 /* File format is unsupported */
  1350. #define H_ERR_INCONSISTENT_DIMENSIONS 5507 /* All channels must have equal
  1351.                                               dimensions */

  1352. /* PCX files */
  1353. #define H_ERR_PCX_NO_PCX_FILE         5510 /* File is no PCX-File */
  1354. #define H_ERR_PCX_UNKNOWN_ENCODING    5511 /* Unknown encoding */
  1355. #define H_ERR_PCX_MORE_THAN_4_PLANES  5512 /* More than 4 image plains */
  1356. #define H_ERR_PCX_COLORMAP_SIGNATURE  5513 /* Wrong magic in color table */
  1357. #define H_ERR_PCX_REPEAT_COUNT_SPANS  5514 /* Wrong number of bytes in span */
  1358. #define H_ERR_PCX_TOO_MUCH_BITS_PIXEL 5515 /* Wrong number of bits/pixels */
  1359. #define H_ERR_PCX_PACKED_PIXELS       5516 /* Wrong number of plains */

  1360. /* GIF files */
  1361. #define H_ERR_GIF_NO_GIF_PICTURE      5520 /* File is no GIF-File */
  1362. #define H_ERR_GIF_BAD_VERSION         5521 /* GIF: Wrong version */
  1363. #define H_ERR_GIF_SCREEN_DESCRIPTOR   5522 /* GIF: Wrong descriptor */
  1364. #define H_ERR_GIF_COLORMAP            5523 /* GIF: Wrong color table */
  1365. #define H_ERR_GIF_READ_ERROR_EOF      5524 /* GIF: Premature end of file */
  1366. #define H_ERR_GIF_NOT_ENOUGH_IMAGES   5525 /* GIF: Wrong number of images */
  1367. #define H_ERR_GIF_ERROR_ON_EXTENSION  5526 /* GIF: Wrong image extension */
  1368. #define H_ERR_GIF_LEFT_TOP_WIDTH      5527 /* GIF: Wrong left top width */
  1369. #define H_ERR_GIF_CIRCULAR_TABL_ENTRY 5528 /* GIF: Cyclic index of table */
  1370. #define H_ERR_GIF_BAD_IMAGE_DATA      5529 /* GIF: Wrong image data */

  1371. /* SUN-Raster files  */
  1372. #define H_ERR_SUN_RASTERFILE_TYPE     5530 /* File is no Sun-Raster-File */
  1373. #define H_ERR_SUN_RASTERFILE_HEADER   5531 /* Wrong header */
  1374. #define H_ERR_SUN_COLS                5532 /* Wrong image width */
  1375. #define H_ERR_SUN_ROWS                5533 /* Wrong image height */
  1376. #define H_ERR_SUN_COLORMAP            5534 /* Wrong color map */
  1377. #define H_ERR_SUN_RASTERFILE_IMAGE    5535 /* Wrong image data */
  1378. #define H_ERR_SUN_IMPOSSIBLE_DATA     5536 /* Wrong type of pixel */

  1379. /* XWD files */
  1380. #define H_ERR_XWD_IMPOSSIBLE_DATA     5540  /* Wrong type of pixel */
  1381. #define H_ERR_XWD_VISUAL_CLASS        5541  /* Wrong visual class */
  1382. #define H_ERR_XWD_X10_HEADER          5542  /* Wrong X10 header */
  1383. #define H_ERR_XWD_X11_HEADER          5543  /* Wrong X11 header */
  1384. #define H_ERR_XWD_X10_COLORMAP        5544  /* Wrong X10 colormap */
  1385. #define H_ERR_XWD_X11_COLORMAP        5545  /* Wrong X11 colormap */
  1386. #define H_ERR_XWD_X11_PIXMAP          5546  /* Wrong pixmap */
  1387. #define H_ERR_XWD_UNKNOWN_VERSION     5547  /* Unknown version */
  1388. #define H_ERR_XWD_READING_IMAGE       5548  /* Error while reading an image */

  1389. /* TIFF files */
  1390. #define H_ERR_TIF_BAD_INPUTDATA      5550 /* Error while reading a file */
  1391. #define H_ERR_TIF_COLORMAP           5551 /* Wrong colormap */
  1392. #define H_ERR_TIF_TOO_MANY_COLORS    5552 /* Too many colors */
  1393. #define H_ERR_TIF_BAD_PHOTOMETRIC    5553 /* Wrong photometric interpretation*/
  1394. #define H_ERR_TIF_PHOTOMETRIC_DEPTH  5554 /* Wrong photometric depth */
  1395. #define H_ERR_TIF_NO_REGION          5555 /* Image is no binary file */
  1396. #define H_ERR_TIF_UNSUPPORTED_FORMAT 5556 /* Unsupported TIFF format */
  1397. #define H_ERR_TIF_BAD_SPECIFICATION  5557 /* Wrong file format specification */
  1398. #define H_ERR_TIF_FILE_CORRUPT       5558 /* TIFF file is corrupt */
  1399. #define H_ERR_TIF_TAG_UNDEFINED      5559 /* Required TIFF tag is missing */

  1400. /* BMP files */
  1401. #define H_ERR_BMP_NO_BMP_PICTURE      5560  /* File is no BMP-File */
  1402. #define H_ERR_BMP_READ_ERROR_EOF      5561  /* Premature end of file */
  1403. #define H_ERR_BMP_INCOMPLETE_HEADER   5562  /* Incomplete header */
  1404. #define H_ERR_BMP_UNKNOWN_FORMAT      5563  /* Unknown bitmap format */
  1405. #define H_ERR_BMP_UNKNOWN_COMPRESSION 5564  /* Unknown compression format */
  1406. #define H_ERR_BMP_COLORMAP            5565  /* Wrong color table */
  1407. #define H_ERR_BMP_WRITE_ERROR         5566  /* Write error on output */
  1408. #define H_ERR_BMP_NO_REGION           5567  /* File does not contain a
  1409.                                                binary image */

  1410. /* Jpeg files */
  1411. #define H_ERR_JPG_COMP_NUM     5570 /* Wrong number of components in image */
  1412. #define H_ERR_JPGLIB_UNKNOWN   5571 /* Unknown error from libjpeg */
  1413. #define H_ERR_JPGLIB_NOTIMPL   5572 /* Not implemented feature in libjpeg */
  1414. #define H_ERR_JPGLIB_FILE      5573 /* File access error in libjpeg */
  1415. #define H_ERR_JPGLIB_TMPFILE   5574 /* Tmp file access error in libjpeg */
  1416. #define H_ERR_JPGLIB_MEMORY    5575 /* Memory error in libjpeg */
  1417. #define H_ERR_JPGLIB_INFORMAT  5576 /* Error in input image */

  1418. /* PNG files */
  1419. #define H_ERR_PNG_NO_PNG_FILE            5580  /* File is not a PNG file */
  1420. #define H_ERR_PNG_UNKNOWN_INTERLACE_TYPE 5581  /* Unknown interlace type */
  1421. #define H_ERR_PNG_UNSUPPORTED_COLOR_TYPE 5582  /* Unsupported color type */
  1422. #define H_ERR_PNG_NO_REGION              5583  /* Image is no binary file */
  1423. #define H_ERR_PNG_SIZE_TOO_BIG           5584  /* Image size too big */

  1424. /* TIFF files extension: no more code availables after 5559 */
  1425. #define H_ERR_TIF_TAG_ACCESS 5587      /* Error accessing TIFF tag */
  1426. #define H_ERR_TIF_TAG_DATATYPE 5588    /* Invalid TIFF tag value datatype */
  1427. #define H_ERR_TIF_TAG_UNSUPPORTED 5589 /* Unsupported TIFF tag requested */

  1428. /* Jpeg-2000 files */
  1429. #define H_ERR_JP2_CORRUPT        5590 /* File corrupt */
  1430. #define H_ERR_JP2_PREC_TOO_HIGH  5591 /* Image precision too high */
  1431. #define H_ERR_JP2_ENCODING_ERROR 5592 /* Error while encoding */
  1432. #define H_ERR_JP2_SIZE_TOO_BIG   5593 /* Image size too big */

  1433. /* HOBJ files */
  1434. #define H_ERR_HOBJ_NOT_ONLY_IMAGES 5599 /* File does not contain only images */


  1435. /* Socket communication and virtual links */
  1436. #define H_ERR_SOCKET_BLOCK                5600 /* Socket can not be set to
  1437.                                                   block */
  1438. #define H_ERR_SOCKET_UNBLOCK              5601 /* Socket can not be set to
  1439.                                                   unblock */
  1440. #define H_ERR_SOCKET_NO_CPAR              5602 /* Received data is no tuple */
  1441. #define H_ERR_SOCKET_NO_IMAGE             5603 /* Received data is no image */
  1442. #define H_ERR_SOCKET_NO_RL                5604 /* Received data is no region */
  1443. #define H_ERR_SOCKET_NO_XLD               5605 /* Received data is no
  1444.                                                   xld object */
  1445. #define H_ERR_SOCKET_READ_DATA_FAILED     5606 /* Error while reading
  1446.                                                   from socket */
  1447. #define H_ERR_SOCKET_WRITE_DATA_FAILED    5607 /* Error while writing
  1448.                                                   to socket */
  1449. #define H_ERR_SOCKET_WRONG_BYTE_NUMBER    5608 /* Illegal number of bytes
  1450.                                                   with get_rl */
  1451. #define H_ERR_SOCKET_BUFFER_OVERFLOW      5609 /* Buffer overflow in
  1452.                                                   read_data */
  1453. #define H_ERR_SOCKET_CANT_ASSIGN_FD       5610 /* Socket can not be created */
  1454. #define H_ERR_SOCKET_CANT_BIND            5611 /* Bind on socket failed */
  1455. #define H_ERR_SOCKET_CANT_GET_PORTNUMBER  5612 /* Socket information is not
  1456.                                                   available */
  1457. #define H_ERR_SOCKET_CANT_LISTEN          5613 /* Socket cannot listen for
  1458.                                                   incoming connections */
  1459. #define H_ERR_SOCKET_CANT_ACCEPT          5614 /* Connection could not be
  1460.                                                   accepted */
  1461. #define H_ERR_SOCKET_CANT_CONNECT         5615 /* Connection request failed */
  1462. #define H_ERR_SOCKET_GETHOSTBYNAME        5616 /* Hostname could not be
  1463.                                                   resolved */
  1464. #define H_ERR_SOCKET_ILLEGAL_TUPLE_TYPE   5618 /* Unknown tuple type on
  1465.                                                   socket */
  1466. #define H_ERR_SOCKET_TIMEOUT              5619 /* Timeout occurred on socket */
  1467. #define H_ERR_SOCKET_NA                   5620 /* No more sockets available */
  1468. #define H_ERR_SOCKET_NI                   5621 /* Socket is not initialized */
  1469. #define H_ERR_SOCKET_OOR                  5622 /* Invalid socket */
  1470. #define H_ERR_SOCKET_IS                   5623 /* Socket is NULL */
  1471. #define H_ERR_SOCKET_DATA_TOO_LARGE       5624 /* Received data type is too
  1472.                                                   large */
  1473. #define H_ERR_SOCKET_WRONG_TYPE           5625 /* Wrong socket type. */
  1474. #define H_ERR_SOCKET_NO_PACKED_DATA       5626 /* Received data is not packed.
  1475.                                                   */
  1476. #define H_ERR_SOCKET_PARAM_FAILED         5627 /* Socket parameter operation
  1477.                                                   failed. */
  1478. #define H_ERR_SOCKET_FORMAT_MISMATCH      5628 /* The data does not match the
  1479.                                                   format specification. */
  1480. #define H_ERR_SOCKET_INVALID_FORMAT       5629 /* Invalid format
  1481.                                                   specification. */
  1482. #define H_ERR_SOCKET_NO_SERIALIZED_ITEM   5630 /* Received data is no
  1483.                                                   serialized item */
  1484. #define H_ERR_SOCKET_TLS_CONTEXT          5631 /* Unable to create SSL context */
  1485. #define H_ERR_SOCKET_TLS_CERT_KEY         5632 /* Invalid TLS certificate or private key */
  1486. #define H_ERR_SOCKET_TLS_HANDSHAKE        5633 /* Invalid TLS private key */

  1487. #define H_ERR_ARCINFO_TOO_MANY_XLDS       5700 /* Too many contours/polygons
  1488.                                                   for this file format */

  1489. /* Serialize/Deserialize */
  1490. #define H_ERR_QUAT_WRONG_VERSION      5750 /* The version of the quaternion
  1491.                                               is not supported */
  1492. #define H_ERR_QUAT_NOSITEM            5751 /* Serialized item does not contain
  1493.                                               a valid quaternion*/
  1494. #define H_ERR_HOM_MAT2D_WRONG_VERSION 5752 /* The version of the homogeneous
  1495.                                               matrix is not supported */
  1496. #define H_ERR_HOM_MAT2D_NOSITEM       5753 /* Serialized item does not contain
  1497.                                               a valid homogeneous matrix */
  1498. #define H_ERR_HOM_MAT3D_WRONG_VERSION 5754 /* The version of the homogeneous
  1499.                                               3D matrix is not supported */
  1500. #define H_ERR_HOM_MAT3D_NOSITEM       5755 /* Serialized item does not contain
  1501.                                               a valid homogeneous 3D matrix */
  1502. #define H_ERR_TUPLE_WRONG_VERSION     5756 /* The version of the tuple
  1503.                                               is not supported */
  1504. #define H_ERR_TUPLE_NOSITEM           5757 /* Serialized item does not
  1505.                                               contain a valid tuple */
  1506. #define H_ERR_TUPLE_DTLFTHV           5758 /* Number too big for a string to
  1507.                                               number conversion (overflow) */
  1508. #define H_ERR_POSE_WRONG_VERSION      5759 /* The version of the camera
  1509.                                               parameters (pose) is not
  1510.                                               supported */
  1511. #define H_ERR_POSE_NOSITEM            5760 /* Serialized item does not contain
  1512.                                               valid camera parameters (pose) */
  1513. #define H_ERR_CAM_PAR_WRONG_VERSION   5761 /* The version of the internal
  1514.                                               camera parameters is not
  1515.                                               supported */
  1516. #define H_ERR_CAM_PAR_NOSITEM         5762 /* Serialized item does not contain
  1517.                                               valid internal camera parameters
  1518.                                               */
  1519. #define H_ERR_DUAL_QUAT_WRONG_VERSION 5763 /* The version of the dual
  1520.                                               quaternion is not supported */
  1521. #define H_ERR_DUAL_QUAT_NOSITEM       5764 /* Serialized item does not contain
  1522.                                               a valid dual quaternion*/

  1523. /* Memory management */
  1524. #define H_ERR_NP           6000 /* Access to undefined memory area */
  1525. #define H_ERR_MEM          6001 /* Not enough memory available */
  1526. #define H_ERR_ICM          6002 /* Memory partition on heap has been
  1527.                                    overwritten */
  1528. #define H_ERR_WMS          6003 /* HAlloc: 0 bytes requested */
  1529. #define H_ERR_NOTMP        6004 /* Tmp-memory management:
  1530.                                    Call freeing memory although nothing had
  1531.                                    been allocated */
  1532. #define H_ERR_TMPNULL      6005 /* Tmp-memory management:
  1533.                                    Null pointer while freeing */
  1534. #define H_ERR_CNFMEM       6006 /* Tmp-memory management:
  1535.                                    Could not find memory element */
  1536. #define H_ERR_WMT          6007 /* memory management: wrong memory type */

  1537. #define H_ERR_MEM_VID      6021 /* Not enough video memory available */

  1538. #define H_ERR_NRA          6041 /* No memory block allocated at last */
  1539. #define H_ERR_IAD          6040 /* System parameter for memory-allocation
  1540.                                    inconsistent */
  1541. #define H_ERR_INVALID_ALIGN 6042 /* Invalid alignment */
  1542. #define H_ERR_NULL_PTR      6043 /* Function was given a NULL ptr as input */


  1543. /* System */
  1544. #define H_ERR_CP_FAILED    6500 /* Process creation failed */

  1545. /* Language interfaces */
  1546. /* General  */
  1547. #define H_ERR_WOCPI        7000 /* Wrong index for output control par. */
  1548. #define H_ERR_WOCPVN       7001 /* Wrong number of values:
  1549.                                    Output control parameter */
  1550. #define H_ERR_WOCPT        7002 /* Wrong type: Output control parameter */
  1551. #define H_ERR_WKT          7003 /* Wrong data type for object key
  1552.                                    (input objects) */
  1553. #define H_ERR_IOOR         7004 /* Range for integer had been passed */
  1554. #define H_ERR_IHV          7005 /* Inconsistent Halcon version */
  1555. #define H_ERR_NISS         7006 /* Not enough memory for strings allocated */
  1556. #define H_ERR_PROC_NULL    7007 /* Internal error: Proc is NULL */
  1557. #define H_ERR_UNKN         7105 /* Unknown symbolic object key (input obj.) */
  1558. #define H_ERR_WOON         7200 /* Wrong number of output object parameter */

  1559. /* C */
  1560. #define H_ERR_OTSE         7400 /* Output type <string> expected */
  1561. #define H_ERR_OTLE         7401 /* Output type <long> expected */
  1562. #define H_ERR_OTFE         7402 /* Output type <float> expected */
  1563. #define H_ERR_OPINP        7403 /* Object parameter is a zero pointer */
  1564. #define H_ERR_TWC          7404 /* Tuple had been deleted; values are not
  1565.                                    valid any more */
  1566. /* CNNs */
  1567. #define H_ERR_CNN_DATA               7701 /* CNN: Internal data error */
  1568. #define H_ERR_CNN_MEM                7702 /* CNN: Invalid memory type */
  1569. #define H_ERR_CNN_IO_INVALID         7703 /* CNN: Invalid data
  1570.                                              serialization */
  1571. #define H_ERR_CNN_IMPL_NOT_AVAILABLE 7704 /* CNN: Implementation not
  1572.                                              available */
  1573. #define H_ERR_CNN_NUM_INPUTS_INVALID 7705 /* CNN: Wrong number of input data */

  1574. #define H_ERR_CNN_IMPL_INVALID       7706 /* CNN: Invalid implementation type
  1575.                                            */
  1576. #define H_ERR_CNN_TRAINING_NOT_SUP   7707 /* CNN: Training is not supported in
  1577.                                              the current environment. */

  1578. #define H_ERR_CNN_GPU_REQUIRED       7708 /* For this operation a GPU with
  1579.                                              certain minimal requirements is
  1580.                                              required. See installation guide
  1581.                                              for details. */
  1582. #define H_ERR_CNN_CUDA_LIBS_MISSING  7709 /* For this operation the CUDA
  1583.                                              library needs to be available.
  1584.                                              (See installation guide for
  1585.                                              details.) */
  1586. #define H_ERR_OCR_CNN_RE             7710 /* OCR File: Error while reading
  1587.                                              classifier */
  1588. #define H_ERR_OCR_CNN_WGPN           7711 /* Wrong generic parameter name */
  1589. #define H_ERR_OCR_CNN_EXCLUSIV_PARAM 7712 /* One of the parameters returns
  1590.                                              several values and has to be used
  1591.                                              exclusively */
  1592. #define H_ERR_CNN_WGPN               7713 /* Wrong generic parameter name */

  1593. #define H_ERR_CNN_INVALID_LABELS     7714 /* Invalid labels. */
  1594. #define H_ERR_OCR_CNN_FILE_WRONG_VERSION  7715 /*OCR File: Wrong file version*/
  1595. #define H_ERR_CNN_MULTIPLE_CLASSES   7716 /* Invalid classes: At least one
  1596.                                              class apears twice */
  1597. #define H_ERR_CNN_CUBLAS_LIBS_MISSING 7717 /* For this operation the cuBLAS
  1598.                                              library needs to be available.
  1599.                                              (See installation guide for
  1600.                                              details.) */
  1601. #define H_ERR_CNN_CUDNN_LIBS_MISSING  7718  /* For this operation the CUDNN
  1602.                                              library needs to be available.
  1603.                                              (See installation guide for
  1604.                                              details.) */
  1605. #define H_ERR_OCR_FNF_FIND_TEXT_SUPPORT  7719 /* File 'find_text_support.hotc'
  1606.                                                  not found (please place this
  1607.                                                  file in the ocr subdirectory
  1608.                                                  of the root directory of your
  1609.                                                  HALCON installation or in the
  1610.                                                  current working directory) */
  1611. #define H_ERR_CNN_TRAINING_FAILED     7720 /* Training step failed. This
  1612.                                               might be caused by unsuitable
  1613.                                               training parameters */
  1614. #define H_ERR_CNN_NO_PRETRAINED_WEIGHTS   7721 /* Weights in Graph have been
  1615.                                                   overwritten previously
  1616.                                                   and are lost. */
  1617. #define H_ERR_CNN_INVALID_INPUT_SIZE     7722 /* New input size is too small
  1618.                                                  to produce meaningful
  1619.                                                  features */
  1620. #define H_ERR_CNN_RESULT_NOT_AVAILABLE   7723 /* Result is not available. */
  1621. #define H_ERR_CNN_INVALID_INPUT_DEPTH    7724 /* New number of channels must be
  1622.                                                  either 1 or 3. */
  1623. #define H_ERR_CNN_DEPTH_NOT_AVAILABLE    7725 /* New input number of channels
  1624.                                                  can't be set to 3 if network
  1625.                                                  is specified for number of
  1626.                                                  channels 1 */
  1627. #define H_ERR_CNN_INVALID_BATCH_SIZE     7726 /* Device batch size larger than
  1628.                                                  batch size. */
  1629. #define H_ERR_CNN_INVALID_PARAM_SPEC     7727 /* Invalid specification of a
  1630.                                                  parameter. */
  1631. #define H_ERR_CNN_EXCEEDS_MAX_MEM        7728 /* Memory size exceeds maximal
  1632.                                                  allowed value. */
  1633. #define H_ERR_CNN_BATCH_SIZE_OVERFLOW    7729 /* New batch size causes integer
  1634.                                                  overflow */
  1635. #define H_ERR_CNN_INVALID_IMAGE_SIZE     7730 /* Invalid input image size for
  1636.                                                  detection model */
  1637. #define H_ERR_CNN_INVALID_LAYER_PARAM_VALUE 7731 /* Invalid parameter value
  1638.                                                     for current layer */
  1639. #define H_ERR_CNN_INVALID_LAYER_PARAM_NUM   7732 /* Invalid parameter num
  1640.                                                     for current layer */
  1641. #define H_ERR_CNN_INVALID_LAYER_PARAM_TYPE  7733 /* Invalid parameter type
  1642.                                                     for current layer */
  1643. #define H_ERR_CNN_NUM_OUTPUTS_INVALID 7734 /* CNN: Wrong number of output data
  1644.                                             */
  1645. #define H_ERR_CNN_INVALID_SHAPE       7735 /* CNN: Invalid input shape */

  1646. #define H_ERR_CNN_INVALID_INPUT_DATA     7736 /* CNN: Invalid input data */
  1647. #define H_ERR_CNN_CUDNN_CTC_LOSS_BUGGY   7737  /* CNN: For variable input
  1648.                                                   lengths the ctc loss layer
  1649.                                                   only computes correct
  1650.                                                   gradients if the used cuDNN
  1651.                                                   version is >= 7.6.3. Please
  1652.                                                   upgrade cuDNN or do not use
  1653.                                                   variable input lengths. */
  1654. #define H_ERR_CNN_INVALID_PADDING 7738 /* CNN: Invalid padding */

  1655. #define H_ERR_CNN_IO_INVALID_LAYER_TYPE 7740 /* CNN: Invalid layer type
  1656.                                                 serialization */
  1657. #define H_ERR_CNN_INFERENCE_FAILED 7741 /* CNN: Inference failed */
  1658. #define H_ERR_CNN_RUNTIME_FAILED 7742 /* CNN: Runtime not supported on this machine */

  1659. /* Graphs */
  1660. #define H_ERR_GRAPH_INTERNAL         7751 /* Graph: Internal error */
  1661. #define H_ERR_GRAPH_IO_INVALID       7752 /* Graph: Invalid data serialization
  1662.                                            */
  1663. #define H_ERR_GRAPH_INVALID_INDEX    7753 /* Graph: Invalid index */

  1664. /* CNN graphs */
  1665. #define H_ERR_CNNGRAPH_INTERNAL       7760 /* HCNNGraph: Internal error */
  1666. #define H_ERR_CNNGRAPH_IO_INVALID     7761 /* HCNNGraph: Invalid data
  1667.                                               serialization */
  1668. #define H_ERR_CNNGRAPH_LAYER_INVALID  7762 /* HCNNGraph: Invalid layer
  1669.                                               specification */
  1670. #define H_ERR_CNNGRAPH_NOINIT         7763 /* HCNNGraph: Graph not properly
  1671.                                               initialized */
  1672. #define H_ERR_CNNGRAPH_INVALID_MEM    7764 /* CNN-Graph: Invalid memory type */
  1673. #define H_ERR_CNNGRAPH_INVALID_NUML   7765 /* CNN-Graph: Invalid number of
  1674.                                               layers */
  1675. #define H_ERR_CNNGRAPH_INVALID_IDX    7766 /* CNN-Graph: Invalid index */
  1676. #define H_ERR_CNNGRAPH_SPEC_STATUS    7767 /* CNN-Graph: Invalid specification
  1677.                                               status */
  1678. #define H_ERR_CNNGRAPH_NOCHANGE       7768 /* CNN-Graph: Graph is not allowed
  1679.                                               to be changed after
  1680.                                               initialization */
  1681. #define H_ERR_CNNGRAPH_PREPROC        7769 /* CNN-Graph: Missing preprocessing
  1682.                                             */
  1683. #define H_ERR_CNNGRAPH_DEGREE         7770 /* CNN-Graph: Invalid vertex degree
  1684.                                             */
  1685. #define H_ERR_CNNGRAPH_OUTSHAPE       7771 /* CNN-Graph: Invalid output shape
  1686.                                             */
  1687. #define H_ERR_CNNGRAPH_SPEC           7772 /* CNN-Graph: Invalid specification
  1688.                                             */
  1689. #define H_ERR_CNNGRAPH_DEF            7773 /* CNN-Graph: Invalid graph
  1690.                                               definition */

  1691. #define H_ERR_CNNGRAPH_NO_CLASS_CHANGE  7774 /* CNN-Graph: Architecture not
  1692.                                                 suitable for the adaption of
  1693.                                                 the number of output classes */

  1694. #define H_ERR_CNNGRAPH_NO_IMAGE_RESIZE  7775 /* CNN-Graph: Architecture not
  1695.                                                 suitable for the adaption of
  1696.                                                 the image size" */
  1697. #define H_ERR_CNNGRAPH_AUX_INDEX_OOB  7776 /* CNN-Graph: Aux index out of
  1698.                                               bounds.
  1699.                                               */
  1700. #define H_ERR_CNNGRAPH_AUX_SPEC       7777 /* CNN-Graph: Invalid graph
  1701.                                               definition. Probably the
  1702.                                               auxiliary outputs of a layer have
  1703.                                               not been connected with
  1704.                                               corresponding aux selection
  1705.                                               layers (SelectAux) or at least
  1706.                                               one aux output has not been
  1707.                                               specified during model creation
  1708.                                               (create_dl_model call).
  1709.                                               */
  1710. #define H_ERR_CNNGRAPH_LAYER_UNSUPPORTED 7778 /* CNN-Graph: Layer not supported
  1711.                                                  for selected runtime */

  1712. /* DL */
  1713. #define H_ERR_DL_INTERNAL             7779 /* DL: Internal error */
  1714. #define H_ERR_DL_FILE_READ            7780 /* DL: Error reading file */
  1715. #define H_ERR_DL_FILE_WRITE           7781 /* DL: Error writing file */
  1716. #define H_ERR_DL_FILE_WRONG_VERSION   7782 /* DL: Wrong file version */

  1717. #define H_ERR_DL_INPUTS_MISSING       7783 /* DL: Inputs missing in input dict */
  1718. #define H_ERR_DL_INPUT_WRONG_BS       7784 /* DL: Inputs have incorrect batch
  1719.                                                   size */
  1720. #define H_ERR_DL_INVALID_NAME         7785 /* DL: Invalid layer name */
  1721. #define H_ERR_DL_DUPLICATE_NAME       7786 /* DL: Duplicate layer name */
  1722. #define H_ERR_DL_INVALID_OUTPUT       7787 /* DL: Invalid output layer */
  1723. #define H_ERR_DL_PARAM_NOT_AVAILABLE  7788 /* DL: Parameter is not available */
  1724. #define H_ERR_DL_INPUT_WRONG_LENGTH   7789 /* DL: Tuple inputs have incorrect length */
  1725. #define H_ERR_DL_INPUT_WRONG_TYPE     7790 /* DL: Tuple inputs have incorrect type */
  1726. #define H_ERR_DL_INPUT_WRONG_VALUES   7791 /* DL: Some inputs have incorrect values */
  1727. #define H_ERR_DL_CLASS_IDS_NOT_UNIQUE 7792 /* DL: Some class ids are not unique */
  1728. #define H_ERR_DL_CLASS_IDS_INVALID    7793 /* DL: Some class ids are invalid */
  1729. #define H_ERR_DL_CLASS_IDS_INVALID_CONV    7794 /* DL: Input data of class id
  1730.                                                    conversion is invalid. */
  1731. #define H_ERR_DL_TYPE_ALREADY_DEFINED 7795 /* DL: Type already defined */
  1732. #define H_ERR_DL_NO_INFERENCE_INPUTS  7796 /* DL: Cannot identify inference
  1733.                                               inputs. */
  1734. #define H_ERR_DL_CLASS_IDS_INVALID_OVERLAP 7797 /* DL: Some class ids overlap
  1735.                                                    with ignore class ids. */
  1736. #define H_ERR_DL_WRONG_OUTPUT_LAYER_NUM   7798 /* DL: Wrong number of output layer */
  1737. #define H_ERR_DL_WRONG_BS_MULTIPLIER      7799 /* DL: Batch size multiplier needs to be greater than 0 */
  1738. #define H_ERR_DL_INPUT_WRONG_BS_WITH_MULTIPLIER    7800 /* DL: Inputs have incorrect batch
  1739.                                                   size. The number of needed inputs is defined
  1740.                                                   by batch_size * batch_size_multiplier */

  1741. #define H_ERR_DL_READ_ONNX 7801 /* Error occurred while reading an ONNX model */
  1742. #define H_ERR_DL_CLASS_IDS_MISSING 7802 /* DL: Model does not have class ids */
  1743. #define H_ERR_DL_WRITE_ONNX 7803 /* Error occurred while writing an ONNX model */
  1744. #define H_ERR_DL_ONNX_LOADER 7804 /* DL: Libprotobuf for ONNX could not be loaded */


  1745. /* DL Detector */
  1746. #define H_ERR_DL_FPN_SCALES           7810 /* DL: Wrong scales during FPN creation */
  1747. #define H_ERR_DL_FPN_INVALID_BACKBONE 7811 /* DL: Backbone unusable for FPN creation */
  1748. #define H_ERR_DL_FPN_INVALID_FEATURE_MAP_SIZE 7812 /* DL: Backbone feature maps not divisible by 2 */
  1749. #define H_ERR_DL_FPN_INVALID_LEVELS 7813 /* Invalid FPN levels given */
  1750. #define H_ERR_DL_ANCHOR                 7820 /* DL: Internal error using anchors */
  1751. #define H_ERR_DL_DETECTOR_INVALID_PARAM  7821 /* DL: Invalid detector parameter */
  1752. #define H_ERR_DL_DETECTOR_INVALID_PARAM_VALUE  7822 /* DL: Invalid detector parameter value */
  1753. #define H_ERR_DL_DETECTOR_INVALID_DOCKING_LAYER  7823 /* DL: Invalid docking layer */
  1754. #define H_ERR_DL_DETECTOR_INVALID_INSTANCE_TYPE  7824 /* DL: Invalid instance type */

  1755. /* DL Nodes */
  1756. #define H_ERR_DL_NODE_MISSING_PARAM_NAME  7830 /* DL-Node: Missing generic
  1757.                                                   parameter 'name'. Please
  1758.                                                   specify a layer name. */

  1759. #define H_ERR_DL_NODE_GENPARAM_NAME_NOT_ALLOWED  7831 /* DL-Node: No generic parameter
  1760.                                                   'name' allowed for this node. */
  1761. #define H_ERR_DL_NODE_INVALID_SPEC  7832 /* DL-Node: Invalid layer specification. */
  1762. #define H_ERR_DL_NODE_DUPLICATE_EDGE  7833 /* DL-Node: There can only be one
  1763.                                               direct connection between two
  1764.                                               layers.*/

  1765. /* DL Solver */
  1766. #define H_ERR_DL_SOLVER_INVALID_TYPE 7840 /* DL-Solver: Invalid type. */
  1767. #define H_ERR_DL_SOLVER_INVALID_UPDATE_FORMULA 7841 /* DL-Solver: Invalid update formula. */

  1768. /* DL Heatmap */
  1769. #define H_ERR_DL_HEATMAP_UNSUPPORTED_RUNTIME    7850 /* DL: Heatmap is unsupported with
  1770.                                                         the selected runtime. */
  1771. #define H_ERR_DL_HEATMAP_UNSUPPORTED_MODEL_TYPE 7851 /* DL: Unsupported heatmap model type.
  1772.                                                         The heatmap is only applicable for
  1773.                                                         model type 'classification'. */
  1774. #define H_ERR_DL_HEATMAP_UNSUPPORTED_METHOD     7852 /* DL: Unsupported heatmap method */
  1775. #define H_ERR_DL_HEATMAP_WRONG_TARGET_CLASS_ID  7853 /* DL: Wrong target class id for heatmap */

  1776. /* DL Global Context Anomaly Detection */
  1777. #define H_ERR_DL_GCAD_NETWORK_NOT_AVAILABLE 7870 /* DL: GC Anomaly Detection network not available */

  1778. /* DL Anomaly Detection */
  1779. #define H_ERR_DL_ANOMALY_MODEL_INTERNAL  7880 /* DL: Internal error occurred in anomaly model */
  1780. #define H_ERR_DL_ANOMALY_MODEL_UNTRAINED  7881 /* DL: Untrained anomaly model */
  1781. #define H_ERR_DL_ANOMALY_MODEL_TRAINING_FAILED  7882 /* DL: Anomaly model training failed */
  1782. #define H_ERR_DL_ANOMALY_MODEL_PARAM_TRAINED 7883 /* DL: Unable to set parameter on a trained
  1783.                                                      anomaly detection model */
  1784. #define H_ERR_DL_ANOMALY_MODEL_RESIZE  7884 /* DL: Input image size cannot be changed */
  1785. #define H_ERR_DL_ANOMALY_MODEL_DEPTH  7885 /* DL: Input depth is not supported */
  1786. #define H_ERR_DL_ANOMALY_MODEL_INPUT_DOMAIN 7886 /* DL: Input domain must not be empty */

  1787. /* DEEP OCR */
  1788. #define H_ERR_DEEP_OCR_MODEL_INTERNAL  7890 /* Deep OCR internal error */
  1789. #define H_ERR_DEEP_OCR_MODEL_INVALID_ALPHABET  7891 /* Each entry of the alphabet
  1790.                                                      can only contain a string
  1791.                                                      of length one.
  1792.                                                      */
  1793. #define H_ERR_DEEP_OCR_MODEL_INVALID_ALPHABET_IDX  7892 /* Out of bounds index
  1794.                                                          into alphabet. */
  1795. #define H_ERR_DEEP_OCR_MODEL_INVALID_MODEL_TYPE  7893 /* The type of the given DL
  1796.                                                        model is not allowed. */
  1797. #define H_ERR_DEEP_OCR_MODEL_NOT_AVAILABLE 7894 /* The model is not available. */

  1798. #define H_ERR_DEEP_OCR_MODEL_INVALID_ALPHABET_MAPPING_NO_ALPHABET  7895 /*It is
  1799.                                                                           not
  1800.                                                                           possible
  1801.                                                                           to
  1802.                                                                           specify
  1803.                                                                           a
  1804.                                                                           mapping
  1805.                                                                           because
  1806.                                                                           there
  1807.                                                                           is no
  1808.                                                                           internal
  1809.                                                                           alphabet
  1810.                                                                           specified.
  1811.                                                                           */
  1812. #define H_ERR_DEEP_OCR_MODEL_INVALID_ALPHABET_MAPPING_IDX  7896 /* Out of bounds index
  1813.                                                          into alphabet given as
  1814.                                                          mapping. */
  1815. #define H_ERR_DEEP_OCR_MODEL_INVALID_ALPHABET_MAPPING_LEN  7897 /* The length
  1816.                                                                    of the
  1817.                                                                    mapping and
  1818.                                                                    the length
  1819.                                                                    of the
  1820.                                                                    internal alphabet
  1821.                                                                    need to be
  1822.                                                                    the same. */

  1823. #define H_ERR_DEEP_OCR_MODEL_FILE_NOT_FOUND 7898 /* The model file cannot be found. */
  1824. #define H_ERR_DEEP_OCR_MODEL_UNKNOWN_CHAR  7899 /* Some character is not
  1825.                                                    part of the internal alphabet. */
  1826. #define H_ERR_DEEP_OCR_MODEL_INVALID_WORD_LENGTH  7900 /* The given word length is invalid. */
  1827. #define H_ERR_DEEP_OCR_MODEL_ALPHABET_NOT_UNIQUE  7901 /* The given alphabet is
  1828.                                                           not a unique list of
  1829.                                                           characters */

  1830. /* DL Model */
  1831. #define H_ERR_DL_MODEL_APPLY_NO_DEF_OUTPUTS 7910 /* apply_dl_model: no default
  1832.                                                     outputs allowed */
  1833. #define H_ERR_DL_MODEL_UNSUPPORTED_GENPARAM  7911 /* DL: Unsupported generic parameter */
  1834. #define H_ERR_DL_MODEL_OPERATOR_UNSUPPORTED 7912  /* DL: Operator does not support model */
  1835. #define H_ERR_DL_MODEL_RUNTIME 7913               /* DL: Requested runtime cannot be set */
  1836. #define H_ERR_DL_MODEL_UNSUPPORTED_GENVALUE 7914  /* DL: Unsupported generic value(s) */
  1837. #define H_ERR_DL_MODEL_INVALID_NUM_SAMPLES 7915  /* DL: Invalid number of samples */
  1838. #define H_ERR_DL_MODEL_CONVERTED_PARAM 7916  /* DL: Parameter unsupported for converted model */
  1839. #define H_ERR_DL_MODEL_CONVERTED_UNSUPPORTED 7917  /* DL: Unsupported operation on converted model */

  1840. /* Deep Counting */
  1841. #define H_ERR_DEEP_COUNTING_NOT_PREPARED 7940 /* Deep Counting model is not prepared */
  1842. #define H_ERR_DEEP_COUNTING_UNSUPPORTED_BACKBONE 7941 /* The chosen backbone is not settable */
  1843. #define H_ERR_DEEP_COUNTING_PREPARE_UNSUPPORTED 7942 /* Usage of prepare for a Deep Counting model is unsupported */
  1844. #define H_ERR_DEEP_COUNTING_NO_BACKBONE 7943 /* Deep Counting model does not contain a backbone */

  1845. /* DL Device */
  1846. #define H_ERR_DL_DEVICE_UNSUPPORTED_PRECISION 7960  /* DL: Unsupported device precision */

  1847. /* DL Pruning */
  1848. #define H_ERR_DL_PRUNING_WRONG_DATA 7980 /* DL: Pruning data does not fit the given model */
  1849. #define H_ERR_DL_PRUNING_UNSUPPORTED_BY_CNN 7981 /* DL: Model architecture does not support pruning */

  1850. /* DL Module */
  1851. #define H_ERR_DL_MODULE_NOT_LOADED 7990 /* DLModule is not loaded */

  1852. /* Cgpx */
  1853. #define H_ERR_WPRN         8000 /* Unknown operator name */
  1854. #define H_ERR_RCNA         8001 /* register_comp_used is not activated */
  1855. #define H_ERR_WPC          8002 /* Unknown operator class */

  1856. /* Convolution and rank */
  1857. /* Error codes concerning getMask() (RMF = Read Mask-File) */
  1858. #define H_ERR_ORMF        8101  /* convol/mask: Error while opening file */
  1859. #define H_ERR_EOFRMF      8102  /* convol/mask: Premature end of file */
  1860. #define H_ERR_CVTRMF      8103  /* convol/mask: Conversion error */
  1861. #define H_ERR_LCNRMF      8104  /* convol/mask: Wrong row-/column number */
  1862. #define H_ERR_WCOVRMF     8105  /* convol/mask: Mask size overflow */
  1863. #define H_ERR_NEOFRMF     8106  /* convol/mask: Too many elements entered */
  1864. /* IPconvol() and IPRank()                             */
  1865. #define H_ERR_WRRA        8107  /* convol: Wrong margin type */
  1866. #define H_ERR_MCN0        8108  /* convol: No mask object has got
  1867.                                    empty region */
  1868. #define H_ERR_WF0         8110  /* convol: Weight factor is 0 */
  1869. #define H_ERR_NWC         8111  /* convol: Inconsistent number of weights */
  1870. #define H_ERR_WRRV        8112  /* rank: Wrong rank value */
  1871. /* Border treatment */
  1872. #define H_ERR_ROVFL       8113  /* convol/rank: Error while handling margin */
  1873. #define H_ERR_EWPMF       8114  /* Error while parsing filter mask file */

  1874. #define H_ERR_WNUMM       8120  /* Wrong number of coefficients for
  1875.                                    convolution (sigma too big?) */

  1876. /* Background estimation (Kalman) */
  1877. #define H_ERR_WBEDN       8200  /* No valid ID for data set */
  1878. #define H_ERR_NBEDA       8201  /* No data set active (set_bg_esti) */
  1879. #define H_ERR_BEDNAU      8202  /* ID already used for data set */
  1880. #define H_ERR_NBEDC       8204  /* No data set created (create_bg_esti) */
  1881. #define H_ERR_NTM         8205  /* Not possible to pass an object list */
  1882. #define H_ERR_WISBE       8206  /* Image has other size than the background
  1883.                                    image in data set */
  1884. #define H_ERR_UDNSSBE     8207  /* Up-date-region is bigger than
  1885.                                    background image */
  1886. #define H_ERR_SNBETS      8208  /* Number of statistic data sets is
  1887.                                    too small */
  1888. #define H_ERR_WAMBE       8209  /* Wrong value for adapt mode */
  1889. #define H_ERR_WFMBE       8210  /* Wrong value for frame mode */


  1890. /* Pose estimation */
  1891. #define H_ERR_PE_NPCTS    8250  /* Number of point corresponcences too small */
  1892. #define H_ERR_PE_INVMET   8251  /* Invalid method */

  1893. /* OCR */
  1894. #define H_ERR_OCR_MEM1    8300  /* Maximum number of fonts exceeded */
  1895. #define H_ERR_OCR_WID     8301  /* Wrong ID (Number) for font */
  1896. #define H_ERR_OCR1        8302  /* OCR internal error: wrong ID */
  1897. #define H_ERR_OCR_NNI     8303  /* OCR not initialised: no font was read in */
  1898. #define H_ERR_OCR_NAI     8304  /* No font activated */
  1899. #define H_ERR_OCR_WTP     8305  /* OCR internal error: Wrong threshold in
  1900.                                    angle determination */
  1901. #define H_ERR_OCR_WF      8306  /* OCR internal error: Wrong attribute */
  1902. #define H_ERR_OCR_READ    8307  /* The version of the OCR classifier
  1903.                                    is not supported */
  1904. #define H_ERR_OCR_NODES   8308  /* OCR File: Inconsistent number of nodes */
  1905. #define H_ERR_OCR_EOF     8309  /* OCR File: File too short */
  1906. #define H_ERR_OCR_INC1    8310  /* OCR: Internal error 1 */
  1907. #define H_ERR_OCR_INC2    8311  /* OCR: Internal error 2 */
  1908. #define H_ERR_WOCRTYPE    8312  /* Wrong type of OCR tool
  1909.                                    (no 'box' or 'net') */
  1910. #define H_ERR_OCR_TRF     8313  /* The version of the OCR training characters
  1911.                                    is not supported */
  1912. #define H_ERR_TRF_ITL     8314  /* Image too large for training file */
  1913. #define H_ERR_TRF_RTL     8315  /* Region too large for training file */
  1914. #define H_ERR_TRF_PT      8316  /* Protected OCR training file */
  1915. #define H_ERR_TRF_WPW     8317  /* Protected OCR training file: wrong passw. */
  1916. #define H_ERR_OCR_NOSITEM 8318  /* Serialized item does not contain a valid
  1917.                                    OCR classifier */
  1918. #define H_ERR_TRF_CON_EIO 8319  /* OCR training file concatenation failed:
  1919.                                    identical input and output files */

  1920. #define H_ERR_OCR_MLP_NOCLASSFILE 8320 /* Invalid file format for
  1921.                                           MLP classifier */
  1922. #define H_ERR_OCR_MLP_WRCLASSVERS 8321 /* The version of the MLP classifier
  1923.                                           is not supported */
  1924. #define H_ERR_OCR_MLP_NOSITEM     8322 /* Serialized item does not contain
  1925.                                           a valid MLP classifier */

  1926. #define H_ERR_OCR_SVM_NOCLASSFILE 8330 /* Invalid file format for
  1927.                                           SVM classifier */
  1928. #define H_ERR_OCR_SVM_WRCLASSVERS 8331 /* The version of the SVM
  1929.                                           classifier is not supported*/
  1930. #define H_ERR_OCR_SVM_NOSITEM     8332 /* Serialized item does not contain
  1931.                                           a valid SVM classifier */

  1932. #define H_ERR_OCR_KNN_NOCLASSFILE 8333 /* Invalid file format for
  1933.                                           k-NN classifier */
  1934. #define H_ERR_OCR_KNN_NOSITEM     8334 /* Serialized item does not contain
  1935.                                           a valid k-NN classifier */

  1936. #define H_ERR_OCR_CNN_NOCLASSFILE 8335 /* Invalid file format for CNN
  1937.                                           classifier */
  1938. #define H_ERR_OCR_CNN_WRCLASSVERS 8336 /* The version of the CNN classifier
  1939.                                           is not supported */
  1940. #define H_ERR_OCR_CNN_NOSITEM     8337 /* Serialized item does not contain
  1941.                                           a valid CNN classifier */
  1942. #define H_ERR_OCR_RESULT_NOT_AVAILABLE 8338 /* Result name is not available
  1943.                                                for this mode */

  1944. /* OCV */
  1945. #define H_ERR_OCV_NI            8350  /* OCV system not initialized */
  1946. #define H_ERR_WOCVTYPE          8351  /* The version of the OCV tool
  1947.                                          is not supported */
  1948. #define H_ERR_OCV_WNAME         8353  /* Wrong name for an OCV object */
  1949. #define H_ERR_OCV_II            8354  /* Training has already been applied */
  1950. #define H_ERR_OCV_NOTTR         8355  /* No training has been applied */
  1951. #define H_ERR_OCV_NOSITEM       8356  /* Serialized item does not
  1952.                                          contain a valid OCV tool */

  1953. /* Function 1D */
  1954. #define H_ERR_WLENGTH       8370 /* Wrong number of function points */
  1955. #define H_ERR_NO_FUNCTION   8371 /* List of values is not a function */
  1956. #define H_ERR_NOT_ASCENDING 8372 /* Wrong ordering of values (not ascending)*/
  1957. #define H_ERR_ILLEGAL_DIST  8373 /* Illegal distance of function points */
  1958. #define H_ERR_NOT_MONOTONIC 8374 /* Function is not monotonic. */
  1959. #define H_ERR_WFUNCTION     8375 /* Wrong function type. */
  1960. #define H_ERR_SAME_XVAL_CONV  8376 /* Same x-value due to double to float
  1961.                                       conversion. */

  1962. /* Grid rectification */
  1963. #define H_ERR_GRID_CONNECT_POINTS 8390 /* The input points could not be
  1964.                                           arranged in a regular grid */
  1965. #define H_ERR_GRID_GEN_MAP        8391 /* Error while creating the output
  1966.                                           map */
  1967. #define H_ERR_GRID_AUTO_ROT       8392 /* Auto rotation failed */

  1968. /* Camera calibration */
  1969. #define H_ERR_CAL_NO_COMM_PAR     8393 /* No common camera parameters */
  1970. #define H_ERR_CAL_NEGVY     8394 /* Vy must be > 0 */
  1971. #define H_ERR_CAL_IDENTICAL_FP    8395 /* Same finder pattern found
  1972.                                           multiple times */
  1973. #define H_ERR_CAL_LSCPNA    8396 /* Function not available for line scan
  1974.                                     cameras with perspective lenses */
  1975. #define H_ERR_CAL_MARK_SEGM 8397 /* Mark segmentation failed */
  1976. #define H_ERR_CAL_CONT_EXT  8398 /* Contour extraction failed */
  1977. #define H_ERR_CAL_NO_FP     8399 /* No finder pattern found */
  1978. #define H_ERR_CAL_LCALP     8400 /* At least 3 calibration points have to be
  1979.                                     indicated */
  1980. #define H_ERR_CAL_INCONSISTENT_FP  8401 /* Inconsistent finder pattern
  1981.                                            positions */
  1982. #define H_ERR_CAL_NCPF      8402 /* No calibration table found */
  1983. #define H_ERR_CAL_RECPF     8403 /* Error while reading calibration table
  1984.                                     description file */
  1985. #define H_ERR_CAL_LTMTH     8404 /* Minimum threshold while searching for
  1986.                                     ellipses */
  1987. #define H_ERR_CAL_FRCP      8405 /* Read error / format error in calibration
  1988.                                     table description file */
  1989. #define H_ERR_CAL_PROJ      8406 /* Error in projection:
  1990.                                     s_x = 0 or s_y = 0 or z = 0 */
  1991. #define H_ERR_CAL_UNPRO     8407 /* Error in inverse projection */
  1992. #define H_ERR_CAL_RICPF     8408 /* Not possible to open camera parameter
  1993.                                     file */
  1994. #define H_ERR_CAL_FICP1     8409 /* Format error in file: No colon */
  1995. #define H_ERR_CAL_FICP2     8410 /* Format error in file:
  1996.                                     2. colon is missing */
  1997. #define H_ERR_CAL_FICP3     8411 /* Format error in file:
  1998.                                     Semicolon is missing */
  1999. #define H_ERR_CAL_REPOS     8412 /* Not possible to open camera parameter
  2000.                                     (pose) file */
  2001. #define H_ERR_CAL_FOPOS     8413 /* Format error in camera parameter
  2002.                                     (pose) file */
  2003. #define H_ERR_CAL_OCPDF     8414 /* Not possible to open calibration target
  2004.                                     description file */
  2005. #define H_ERR_CAL_OCPPS     8415 /* Not possible to open postscript file of
  2006.                                     calibration target */
  2007. #define H_ERR_CAL_EVECN     8416 /* Error while norming the vector */
  2008. #define H_ERR_CAL_NPLAN     8417 /* Fitting of calibration target failed */
  2009. #define H_ERR_CAL_NNMAR     8418 /* No next mark found */
  2010. #define H_ERR_CAL_NNEQU     8419 /* Normal equation system is not solvable */
  2011. #define H_ERR_CAL_QETHM     8420 /* Average quadratic error is too big for
  2012.                                     3D position of mark */
  2013. #define H_ERR_CAL_NOELL     8421 /* Non elliptic contour */
  2014. #define H_ERR_CAL_WPARV     8422 /* Wrong parameter value slvand() */
  2015. #define H_ERR_CAL_WFRES     8423 /* Wrong function results slvand() */
  2016. #define H_ERR_CAL_ECPDI     8424 /* Distance of marks in calibration target
  2017.                                     description file is not possible */
  2018. #define H_ERR_CAL_WEFLA     8425 /* Specified flag for degree of freedom
  2019.                                     not valid */
  2020. #define H_ERR_CAL_NOMER     8426 /* Minimum error did not fall below */
  2021. #define H_ERR_CAL_WPTYP     8427 /* Wrong type in Pose
  2022.                                     (rotation / translation) */
  2023. #define H_ERR_CAL_WIMSZ     8428 /* Image size does not match the measurement
  2024.                                     in camera parameters */
  2025. #define H_ERR_CAL_NPILS     8429 /* Point could not be projected into
  2026.                                     linescan image */
  2027. #define H_ERR_CAL_DIACM     8430 /* Diameter of calibration marks could
  2028.                                     not be determined */
  2029. #define H_ERR_CAL_ORICP     8431 /* Orientation of calibration plate could
  2030.                                     not be determined */
  2031. #define H_ERR_CAL_CPNII     8432 /* Calibration plate does not lie completely
  2032.                                     inside the image */
  2033. #define H_ERR_CAL_WNCME     8433 /* Wrong number of calibration marks
  2034.                                     extracted */
  2035. #define H_ERR_CAL_UNKPG     8434 /* Unknown name of parameter group */
  2036. #define H_ERR_CAL_NEGFL     8435 /* Focal length must be non-negative */
  2037. #define H_ERR_CAL_TELNA     8436 /* Function not available for cameras
  2038.                                     with telecentric lenses */
  2039. #define H_ERR_CAL_LSCNA     8437 /* Function not available for line scan
  2040.                                     cameras */
  2041. #define H_ERR_CAL_ELLDP     8438 /* Ellipse is degenerated to a point */
  2042. #define H_ERR_CAL_NOMF      8439 /* No orientation mark found */
  2043. #define H_ERR_CAL_NCONV     8440 /* Camera calibration did not converge */
  2044. #define H_ERR_CAL_HYPNA     8441 /* Function not available for cameras with
  2045.                                     hypercentric lenses */
  2046. #define H_ERR_CAL_DISTORT   8442 /* Point cannot be distorted. */
  2047. #define H_ERR_CAL_WREDGFILT 8443 /* Wrong edge filter. */
  2048. #define H_ERR_CAL_NEGPS     8444 /* Pixel size must be non-negative or zero */
  2049. #define H_ERR_CAL_NEGTS     8445 /* Tilt is in the wrong range */
  2050. #define H_ERR_CAL_NEGRS     8446 /* Rot is in the wrong range */
  2051. #define H_ERR_CAL_INVCAMPAR 8447 /* Camera parameters are invalid */
  2052. #define H_ERR_CAL_ILLFL     8448 /* Focal length must be positive */
  2053. #define H_ERR_CAL_ILLMAG    8449 /* Magnification must be positive */
  2054. #define H_ERR_CAL_ILLIPD    8450 /* Illegal image plane distance */

  2055. /* Calib Data Model (CM) and Camera Setup Model (CSM) errors */
  2056. #define H_ERR_CM_NOT_OPTIMIZED  8451 /* model not optimized yet - no res's*/
  2057. #define H_ERR_CM_NOT_POSTPROCC  8452 /* auxiliary model results not available */
  2058. #define H_ERR_CM_NOT_INTERCONN  8453 /* setup not 'visibly' interconnected */
  2059. #define H_ERR_CM_CAMPAR_MISMCH  8454 /* camera parameter mismatch */
  2060. #define H_ERR_CM_CAMTYP_MISMCH  8455 /* camera type mismatch */
  2061. #define H_ERR_CM_CAMTYP_UNSUPD  8456 /* camera type not supported */
  2062. #define H_ERR_CM_INVALD_CAMIDX  8457 /* invalid camera ID */
  2063. #define H_ERR_CM_INVALD_DESCID  8458 /* invalid cal.obj. ID */
  2064. #define H_ERR_CM_INVALD_COBJID  8459 /* invalid cal.obj. instance ID */
  2065. #define H_ERR_CM_UNDEFINED_CAM  8460 /* undefined camera  */
  2066. #define H_ERR_CM_REPEATD_INDEX  8461 /* repeated observ. index */
  2067. #define H_ERR_CM_UNDEFI_CADESC  8462 /* undefined calib. object description */
  2068. #define H_ERR_CM_NO_DESCR_FILE  8463 /* Invalid file format for calibration
  2069.                                         data model */
  2070. #define H_ERR_CM_WR_DESCR_VERS  8464 /* The version of the calibration data
  2071.                                         model is not supported */
  2072. #define H_ERR_CM_ZERO_MOTION    8465 /* zero-motion in linear scan camera */
  2073. #define H_ERR_CM_MULTICAM_UNSP  8466 /* multi-camera and -calibobj not
  2074.                                         supported for all camera types */
  2075. #define H_ERR_CM_INCMPLTE_DATA  8467 /* incomplete data, required for legacy
  2076.                                         calibration */
  2077. #define H_ERR_CSM_NO_DESCR_FIL  8468 /* Invalid file format for camera setup
  2078.                                         model */
  2079. #define H_ERR_CSM_WR_DESCR_VER  8469 /* The version of the camera setup model
  2080.                                         is not supported */
  2081. #define H_ERR_CM_CALTAB_NOT_AV  8470 /* full HALCON-caltab descr'n required */
  2082. #define H_ERR_CM_INVAL_OBSERID  8471 /* invalid observation ID */
  2083. #define H_ERR_CSM_NOSITEM       8472 /* Serialized item does not contain a
  2084.                                         valid camera setup model */

  2085. #define H_ERR_CM_NOSITEM        8473 /* Serialized item does not contain a
  2086.                                         valid calibration data model */
  2087. #define H_ERR_CM_INV_TOOLPOSID  8474 /* Invalid tool pose id */
  2088. #define H_ERR_CM_UNDEFINED_TOO  8475 /* Undefined tool pose */
  2089. #define H_ERR_CM_INVLD_MODL_TY  8476 /* Invalid calib data model type */
  2090. #define H_ERR_CSM_UNINIT_CAM    8477 /* The camera setup model contains an
  2091.                                         uninitialized camera */
  2092. #define H_ERR_CM_NO_VALID_SOL   8478 /* The hand-eye algorithm failed
  2093.                                         to find a solution. */
  2094. #define H_ERR_CM_INVAL_OBS_POSE 8479 /* invalid observation pose */
  2095. #define H_ERR_CM_TOO_FEW_POSES  8480 /* Not enough calibration object poses */
  2096. #define H_ERR_CM_UNDEF_CAM_TYP  8481 /* undefined camera type */

  2097. /* Stereo Model (SM) Errors */
  2098. #define H_ERR_SM_INVLD_IMG_PAIRS_DISP_VAL  8482 /* Num of image pairs does not
  2099.                                                 correspond to num of disparity values */
  2100. #define H_ERR_SM_INVLD_DISP_VAL            8483 /* Invalid min/max disparity values */
  2101. #define H_ERR_SM_NO_IM_PAIR                8484 /* No camera pair set by
  2102.                                                 set_stereo_model_image_pairs */
  2103. #define H_ERR_SM_NO_VIS_COLOR              8485 /* No reconstructed point is visible for
  2104.                                                 coloring */
  2105. #define H_ERR_SM_NO_RECONSTRUCT            8486 /* No camera pair yields
  2106.                                                 reconstructed points (please check
  2107.                                                 parameters of disparity method or
  2108.                                                 bounding box) */
  2109. #define H_ERR_SM_INVLD_BB_PARTITION        8487 /* Partitioning of bounding box is too
  2110.                                                 fine (please adapt the parameter
  2111.                                                 'resolution' or the bounding box)*/
  2112. #define H_ERR_SM_INVLD_DISP_RANGE          8488 /* Invalid disparity range for
  2113.                                                 binocular_disparity_ms method */
  2114. #define H_ERR_SM_INVLD_BIN_PAR             8489 /* Invalid param for binoculuar method */
  2115. #define H_ERR_SM_INVLD_MODL_TY             8490 /* invalid stereo model type */
  2116. #define H_ERR_SM_NOT_PERSISTEN             8491 /* stereo model is not in persistent
  2117.                                                 mode */
  2118. #define H_ERR_SM_INVLD_BOU_BOX             8492 /* invalid bounding box */
  2119. #define H_ERR_SR_INVLD_IMG_SIZ             8493 /* stereo reconstruction: image sizes
  2120.                                                 must correspond to camera setup */
  2121. #define H_ERR_SR_BBOX_BHND_CAM             8494 /* bounding box is behind basis line */
  2122. #define H_ERR_CAL_AMBIGUOUS                8495 /* Ambiguous calibration: Please,
  2123.                                                 recalibrate with improved input data!*/
  2124. #define H_ERR_CAL_PCPND                    8496 /* Pose of calibration plate not
  2125.                                                 determined */
  2126. #define H_ERR_CAL_FAILED                   8497 /* Calibration failed: Please check your
  2127.                                                 input data and calibrate again! */
  2128. #define H_ERR_CAL_MISSING_DATA             8498 /* No observation data supplied! */
  2129. #define H_ERR_CAL_FEWER_FOUR               8499 /* The calibration object has to be
  2130.                                                 seen at least once by every camera,
  2131.                                                 if less than four cameras are used. */

  2132. /* Matching */
  2133. /* Gray-value-based matching */
  2134. #define H_ERR_NOAP          8500 /* Invalid file format for template */
  2135. #define H_ERR_WPFV          8501 /* The version of the template is not
  2136.                                     supported */
  2137. #define H_ERR_MATCH_MODE    8502 /* Error during changing the file mode */
  2138. #define H_ERR_MATCH_OOR     8503 /* Inconsistent match file:
  2139.                                     Coordinates out of range */
  2140. #define H_ERR_NOTAP         8505 /* The image(s) is not a pyramid */
  2141. #define H_ERR_NGTPTS        8506 /* Number of template points too small */
  2142. #define H_ERR_PDTL          8507 /* Template data can only be read by
  2143.                                     HALCON XL */
  2144. #define H_ERR_NCC_NOSITEM   8508 /* Serialized item does not contain
  2145.                                     a valid NCC model */
  2146. #define H_ERR_MATCH_NOSITEM 8509 /* Serialized item does not contain
  2147.                                     a valid template */

  2148. /* Shape-based matching (without exclusively generic SBM) */
  2149. #define H_ERR_NTPTS         8510 /* Number of shape model points too small */
  2150. #define H_ERR_CGSMM         8511 /* Gray and color shape models mixed */
  2151. #define H_ERR_SMTL          8512 /* Shape model data can only be read by
  2152.                                     HALCON XL */
  2153. #define H_ERR_SMNXLD        8513 /* Shape model was not created from XLDs */
  2154. #define H_ERR_SM_NOSITEM    8514 /* Serialized item does not contain a valid
  2155.                                     shape model */
  2156. #define H_ERR_SM_CL_CONT    8515 /* Shape model contour too near to clutter
  2157.                                     region */
  2158. #define H_ERR_SM_NO_CLUT    8516 /* Shape model does not contain clutter
  2159.                                     parameters */
  2160. #define H_ERR_SM_SAME_CL    8517 /* Shape models are not of the same clutter type */
  2161. #define H_ERR_SM_WRONG_CLCO 8518 /* Shape model has an invalid clutter
  2162.                                     contrast */

  2163. /* Surface-based matching */
  2164. #define H_ERR_FIND_BOX_UNSUP_GENPARAM 8520 /* Box finder: Unsupported
  2165.                                               generic parameter */

  2166. /* Component-based matching */
  2167. #define H_ERR_COMP_DRT      8530 /* Initial components have different
  2168.                                     region types */
  2169. #define H_ERR_COMP_SAMF     8531 /* Solution of ambiguous matches failed */
  2170. #define H_ERR_IGF_NC        8532 /* Computation of the incomplete gamma
  2171.                                     function not converged */
  2172. #define H_ERR_MSA_TMN       8533 /* Too many nodes while computing the minimum
  2173.                                     spanning arborescence */
  2174. #define H_ERR_CTTL          8534 /* Component training data can only be read
  2175.                                     by HALCON XL */
  2176. #define H_ERR_CMTL          8535 /* Component model data can only be read by
  2177.                                     HALCON XL */
  2178. #define H_ERR_COMP_NOSITEM  8536 /* Serialized item does not contain a valid
  2179.                                     component model */
  2180. #define H_ERR_TRAIN_COMP_NOSITEM        8537 /* Serialized item does not
  2181.                                                 contain a valid component
  2182.                                                 training result */
  2183. /* Image comparison */
  2184. #define H_ERR_VARIATION_WS    8540 /* Size of the training image and the
  2185.                                       variation model differ */
  2186. #define H_ERR_VARIATION_PREP  8541 /* Variation model has not been prepared
  2187.                                       for segmentation */
  2188. #define H_ERR_VARIATION_WRMD  8542 /* Invalid variation model training mode */
  2189. #define H_ERR_VARIATION_NOVF  8543 /* Invalid file format for variation
  2190.                                       model */
  2191. #define H_ERR_VARIATION_WVFV  8544 /* The version of the variation model is
  2192.                                       not supported */
  2193. #define H_ERR_VARIATION_TRDC  8545 /* Training data has been cleared */
  2194. #define H_ERR_VARIATION_NOSITEM 8546 /* Serialized item does not contain a
  2195.                                         valid variation model */

  2196. /* Measure */
  2197. #define H_ERR_MEASURE_NA    8550 /* No more measure objects available */
  2198. #define H_ERR_MEASURE_NI    8551 /* Measure object is not initialized */
  2199. #define H_ERR_MEASURE_OOR   8552 /* Invalid measure object */
  2200. #define H_ERR_MEASURE_IS    8553 /* Measure object is NULL */
  2201. #define H_ERR_MEASURE_WS    8554 /* Measure object has wrong image size */
  2202. #define H_ERR_MEASURE_NO_MODEL_FILE 8555 /* Invalid file format for measure
  2203.                                             object */
  2204. #define H_ERR_MEASURE_WRONG_VERSION 8556 /* The version of the measure object
  2205.                                             is not supported */
  2206. #define H_ERR_MEASURE_TL            8557 /* Measure object data can only be
  2207.                                             read by HALCON XL */
  2208. #define H_ERR_MEASURE_NOSITEM       8558 /* Serialized item does not contain
  2209.                                             a valid measure object */

  2210. /* Metrology */
  2211. #define H_ERR_METROLOGY_MODEL_NI       8570 /* Metrology model is not
  2212.                                                initialized */
  2213. #define H_ERR_METROLOGY_OBJECT_INVALID 8572 /* Invalid metrology object */
  2214. #define H_ERR_METROLOGY_FIT_NOT_ENOUGH_MEASURES  8573 /* Not enough valid
  2215.                                                measures for fitting the
  2216.                                                metrology object */
  2217. #define H_ERR_METROLOGY_NO_MODEL_FILE  8575 /* Invalid file format for
  2218.                                                metrology model */
  2219. #define H_ERR_METROLOGY_WRONG_VERSION  8576 /* The version of the metrology
  2220.                                                model is not supported */
  2221. #define H_ERR_METROLOGY_NO_FUZZY_FUNC  8577 /* Fuzzy function is not set */
  2222. #define H_ERR_METROLOGY_NOSITEM        8578 /* Serialized item does not
  2223.                                                contain a valid metrology
  2224.                                                model */
  2225. #define H_ERR_METROLOGY_UNDEF_CAMPAR   8579 /* Camera parameters are not
  2226.                                                set */
  2227. #define H_ERR_METROLOGY_UNDEF_POSE     8580 /* Pose of the measurement plane
  2228.                                                is not set */
  2229. #define H_ERR_METROLOGY_SET_MODE       8581 /* Mode of metrology model cannot
  2230.                                                be set since an object has
  2231.                                                already been added */
  2232. #define H_ERR_METROLOGY_OP_NOT_ALLOWED 8582 /* If the pose of the metrology
  2233.                                                object has been set several
  2234.                                                times, the operator is not
  2235.                                                longer allowed */
  2236. #define H_ERR_METROLOGY_MULTI_POSE_CAM_PAR 8583 /* All objects of a metrology
  2237.                                                model must have the same world
  2238.                                                pose and camera parameters. */
  2239. #define H_ERR_METROLOGY_WRONG_INPUT_MODE   8584 /* Input type of metrology
  2240.                                                    model does not correspond
  2241.                                                    with the current input
  2242.                                                    type */

  2243. /* Dynamic libraries */
  2244. #define H_ERR_DLOPEN        8600 /* Dynamic library could not be opened */
  2245. #define H_ERR_DLCLOSE       8601 /* Dynamic library could not be closed */
  2246. #define H_ERR_DLLOOKUP      8602 /* Symbol not found in dynamic library */

  2247. #define H_ERR_COMPONENT_NOT_INSTALLED 8603 /* Interface library not
  2248.                                             * available */

  2249. /* Radiometric calibration */
  2250. #define H_ERR_EAD_CAL_NII   8650 /* Not enough information for rad. calib. */

  2251. /* Generic Shape-based matching */
  2252. #define H_ERR_WGSMFV                    8670 /* The version of the shape model
  2253.                                                 result is not supported */
  2254. #define H_ERR_GSM_INVALID_RES_SCALE     8671 /* Restrict scale parameter
  2255.                                                 outside the trained range */
  2256. #define H_ERR_GSM_INVALID_ANGLE         8672 /* Angle parameter outside the
  2257.                                                 trained range */
  2258. #define H_ERR_GSM_NEEDS_TRAINING        8673 /* Shape model needs training */
  2259. #define H_ERR_GSM_CONTRAST_HYS          8674 /* contrast_high cannot be smaller
  2260.                                                 than contrast_low */
  2261. #define H_ERR_GSM_CONTRAST_MIN_CONTRAST 8675 /* Neither contrast_low nor
  2262.                                                 contrast_high can be smaller
  2263.                                                 than min_contrast */
  2264. #define H_ERR_GSM_ISO_SCALE_PAIR        8676 /* iso_scale_max cannot be smaller
  2265.                                                 than iso_scale_min */
  2266. #define H_ERR_GSM_ANISO_SCALE_ROW       8677 /* scale_row_max cannot be smaller
  2267.                                                 than scale_row_min */
  2268. #define H_ERR_GSM_ANISO_SCALE_COLUMN    8678 /* scale_column_max cannot be
  2269.                                                 smaller than
  2270.                                                 scale_column_min */
  2271. #define H_ERR_GSM_ISO_NOT_SET           8679 /* Isotropic scaling not set */
  2272. #define H_ERR_GSM_ANISO_NOT_SET         8680 /* Anisotropic scaling not set */
  2273. #define H_ERR_GSM_INVALID_METRIC_XLD    8681 /* No edge direction available to
  2274.                                                 change shape matching metric */
  2275. #define H_ERR_GSM_SAME_IDENTIFIER       8682 /* Shape models with the same
  2276.                                                 identifier cannot be searched
  2277.                                                 simultaneously */

  2278. /* Barcode */
  2279. #define H_ERR_BAR_WNOM       8701 /* Wrong number of modules */
  2280. #define H_ERR_BAR_WNOE       8702 /* Wrong number of elements */
  2281. #define H_ERR_BAR_UNCHAR     8703 /* Unknown character (for this code) */
  2282. #define H_ERR_BAR_WRONGDESCR 8705 /* Wrong name for attribute in barcode
  2283.                                      descriptor */
  2284. #define H_ERR_BAR_EL_LENGTH  8706 /* Wrong thickness of element */
  2285. #define H_ERR_BAR_NO_REG     8707 /* No region found */
  2286. #define H_ERR_BAR_WRONGCODE  8708 /* Wrong type of bar code */
  2287. #define H_ERR_BAR_INTERNAL   8709  /* Internal error in bar code reader */
  2288. #define H_ERR_BAR_NO_DECODED_SCANLINE   8710  /* Candidate does not contain a
  2289.                                                  decoded scanline */
  2290. #define H_ERR_BC_EMPTY_MODEL_LIST   8721 /* Empty model list */
  2291. #define H_ERR_BC_TRAIN_ONLY_SINGLE  8722 /* Training cannot be done for
  2292.                                             multiple bar code types */
  2293. #define H_ERR_BC_GET_SPECIFIC       8723 /* Cannot get bar code type specific
  2294.                                             parameter with get_bar_code_param.
  2295.                                             Use get_bar_code_param_specific */
  2296. #define H_ERR_BC_GET_OBJ_MULTI      8724 /* Cannot get this object for multiple
  2297.                                             bar code types. Try again with
  2298.                                             single bar code type */
  2299. #define H_ERR_BC_WR_FILE_FORMAT     8725 /* Wrong binary (file) format */
  2300. #define H_ERR_BC_WR_FILE_VERS       8726 /* Wrong version of binary file */
  2301. #define H_ERR_BC_NOT_PERSISTANT     8727 /* The model must be in persistency
  2302.                                             mode to deliver the required
  2303.                                             object/result */
  2304. #define H_ERR_BC_GRAY_OUT_OF_RANGE  8728 /* Incorrect index of scanline's gray
  2305.                                             values*/

  2306. #define H_ERR_NO_PERSISTENT_OP_CALL 8729 /* Neither find_bar_code nor
  2307.                                             decode_bar_code_rectanlge2 has
  2308.                                             been called in 'persistent' mode on
  2309.                                             this model */

  2310. #define H_ERR_BC_ZOOMED_ABORTED           8730  /* The super-resolution algorithm has
  2311.                                                    been aborted */

  2312. #define H_ERR_BC_ZOOMED_INVALID_INPUT     8731  /* SRB: Invalid input data. */

  2313. #define H_ERR_BC_XCORR_INVALID_INPUT     8740 /* Invalid input detected for
  2314.                                                  barcode normalized cross
  2315.                                                  correlation */
  2316. #define H_ERR_BC_XCORR_TOO_MANY_BAD_ROWS 8741 /* Too many bad rows found during
  2317.                                                  barcode normalized cross
  2318.                                                  correlation */
  2319. #define H_ERR_BC_XCORR_NO_CORRELATION    8742 /* No correlation found during
  2320.                                                  barcode normalized cross
  2321.                                                  correlation */
  2322. #define H_ERR_INVALID_SYNTAX_DICTIONARY 8743 /* Invalid GS1 syntax dictionary */

  2323. /* 2D Barcode */
  2324. #define H_ERR_BAR2D_UNKNOWN_TYPE     8800 /* Specified code type is not
  2325.                                              supported */
  2326. #define H_ERR_BAR2D_WRONG_FOREGROUND 8801 /* Wrong foreground specified */
  2327. #define H_ERR_BAR2D_WRONG_SIZE       8802 /* Wrong matrix size specified */
  2328. #define H_ERR_BAR2D_WRONG_SHAPE      8803 /* Wrong symbol shape specified */
  2329. #define H_ERR_BAR2D_WRONG_PARAM_NAME 8804 /* Wrong generic parameter name */
  2330. #define H_ERR_BAR2D_WRONG_PARAM_VAL  8805 /* Wrong generic parameter value */
  2331. #define H_ERR_BAR2D_WRONG_MODE       8806 /* Wrong symbol printing mode */
  2332. #define H_ERR_BAR2D_SYMBOL_ON_BORDER 8807 /* Symbol region too near to image
  2333.                                              border */
  2334. #define H_ERR_BAR2D_MODULE_CONT_NUM  8808 /* No rectangular module boundings
  2335.                                              found */
  2336. #define H_ERR_BAR2D_SYMBOL_FINDER    8809 /* Couldn't identify symbol
  2337.                                              finder */
  2338. #define H_ERR_BAR2D_SYMBOL_DIMENSION 8810 /* Symbol region with wrong
  2339.                                              dimension */
  2340. #define H_ERR_BAR2D_CLASSIF_FAILED   8811 /* Classification failed */
  2341. #define H_ERR_BAR2D_DECODING_FAILED  8812 /* Decoding failed */
  2342. #define H_ERR_BAR2D_DECODING_READER  8813 /* Reader programming not
  2343.                                              supported */

  2344. /* Error codes for errors on all types 2d data codes */
  2345. #define H_ERR_DC2D_GENERAL             8820 /* General 2d data code error */
  2346. #define H_ERR_DC2D_BROKEN_SIGN         8821 /* Corrupt signature of 2d data
  2347.                                                code handle */
  2348. #define H_ERR_DC2D_INVALID_HANDLE      8822 /* Invalid 2d data code handle */
  2349. #define H_ERR_DC2D_EMPTY_MODEL_LIST    8823 /* List of 2d data code models is
  2350.                                                empty */
  2351. #define H_ERR_DC2D_NOT_INITIALIZED     8824 /* Access to uninitialized (or not
  2352.                                                persistent) internal data */
  2353. #define H_ERR_DC2D_INVALID_CANDIDATE   8825 /* Invalid 'Candidate' parameter */
  2354. #define H_ERR_DC2D_INDEX_PARNUM        8826 /* It's not possible to return more
  2355.                                                than one parameter for several
  2356.                                                candidates */
  2357. #define H_ERR_DC2D_EXCLUSIV_PARAM      8827 /* One of the parameters returns
  2358.                                                several values and has to be
  2359.                                                used exclusively for a single
  2360.                                                candidate */
  2361. #define H_ERR_DC2D_DEF_SET_NOT_FIRST   8828 /* Parameter for default settings
  2362.                                                must be the first in the
  2363.                                                parameter list */
  2364. #define H_ERR_DC2D_INTERNAL_UNEXPECTED 8829 /* Unexpected 2d data code error */
  2365. #define H_ERR_DC2D_WRONG_PARAM_VALUE   8830 /* Invalid parameter value */
  2366. #define H_ERR_DC2D_WRONG_PARAM_NAME    8831 /* Unknown parameter name */
  2367. #define H_ERR_DC2D_WRONG_POLARITY      8832 /* Invalid 'polarity' */
  2368. #define H_ERR_DC2D_WRONG_SYMBOL_SHAPE  8833 /* Invalid 'symbol_shape' */
  2369. #define H_ERR_DC2D_WRONG_SYMBOL_SIZE   8834 /* Invalid symbol size */
  2370. #define H_ERR_DC2D_WRONG_MODULE_SIZE   8835 /* Invalid module size */
  2371. #define H_ERR_DC2D_WRONG_MODULE_SHAPE  8836 /* Invalid 'module_shape' */
  2372. #define H_ERR_DC2D_WRONG_ORIENTATION   8837 /* Invalid 'orientation' */
  2373. #define H_ERR_DC2D_WRONG_CONTRAST      8838 /* Invalid 'contrast_min' */
  2374. #define H_ERR_DC2D_WRONG_MEAS_THRESH   8839 /* Invalid 'measure_thresh' */
  2375. #define H_ERR_DC2D_WRONG_ALT_MEAS_RED  8840 /* Invalid 'alt_measure_red' */
  2376. #define H_ERR_DC2D_WRONG_SLANT         8841 /* Invalid 'slant_max' */
  2377. #define H_ERR_DC2D_WRONG_L_DIST        8842 /* Invalid 'L_dist_max' */
  2378. #define H_ERR_DC2D_WRONG_L_LENGTH      8843 /* Invalid 'L_length_min' */
  2379. #define H_ERR_DC2D_WRONG_GAP           8844 /* Invalid module gap */
  2380. #define H_ERR_DC2D_WRONG_DEF_SET       8845 /* Invalid 'default_parameters' */
  2381. #define H_ERR_DC2D_WRONG_TEXTURED      8846 /* Invalid 'back_texture' */
  2382. #define H_ERR_DC2D_WRONG_MIRRORED      8847 /* Invalid 'mirrored' */
  2383. #define H_ERR_DC2D_WRONG_CLASSIFICATOR 8848 /* Invalid 'classificator' */
  2384. #define H_ERR_DC2D_WRONG_PERSISTENCE   8849 /* Invalid 'persistence' */
  2385. #define H_ERR_DC2D_WRONG_MODEL_TYPE    8850 /* Invalid model type */
  2386. #define H_ERR_DC2D_WRONG_MOD_ROI_PART  8851 /* Invalid 'module_roi_part' */
  2387. #define H_ERR_DC2D_WRONG_FP_TOLERANCE  8852 /* Invalid
  2388.                                                'finder_pattern_tolerance' */
  2389. #define H_ERR_DC2D_WRONG_MOD_ASPECT    8853 /* Invalid 'mod_aspect_max' */
  2390. #define H_ERR_DC2D_WRONG_SM_ROBUSTNESS 8854 /* Invalid
  2391.                                                'small_modules_robustness' */
  2392. #define H_ERR_DC2D_WRONG_CONTRAST_TOL  8855 /* Invalid 'contrast_tolerance' */
  2393. #define H_ERR_DC2D_READ_HEAD_FORMAT    8860 /* Invalid header in 2d data code
  2394.                                                model file */
  2395. #define H_ERR_DC2D_READ_HEAD_SIGN      8861 /* Invalid code signature in 2d
  2396.                                                data code model file */
  2397. #define H_ERR_DC2D_READ_LINE_FORMAT    8862 /* Corrupted line in 2d data code
  2398.                                                model file */
  2399. #define H_ERR_DC2D_WRONG_MODULE_ASPECT 8863 /* Invalid module aspect ratio */
  2400. #define H_ERR_DC2D_WRONG_LAYER_NUM     8864 /* wrong number of layers */
  2401. #define H_ERR_DCD_READ_WRONG_VERSION   8865 /* wrong data code model version */
  2402. #define H_ERR_DC2D_NOSITEM             8866 /* Serialized item does not contain
  2403.                                                a valid 2D data code model */
  2404. #define H_ERR_DC2D_WR_FILE_FORMAT      8867 /* Wrong binary (file) format */

  2405. /* 3D Matching */
  2406. #define H_ERR_SM3D_WRONG_PARAM_NAME      8900  /* Invalid parameter value */
  2407. #define H_ERR_SM3D_WRONG_NUM_LEVELS      8901  /* Invalid 'num_levels' */
  2408. #define H_ERR_SM3D_WRONG_OPTIMIZATION    8902  /* Invalid 'optimization' */
  2409. #define H_ERR_SM3D_WRONG_METRIC          8903  /* Invalid 'metric' */
  2410. #define H_ERR_SM3D_WRONG_MIN_FACE_ANGLE  8904  /* Invalid 'min_face_angle' */
  2411. #define H_ERR_SM3D_WRONG_MIN_SIZE        8905  /* Invalid 'min_size' */
  2412. #define H_ERR_SM3D_WRONG_MODEL_TOLERANCE 8906  /* Invalid 'model_tolerance' */
  2413. #define H_ERR_SM3D_WRONG_FAST_POSE_REF   8907  /* Invalid
  2414.                                                  'fast_pose_refinment'*/
  2415. #define H_ERR_SM3D_WRONG_LOWEST_MODEL_LEVEL 8908 /* Invalid
  2416.                                                   'lowest_model_level'*/
  2417. #define H_ERR_SM3D_WRONG_PART_SIZE       8909  /* Invalid 'part_size'*/
  2418. #define H_ERR_SM3D_PROJECTION_TOO_LARGE  8910  /* The projected model is too
  2419.                                                   large (increase the value
  2420.                                                   for DistMin or the image
  2421.                                                   size in CamParam) */
  2422. #define H_ERR_SM3D_WRONG_OPENGL_ACCURACY 8911  /* Invalid
  2423.                                                  'opengl_accuracy'*/
  2424. #define H_ERR_SM3D_WRONG_RECOMPUTE_SCORE 8913  /* Invalid
  2425.                                                  'recompute_score'*/
  2426. #define H_ERR_SM3D_WRONG_LON_MIN         8920 /* Invalid 'longitude_min' */
  2427. #define H_ERR_SM3D_WRONG_LON_MAX         8921 /* Invalid 'longitude_max' */
  2428. #define H_ERR_SM3D_WRONG_LAT_MIN         8922 /* Invalid 'latitude_min */
  2429. #define H_ERR_SM3D_WRONG_LAT_MAX         8923 /* Invalid 'latitude_max' */
  2430. #define H_ERR_SM3D_WRONG_ROL_MIN         8924 /* Invalid 'cam_roll_min' */
  2431. #define H_ERR_SM3D_WRONG_ROL_MAX         8925 /* Invalid 'cam_roll_max' */
  2432. #define H_ERR_SM3D_WRONG_DIST_MIN        8926 /* Invalid 'dist_min' */
  2433. #define H_ERR_SM3D_WRONG_DIST_MAX        8927 /* Invalid 'dist_max' */
  2434. #define H_ERR_SM3D_WRONG_NUM_MATCHES     8928 /* Invalid 'num_matches' */
  2435. #define H_ERR_SM3D_WRONG_MAX_OVERLAP     8929 /* Invalid 'max_overlap' */
  2436. #define H_ERR_SM3D_WRONG_POSE_REFINEMENT 8930 /* Invalid 'pose_refinement' */
  2437. #define H_ERR_SM3D_WRONG_COV_POSE_MODE   8931 /* Invalid 'cov_pose_mode' */
  2438. #define H_ERR_SM3D_WRONG_OUTLIER_SUP     8932 /* In. 'outlier_suppression' */
  2439. #define H_ERR_SM3D_WRONG_BORDER_MODEL    8933 /* Invalid 'border_model' */
  2440. #define H_ERR_SM3D_UNDEFINED_POSE        8940 /* Pose is not well-defined */
  2441. #define H_ERR_SM3D_NO_SM3D_FILE          8941 /* Invalid file format for 3D
  2442.                                                  shape model */
  2443. #define H_ERR_SM3D_WRONG_FILE_VERSION    8942 /* The version of the 3D shape
  2444.                                                  model is not supported */
  2445. #define H_ERR_SM3D_MTL                   8943 /* 3D shape model can only be
  2446.                                                  read by HALCON XL */
  2447. #define H_ERR_SM3D_NO_OM3D_FACES         8944 /* 3D object model does not
  2448.                                                  contain any faces */
  2449. #define H_ERR_SM3D_NOSITEM               8945 /* Serialized item does not
  2450.                                                  contain a valid 3D shape
  2451.                                                  model */
  2452. #define H_ERR_SM3D_WRONG_UNION_ADJACENT_CONTOURS 8946 /* Invalid
  2453.                                                  'union_adjacent_contours' */

  2454. /* Descriptor-based matching */
  2455. #define H_ERR_DESCR_NODESCRFILE            8960 /* Invalid file format for
  2456.                                                    descriptor model */
  2457. #define H_ERR_DESCR_WRDESCRVERS            8961 /* The version of the
  2458.                                                    descriptor model is not
  2459.                                                    supported */
  2460. #define H_ERR_DM_WRONG_NUM_CIRC_RADIUS     8962 /* Invalid 'radius' */
  2461. #define H_ERR_DM_WRONG_NUM_CHECK_NEIGH     8963 /* Invalid 'check_neighbor' */
  2462. #define H_ERR_DM_WRONG_NUM_MIN_CHECK_NEIGH 8964 /* Invalid
  2463.                                                    'min_check_neighbor_diff' */
  2464. #define H_ERR_DM_WRONG_NUM_MIN_SCORE       8965 /* Invalid 'min_score' */
  2465. #define H_ERR_DM_WRONG_NUM_SIGMAGRAD       8966 /* Invalid 'sigma_grad' */
  2466. #define H_ERR_DM_WRONG_NUM_SIGMAINT        8967 /* Invalid 'sigma_smooth' */
  2467. #define H_ERR_DM_WRONG_NUM_ALPHA           8968 /* Invalid 'alpha' */
  2468. #define H_ERR_DM_WRONG_NUM_THRESHOLD       8969 /* Invalid 'threshold' */
  2469. #define H_ERR_DM_WRONG_NUM_DEPTH           8970 /* Invalid 'depth' */
  2470. #define H_ERR_DM_WRONG_NUM_TREES           8971 /* Invalid 'number_trees' */
  2471. #define H_ERR_DM_WRONG_NUM_MIN_SCORE_DESCR 8972 /* Invalid 'min_score_descr' */
  2472. #define H_ERR_DM_WRONG_NUM_PATCH_SIZE      8973 /* Invalid 'patch_size' */
  2473. #define H_ERR_DM_WRONG_TILT                8974 /* Invalid 'tilt' */
  2474. #define H_ERR_DM_WRONG_PAR_GUIDE           8975 /* Invalid 'guided_matching' */
  2475. #define H_ERR_DM_WRONG_PAR_SUBPIX          8976 /* Invalid 'subpix' */
  2476. #define H_ERR_DM_TOO_FEW_POINTS            8977 /* Too few feature points
  2477.                                                    can be found */
  2478. #define H_ERR_DM_WRONG_NUM_MINROT          8978 /* Invalid 'min_rot' */
  2479. #define H_ERR_DM_WRONG_NUM_MAXROT          8979 /* Invalid 'max_rot' */
  2480. #define H_ERR_DM_WRONG_NUM_MINSCALE        8980 /* Invalid 'min_scale' */
  2481. #define H_ERR_DM_WRONG_NUM_MAXSCALE        8981 /* Invalid 'max_scale' */
  2482. #define H_ERR_DM_WRONG_NUM_MASKSIZEGRD     8982 /* Invalid 'mask_size_grd' */
  2483. #define H_ERR_DM_WRONG_NUM_MASKSIZESMOOTH  8983 /* Invalid
  2484.                                                    'mask_size_smooth' */
  2485. #define H_ERR_BROKEN_MODEL                 8984 /* Model broken */
  2486. #define H_ERR_DM_WRONG_DESCR_TYPE          8985 /* Invalid 'descriptor_type' */
  2487. #define H_ERR_DM_WRONG_PAR_MATCHER         8986 /* Invalid 'matcher' */
  2488. #define H_ERR_DM_TOO_MANY_CLASSES          8987 /* Too many point classes -
  2489.                                                    cannot be written to file */
  2490. #define H_ERR_DESCR_NOSITEM                8988 /* Serialized item does not
  2491.                                                    contain a valid descriptor
  2492.                                                    model */

  2493. /* Misc */
  2494. #define H_ERR_NOT_IMPL     9000 /* Function not implemented on this machine */
  2495. #define H_ERR_WIT          9001 /* Image to process has wrong gray
  2496.                                    value type */
  2497. #define H_ERR_WIC          9002 /* Wrong image component */
  2498. #define H_ERR_UNDI         9003 /* Undefined gray values */
  2499. #define H_ERR_WIS          9004 /* Wrong image format for operation
  2500.                                    (too big or too small) */
  2501. #define H_ERR_WCN          9005 /* Wrong number of image components for
  2502.                                    image output */
  2503. #define H_ERR_STRTL        9006 /* String is too long
  2504.                                    (max. 1024 characters) */
  2505. #define H_ERR_WITFO        9007 /* Wrong pixel type for this operation */
  2506. #define H_ERR_NIIT         9008 /* Operation not realized yet for this
  2507.                                    pixel type */
  2508. #define H_ERR_NOCIMA       9009 /* Image is no color image with three
  2509.                                    channels */

  2510. #define H_ERR_DEMO_NOFG    9010 /* Image acquisition devices are not supported
  2511.                                    in the demo version */
  2512. #define H_ERR_DEMO_NOPA    9011 /* Packages are not supported in the
  2513.                                    demo version */
  2514. #define H_ERR_IEUNKV       9020 /* Internal Error: Unknown value*/
  2515. #define H_ERR_WPFO         9021 /* Wrong parameter for this operation */
  2516. #define H_ERR_IDTS         9022 /* Image domain too small */
  2517. #define H_ERR_CNCLDRW      9023 /* Draw operator has been canceled */
  2518. #define H_ERR_REGEX_MATCH  9024 /* Error during matching of regular
  2519.                                  * expression */

  2520. #define H_ERR_STUD_OPNA    9050 /* Operator is not available in the
  2521.                                    student version of HALCON */
  2522. #define H_ERR_STUD_PANA    9051 /* Packages are not available in the
  2523.                                    student version of HALCON */
  2524. #define H_ERR_STUD_FGNA    9052 /* The selected image acquisition device is not
  2525.                                    available in the student version of HALCON*/
  2526. #define H_ERR_NDPA         9053 /* No data points available */
  2527. #define H_ERR_WR_OBJ_TYPE  9054 /* Object type is not supported. */

  2528. #define H_ERR_OP_DISABLED  9055 /* Operator is disabled. */

  2529. /* Linear equations */
  2530. #define H_ERR_TMU          9100 /* Too many unknown variables in
  2531.                                    linear equation */
  2532. #define H_ERR_NUS          9101 /* No (unique) solution for the
  2533.                                    linear equation */
  2534. #define H_ERR_NEE          9102 /* Too little equations in linear equation */

  2535. /* Geometric configurations */
  2536. #define H_ERR_PDDL         9150 /* Points do not define a line */

  2537. /* Matrix operations */
  2538. #define H_ERR_MNI          9200 /* Matrix is not invertible */
  2539. #define H_ERR_SVD_CNVRG    9201 /* Singular value decomposition did not
  2540.                                    converge */
  2541. #define H_ERR_SVD_FEWROW   9202 /* Matrix has too few rows for singular
  2542.                                    value partition */
  2543. #define H_ERR_TQLI_CNVRG   9203 /* Eigenvalue computation did not converge */
  2544. #define H_ERR_JACOBI_CNVRG 9204 /* Eigenvalue computation did not converge */
  2545. #define H_ERR_MATRIX_SING  9205 /* Matrix is singular */
  2546. #define H_ERR_MATCH_CNVRG  9206 /* Function matching did not converge */

  2547. #define H_ERR_MAT_UNDEF    9207 /* Input matrix undefined */
  2548. #define H_ERR_MAT_WDIM     9208 /* Input matrix with wrong dimension */
  2549. #define H_ERR_MAT_NSQR     9209 /* Input matrix is not quadratic */
  2550. #define H_ERR_MAT_FAIL     9210 /* Matrix operation failed */
  2551. #define H_ERR_MAT_NPD      9211 /* Matrix is not positive definite */
  2552. #define H_ERR_MAT_DBZ      9212 /* Matrix element division by 0 */
  2553. #define H_ERR_MAT_NUT      9213 /* Matrix is not an upper triangular matrix */
  2554. #define H_ERR_MAT_NLT      9214 /* Matrix is not a lower triangular matrix */
  2555. #define H_ERR_MAT_NEG      9215 /* Matrix element is negative */
  2556. #define H_ERR_MAT_UNCHAR   9216 /* Matrix file: Invalid character */
  2557. #define H_ERR_MAT_NOT_COMPLETE 9217 /* Matrix file: matrix incomplete */
  2558. #define H_ERR_MAT_READ     9218 /* Invalid file format for matrix */
  2559. #define H_ERR_MAT_COMPLEX  9219 /* Resulting matrix has complex values */
  2560. #define H_ERR_WMATEXP      9220 /* Wrong value in matrix of exponents */
  2561. #define H_ERR_MAT_WRONG_VERSION 9221 /* The version of the matrix is not
  2562.                                         supported */
  2563. #define H_ERR_MAT_NOSITEM  9222 /* Serialized item does not contain a valid
  2564.                                    matrix */

  2565. /* Tree */
  2566. #define H_ERR_WNODE            9230 /* Internal Error: Wrong Node */
  2567. #define H_ERR_CMP_INCONSISTENT 9231 /* Inconsistent red black tree */

  2568. #define H_ERR_LAPACK_PAR   9250 /* Internal error */

  2569. /* Stripack */
  2570. #define H_ERR_STRI_NPNT    9260 /* Number of points too small */
  2571. #define H_ERR_STRI_COLL    9261 /* First 3 points are collinear */
  2572. #define H_ERR_STRI_IDPNT   9262 /* Identical points in triangulation */
  2573. #define H_ERR_STRI_NALLOC  9263 /* Array not allocated large enough */
  2574. #define H_ERR_STRI_DEGEN   9264 /* Triangle is degenerate */
  2575. #define H_ERR_STRI_ITRI    9265 /* Inconsistent triangulation */
  2576. #define H_ERR_STRI_SELFINT 9266 /* Self-intersecting polygon */
  2577. #define H_ERR_STRI_INCONS  9267 /* Inconsistent polygon data */
  2578. #define H_ERR_STRI_AMBINT  9268 /* Ambiguous great circle arc intersection */
  2579. #define H_ERR_STRI_AMBARC  9269 /* Ambiguous great circle arc */
  2580. #define H_ERR_STRI_ILLPAR  9270 /* Illegal parameter */

  2581. /* Tripack */
  2582. #define H_ERR_TRI_NPNT     9280 /* Not enough points for planar triangular
  2583.                                    meshing */
  2584. #define H_ERR_TRI_COLL     9281 /* The first three points of the triangular
  2585.                                    meshing are collinear */
  2586. #define H_ERR_TRI_IDPNT    9282 /* Planar triangular meshing contains
  2587.                                    identical input points */
  2588. #define H_ERR_TRI_IDPNTIN  9283 /* Invalid points for planar triangular
  2589.                                    meshing */
  2590. #define H_ERR_TRI_NALLOC   9284 /* Internal error: allocated array too small
  2591.                                    for planar triangular meshing */
  2592. #define H_ERR_TRI_ITRI     9285 /* Internal error: planar triangular meshing
  2593.                                    inconsistent */
  2594. #define H_ERR_TRI_OUTR     9286 /* Node index outside triangulation range */

  2595. /* Triangulation */
  2596. #define H_ERR_TRI_LOCINC   9290 /* Local inconsistencies for all points with
  2597.                                    valid neighbors (parameters only allow few
  2598.                                    valid neighborhoods or point cloud not
  2599.                                    subsampled) */

  2600. /* Orthogonal Projection */
  2601. #define H_ERR_WSPVP        9300 /* Eye point and reference point coincide */

  2602. /* Dual Quaternions */
  2603. #define H_ERR_DQ_ZERO_NORM 9310 /* Real part of the dual quaternion has
  2604.                                    length 0 */

  2605. /* Timeout */
  2606. #define H_ERR_TIMEOUT                  9400 /* Timeout occurred */
  2607. #define H_ERR_WRONG_TIMEOUT            9401 /* Invalid 'timeout' */
  2608. #define H_ERR_TIMEOUT_AFTER_SBM_CLEAR  9402 /* Timeout occurred after cached
  2609.                                                transformations have been freed
  2610.                                                (internal error) */

  2611. /* Deformable matching */
  2612. #define H_ERR_DEFORM_WRONG_NUM_CLUSTER    9450 /* Invalid 'part_size' */
  2613. #define H_ERR_DEFORM_WRONG_NUM_MIN_SIZE   9451 /* Invalid 'min_size' */
  2614. #define H_ERR_DEFORM_WRONG_NUM_LSQ        9452 /* Invalid number of
  2615.                                                   least-squares iterations */
  2616. #define H_ERR_DEFORM_WRONG_ANGLE_STEP     9453 /* Invalid 'angle_step' */
  2617. #define H_ERR_DEFORM_WRONG_SCALE_R_STEP   9454 /* Invalid 'scale_r_step' */
  2618. #define H_ERR_DEFORM_WRONG_SCALE_C_STEP   9455 /* Invalid 'scale_c_step' */
  2619. #define H_ERR_DEFORM_WRONG_MAX_ANGLE      9456 /* Invalid
  2620.                                                   'max_angle_distortion' */
  2621. #define H_ERR_DEFORM_WRONG_MAX_ANISO      9457 /* Invalid
  2622.                                                 'max_aniso_scale_distortion' */
  2623. #define H_ERR_DEFORM_WRONG_MIN_SIZE       9458 /* Invalid 'min_size' */
  2624. #define H_ERR_DEFORM_WRONG_COV_POSE_MODE  9459 /* Invalid 'cov_pose_mode' */
  2625. #define H_ERR_DEFORM_NO_CALIBRATION_INFO  9460 /* Model contains no
  2626.                                                   calibration information */
  2627. #define H_ERR_DEFORM_WRONG_PARAM_NAME     9461 /* Generic parameter name
  2628.                                                   does not exist */
  2629. #define H_ERR_DEFORM_IMAGE_TO_CAMERA_DIFF 9462 /* camera has different
  2630.                                                   resolution than image */
  2631. #define H_ERR_DEFORM_NO_MODEL_IN_FILE     9463 /* Invalid file format for
  2632.                                                   deformable model */
  2633. #define H_ERR_DEFORM_WRONG_VERSION        9464 /* The version of the
  2634.                                                   deformable model is not
  2635.                                                   supported */
  2636. #define H_ERR_DEFORM_WRONG_SMOOTH_DEFORM     9465 /* Invalid
  2637.                                                      'deformation_smoothness'*/
  2638. #define H_ERR_DEFORM_WRONG_EXPAND_BORDER     9466 /* Invalid 'expand_border' */
  2639. #define H_ERR_DEFORM_ORIGIN_OUTSIDE_TEMPLATE 9467 /* Model origin outside of
  2640.                                                      axis-aligned bounding
  2641.                                                      rectangle of template
  2642.                                                      region */
  2643. #define H_ERR_DEFORM_NOSITEM              9468 /* Serialized item does not
  2644.                                                   contain a valid deformable
  2645.                                                   model */

  2646. /* Edge extraction */
  2647. #define H_ERR_VIEW_ESTIM_FAIL        9499 /* Estimation of viewpose failed */

  2648. /* Surface Based Matching */
  2649. #define H_ERR_SFM_NO_POINTS          9500 /* Object model has no points */
  2650. #define H_ERR_SFM_NO_FACES           9501 /* Object model has no faces */
  2651. #define H_ERR_SFM_NO_NORMALS         9502 /* Object model has no normals */
  2652. #define H_ERR_SFM_NO_VISIBILITY      9503 /* 3D surface model not trained for
  2653.                                              calculating view-based score */
  2654. #define H_ERR_SFM_NO_3D_EDGES        9504 /* 3D surface model not trained for
  2655.                                              edge-supported matching */
  2656. #define H_ERR_SFM_NO_SFM_FILE        9506 /* Invalid file format for 3D
  2657.                                              surface model */
  2658. #define H_ERR_SFM_WRONG_FILE_VERSION 9507 /* The version of the 3D surface
  2659.                                              model is not supported */
  2660. #define H_ERR_SFM_NOSITEM            9508 /* Serialized item does not contain
  2661.                                              a valid 3D surface model */
  2662. #define H_ERR_SFM_TOO_MANY_SYMMS     9509 /* Poses generate too many
  2663.                                              symmetries */

  2664. /* Object Model 3D */
  2665. #define H_ERR_OM3D_INVALID_FILE       9510 /* Invalid 3D file */
  2666. #define H_ERR_OM3D_INVALID_MODEL      9511 /* Invalid 3D Object Model */
  2667. #define H_ERR_OM3D_UNKNOWN_FILE_TYPE  9512 /* Unknown 3D file type */
  2668. #define H_ERR_OM3D_WRONG_FILE_VERSION 9513 /* The version of the 3D object
  2669.                                               model is not supported */
  2670. #define H_ERR_OM3D_MISSING_ATTRIB     9514 /* Required attribute is missing */
  2671. /* Object Model 3D Errors for special attributes */
  2672. #define H_ERR_OM3D_MISSING_ATTRIB_V_COORD         9515 /* Required attribute
  2673.                                                           point_coord is
  2674.                                                           missing */
  2675. #define H_ERR_OM3D_MISSING_ATTRIB_V_NORMALS       9516 /* Required attribute
  2676.                                                           point_normal is
  2677.                                                           missing */
  2678. #define H_ERR_OM3D_MISSING_ATTRIB_F_TRIANGLES     9517 /* Required attribute
  2679.                                                           face_triangle is
  2680.                                                           missing  */
  2681. #define H_ERR_OM3D_MISSING_ATTRIB_F_LINES         9518 /* Required attribute
  2682.                                                           line_array is
  2683.                                                           missing */
  2684. #define H_ERR_OM3D_MISSING_ATTRIB_F_TRINEIGB      9519 /* Required attribute
  2685.                                                           f_trineighb is
  2686.                                                           missing  */
  2687. #define H_ERR_OM3D_MISSING_ATTRIB_F_POLYGONS      9520 /* Required attribute
  2688.                                                           face_polygon is
  2689.                                                           missing  */
  2690. #define H_ERR_OM3D_MISSING_ATTRIB_V_2DMAP         9521 /* Required attribute
  2691.                                                           xyz_mapping is
  2692.                                                           missing  */
  2693. #define H_ERR_OM3D_MISSING_ATTRIB_O_PRIMITIVE     9522 /* Required attribute
  2694.                                                           o_primitive is
  2695.                                                           missing  */
  2696. #define H_ERR_OM3D_MISSING_ATTRIB_SHAPE_MODEL     9523 /* Required attribute
  2697.                                                           shape_model
  2698.                                                           is missing  */
  2699. #define H_ERR_OM3D_MISSING_ATTRIB_EXTENDED        9524 /* Required extended
  2700.                                                           attribute missing in
  2701.                                                           3D object model */
  2702. #define H_ERR_OM3D_NOSITEM            9525 /* Serialized item does not contain
  2703.                                               a valid 3D object model */
  2704. #define H_ERR_OM3D_MISSING_O_PRIMITIVE_EXTENSION  9526 /* Primitive in 3D
  2705.                                                           object model has no
  2706.                                                           extended data */
  2707. #define H_ERR_OM3D_CONTAIN_ATTRIB_F_TRIANGLES 9527 /* Operation invalid, 3D
  2708.                                                       object model already
  2709.                                                       contains triangles */
  2710. #define H_ERR_OM3D_CONTAIN_ATTRIB_F_LINES     9528 /* Operation invalid, 3D
  2711.                                                       object model already
  2712.                                                       contains lines */
  2713. #define H_ERR_OM3D_CONTAIN_ATTRIB_F_POLYGONS  9529 /* Operation invalid, 3D
  2714.                                                       object model already
  2715.                                                       contains faces or
  2716.                                                       polygons */
  2717. #define H_ERR_OM3D_ISOLATED_OBJECT       9530  /* In a global registration an
  2718.                                                   input object has no
  2719.                                                   neighbors */
  2720. #define H_ERR_OM3D_SET_ALL_COORD         9531  /* All components of points
  2721.                                                   must be set at once */
  2722. #define H_ERR_OM3D_SET_ALL_NORMALS       9532  /* All components of normals
  2723.                                                   must be set at once */
  2724. #define H_ERR_OM3D_NUM_NOT_FIT_COORD     9533  /* Number of values doesn't
  2725.                                                   correspond to number of
  2726.                                                   already existing points */
  2727. #define H_ERR_OM3D_NUM_NOT_FIT_NORMALS   9534  /* Number of values doesn't
  2728.                                                   correspond to number of
  2729.                                                   already existing normals */
  2730. #define H_ERR_OM3D_NUM_NOT_FIT_TRIANGLES 9535  /* Number of values doesn't
  2731.                                                   correspond to already
  2732.                                                   existing triangulation */
  2733. #define H_ERR_OM3D_NUM_NOT_FIT_POLYGONS  9536  /* Number of values doesn't
  2734.                                                   correspond to length of
  2735.                                                   already existing polygons */
  2736. #define H_ERR_OM3D_NUM_NOT_FIT_LINES     9537  /* Number of values doesn't
  2737.                                                   correspond to length of
  2738.                                                   already existing polylines */
  2739. #define H_ERR_OM3D_NUM_NOT_FIT_2DMAP     9538  /* Number of values doesn't
  2740.                                                   correspond already existing
  2741.                                                   2D mapping */
  2742. #define H_ERR_OM3D_NUM_NOT_FIT_EXTENDED  9539  /* Number of values doesn't
  2743.                                                   correspond to already
  2744.                                                   existing extended
  2745.                                                   attribute */
  2746. #define H_ERR_OM3D_FACE_INTENSITY_WITH_POINTS 9540 /* Per-face intensity
  2747.                                                   is used with point
  2748.                                                   attribute */
  2749. #define H_ERR_OM3D_ATTRIBUTE_NOT_SUPPORTED    9541 /* Attribute is not (yet)
  2750.                                                       supported */
  2751. #define H_ERR_OM3D_NOT_IN_BB             9542  /* No point within bounding
  2752.                                                   box */
  2753. #define H_ERR_DIF_TOO_SMALL              9543  /* distance_in_front
  2754.                                                   is smaller than the
  2755.                                                   resolution */
  2756. #define H_ERR_MINTH_TOO_SMALL            9544  /* The minimum thickness is
  2757.                                                   smaller than the surface
  2758.                                                   tolerance */
  2759. #define H_ERR_OM3D_WRONG_DIMENSION       9545  /* Input width or height does
  2760.                                                   not match the number of
  2761.                                                   points in 3D object model */
  2762. #define H_ERR_OM3D_MISSING_DIMENSION     9546  /* Image width or height
  2763.                                                   must be set */

  2764. /* 3D segmentation and fitting */
  2765. #define H_ERR_SF_OM3D_TRIANGLES_NOT_SUITABLE  9550 /* Triangles of the 3D
  2766.                                                       object model are not
  2767.                                                       suitable for this
  2768.                                                       operator */
  2769. #define H_ERR_SF_OM3D_FEW_POINTS      9551 /* Too few suitable 3D points in
  2770.                                               the 3D object model */

  2771. /* Serialized item */
  2772. #define H_ERR_NO_SERIALIZED_ITEM      9580 /* Not a valid serialized item
  2773.                                               file */
  2774. #define H_ERR_END_OF_FILE             9581 /* Serialized item: premature end
  2775.                                               of file */

  2776. /* Sample-based identification */
  2777. #define H_ERR_SID_WRONG_RESIZE_METHOD 9600 /* Invalid 'image_resize_method' */
  2778. #define H_ERR_SID_WRONG_RESIZE_VALUE  9601 /* Invalid 'image_resize_value' */
  2779. #define H_ERR_SID_WRONG_RATING_METHOD 9602 /* Invalid 'rating_method' */
  2780. #define H_ERR_SID_NO_IMAGE_INFO_TYPE  9603 /* At least one type of image
  2781.                                               information must be used */
  2782. #define H_ERR_SID_MODEL_NO_COLOR      9604 /* Sample identifier does not
  2783.                                               contain color information */
  2784. #define H_ERR_SID_MODEL_NO_TEXTURE    9605 /* Sample identifier does not
  2785.                                               contain texture information */
  2786. #define H_ERR_SID_NO_IMAGE_INFO       9606 /* Sample image does not contain
  2787.                                               enough information */
  2788. #define H_ERR_SID_NO_UNPREPARED_DATA  9607 /* Sample identifier does not
  2789.                                               contain unprepared data
  2790.                                               (use
  2791.                                      add_sample_identifier_preparation_data) */
  2792. #define H_ERR_SID_MODEL_NOT_PREPARED  9608 /* Sample identifier has not been
  2793.                                               prepared yet (use
  2794.                                               prepare_sample_identifier) */
  2795. #define H_ERR_SID_NO_UNTRAINED_DATA   9609 /* Sample identifier does not
  2796.                                               contain untrained data (use
  2797.                                         add_sample_identifier_training_data) */
  2798. #define H_ERR_SID_MODEL_NOT_TRAINED   9610 /* Sample identifier has not been
  2799.                                               trained yet (use
  2800.                                               train_sample_identifier) */
  2801. #define H_ERR_SID_NO_RESULT_DATA      9611 /* Sample identifier does not
  2802.                                               contain result data */
  2803. #define H_ERR_SID_NUM_TRAIN_OBJ       9612 /* Sample identifier must contain
  2804.                                               at least two training objects
  2805.                                               (use
  2806.                                         add_sample_identifier_training_data) */

  2807. #define H_ERR_FINI_USR_THREADS        9700 /* More than one user thread still uses HALCON
  2808.                                             * resources during finalization */

  2809. /* Encrypted item / encryption */
  2810. #define H_ERR_NO_ENCRYPTED_ITEM 9800 /* Invalid file format for encrypted items */
  2811. #define H_ERR_WRONG_PASSWORD    9801 /* Wrong password */
  2812. #define H_ERR_ENCRYPT_FAILED    9802 /* Encryption failed */
  2813. #define H_ERR_DECRYPT_FAILED    9803 /* Decryption failed */

  2814. /************************************************************************/

  2815. #define H_ERR_START_EXT      10000 /* User defined error codes must be
  2816.                                       larger than this value */

  2817. /* Error codes concerning licensing */
  2818. #define H_ERR_NO_LICENSE              2003 /* No license found */
  2819. #define H_ERR_NO_MODULES              2005 /* No modules in license (no
  2820.                                               VENDOR_STRING) */
  2821. #define H_ERR_NO_LIC_OPER             2006 /* No license for this operator */
  2822. /* Adapt this to be the highest error code concerning licensing */
  2823. #define H_ERR_LAST_LIC_ERROR H_ERR_LIC_NEWVER
复制代码
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
jimslin 发表于 2018-2-19 09:19:05 | 显示全部楼层
很好,方便查找,很有用!!!!
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
白发渔樵江渚上 发表于 2018-7-13 19:02:13 | 显示全部楼层
确实不错,收藏一下!!!!解决了我一个困扰了一下午的问题!
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
halcon学习者 发表于 2018-8-8 23:21:49 | 显示全部楼层
请问错误代码8313怎么处理
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
绝地武士 发表于 2018-8-9 07:49:33 | 显示全部楼层
halcon学习者 发表于 2018-8-8 23:21
请问错误代码8313怎么处理

8313 是提示OCR训练字符的版本不被支持!能看见你怎么写的代码么?或者训练的文件Halcon版本太高之类的?
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
halcon学习者 发表于 2018-8-9 13:22:16 | 显示全部楼层
绝地武士 发表于 2018-8-9 07:49
8313 是提示OCR训练字符的版本不被支持!能看见你怎么写的代码么?或者训练的文件Halcon版本太高之类的? ...
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
halcon学习者 发表于 2018-8-9 13:25:39 | 显示全部楼层
绝地武士 发表于 2018-8-9 07:49
8313 是提示OCR训练字符的版本不被支持!能看见你怎么写的代码么?或者训练的文件Halcon版本太高之类的? ...

不好意思,我不太懂怎么操作论坛{:1_327:}
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
halcon学习者 发表于 2018-8-9 13:45:59 | 显示全部楼层
绝地武士 发表于 2018-8-9 07:49
8313 是提示OCR训练字符的版本不被支持!能看见你怎么写的代码么?或者训练的文件Halcon版本太高之类的? ...

第二部分

第二部分

第一部分

第一部分
就是这样

错误提醒

错误提醒

点评

第一张图片是显示错误的地方,第二张图片是对图像进行预处理  发表于 2018-8-9 13:47
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
 楼主| Criss 发表于 2018-9-9 22:33:29 | 显示全部楼层

可能是trf文件是旧版本程序创建的,或者路径中含有中文导致识别错误了!
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
huangjinyong13 发表于 2018-9-11 21:37:10 | 显示全部楼层
提示2036,但是使用正确的license也无效。。。
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表