{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/267","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/267/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/267/events","html_url":"https://github.com/mshabunin/test2/issues/267","id":95441464,"number":267,"title":"[OCV 244] - haartraining error ( Assertion failed (elements_read == 1) ... line 1859","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mshabunin/test2/labels/affected:%202.4","name":"affected: 2.4","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/category:%20objdetect","name":"category: objdetect","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/priority:%20normal","name":"priority: normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T14:09:14Z","updated_at":"2015-07-16T14:09:14Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/2817\r\n```\n|| Yannick Marion on 2013-02-20 15:15\n|| Priority: Normal\n|| Affected: branch '2.4'\n|| Category: objdetect\n|| Tracker: Bug\n|| Difficulty: None\n|| PR: \n|| Platform: None / None\n```\n\n[OCV 244] - haartraining error ( Assertion failed (elements_read == 1) ... line 1859\n-----------\n```\nHi,\r\n\r\nI try to generate haar data but it crash...\r\nI have the following trace:\r\n\r\n<pre>\r\n@Data dir name: treeData\r\nVec file name: vecfile.vec\r\nBG  file name: negative\\output_info2.txt, is a vecfile: no\r\nNum pos: 2000\r\nNum neg: 2000\r\nNum stages: 30\r\nNum splits: 1 (stump as weak classifier)\r\nMem: 2000 MB\r\nSymmetric: TRUE\r\nMin hit rate: 0.995000\r\nMax false alarm rate: 0.500000\r\nWeight trimming: 0.950000\r\nEqual weights: FALSE\r\nMode: BASIC\r\nWidth: 32\r\nHeight: 32\r\nApplied boosting algorithm: GAB\r\nError (valid only for Discrete and Real AdaBoost): misclass\r\nMax number of splits in tree cascade: 0\r\nMin number of positive samples per cluster: 500\r\nRequired leaf false alarm rate: 9.31323e-010\r\n\r\nTree Classifier\r\nStage\r\n+---+\r\n|  0|\r\n+---+\r\n\r\n\r\nNumber of features used : 266016\r\n\r\nParent node: NULL\r\n\r\n*** 1 cluster ***\r\nOpenCV Error: Assertion failed (elements_read == 1) in unknown function, file ..\\haartraining\\cvhaartraining.cpp, line 1859\r\n\r\nV:\\opencv\\opencv2_4_4\\apps\\appOpenCV\\Release\\x86>pause@\r\n</pre>\r\nI can see there already this trouble but I don't know haw to solve it.\r\nCan you help me?\r\n\r\nBest Regards.\n```\n\nHistory\n-------\n##### Yannick Marion on 2013-02-20 15:38\n```\nTo avoid crash I have replace CV_Assert(..) by assert(..).\r\nBut the next is not so good because I have the following message  :\r\n_Invalid background description file._\r\n\r\nSo I will find it.\n```\n##### Anna Kogan on 2013-02-21 07:47\n```\nHello Yannick,\r\n\r\nThank you for reporting the issue. Replacing CV_Assert to assert would'n help there=) If you could work on fix? a patch or a pull request in our repo would be very appreciated!\n-   Target version set to 3.0\n-   Description changed from Hi, I try to generate haar data but it\n    crash... I have the following trace: ... to Hi, I try to generate\n    haar data but it crash... I have the following trace: ... More\n-   Assignee set to Marina Kolpakova\n-   Category set to objdetect\n```\n##### Marina Kolpakova on 2013-04-05 23:27\n```\n-   Assignee deleted (Marina Kolpakova)\n```"}}