{"action":"created","issue":{"url":"https://api.github.com/repos/danforthcenter/plantcv/issues/281","repository_url":"https://api.github.com/repos/danforthcenter/plantcv","labels_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/281/comments","events_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/281/events","html_url":"https://github.com/danforthcenter/plantcv/issues/281","id":389753407,"node_id":"MDU6SXNzdWUzODk3NTM0MDc=","number":281,"title":"Naive Bayes Multiclass CV2 error","user":{"login":"owaisahmed3","id":45790754,"node_id":"MDQ6VXNlcjQ1NzkwNzU0","avatar_url":"https://avatars2.githubusercontent.com/u/45790754?v=4","gravatar_id":"","url":"https://api.github.com/users/owaisahmed3","html_url":"https://github.com/owaisahmed3","followers_url":"https://api.github.com/users/owaisahmed3/followers","following_url":"https://api.github.com/users/owaisahmed3/following{/other_user}","gists_url":"https://api.github.com/users/owaisahmed3/gists{/gist_id}","starred_url":"https://api.github.com/users/owaisahmed3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owaisahmed3/subscriptions","organizations_url":"https://api.github.com/users/owaisahmed3/orgs","repos_url":"https://api.github.com/users/owaisahmed3/repos","events_url":"https://api.github.com/users/owaisahmed3/events{/privacy}","received_events_url":"https://api.github.com/users/owaisahmed3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-11T13:00:57Z","updated_at":"2018-12-13T05:40:52Z","closed_at":null,"author_association":"NONE","body":"<!--- \r\nThanks for contributing your input! Instructions are in comments, like this.\r\n \r\nPlease edit this template before submitting a new issue.\r\n-->\r\n\r\n<!--- \r\nTitle: Please provide a descriptive title that summarizes your feature / question / issue.\r\n-->\r\n\r\n<!---\r\nLabels: Please select one or more relevant tags (menu on the right).\r\n(This only shows up for administrators.)\r\n--->\r\n\r\n### Description\r\n<!---\r\nPlease provide a general summary of your feature / question / issue. \r\n\r\nIs there something you want to do? Is this a bug? Feature request? Discussion? \r\n  * Question: ask away!\r\n  * New feature / analysis.\r\n  * Bug: what were you trying to do? What did you expect to happen? What happened? \r\n-->\r\nI am new to plantcv. Very interested to learn and use this into my project. I have built and ran the VIS tutorial on my system.\r\nI am using:\r\nUbuntu 18.04\r\nPython 3.6.5\r\nOpencv 3.4.1\r\n\r\nHowever i am unable to run the machine learning tutorial, naive bayes multiclass part is where i am stuck at.\r\nI am making a text file as it is given in the tutorial with four classes. Got over the singular matrix error by tab spacing, but i am getting this error:\r\nStarting run 2018-12-11_17:47:50\r\n\r\nRunning the naive Bayes multiclass training method...\r\nOpenCV(3.4.1) Error: Assertion failed ((scn == 3 || scn == 4) && (depth == 0 || depth == 5)) in cvtColor, file /home/ofl/opencv-3.4.1/modules/imgproc/src/color.cpp, line 11214\r\nTraceback (most recent call last):\r\n  File \"plantcv-train.py\", line 88, in <module>\r\n    main()\r\n  File \"plantcv-train.py\", line 83, in main\r\n    options()\r\n  File \"plantcv-train.py\", line 51, in options\r\n    args.func(args)\r\n  File \"plantcv-train.py\", line 73, in run_naive_bayes_multiclass\r\n    plantcv.learn.naive_bayes_multiclass(samples_file=args.file, outfile=args.outfile, mkplots=args.plots)\r\n  File \"/home/ofl/Downloads/working/plantcv/machine/plantcv/learn/naive_bayes.py\", line 136, in naive_bayes_multiclass\r\n    hsv_img = cv2.cvtColor(bgr_img, cv2.COLOR_BGR2HSV)\r\ncv2.error: OpenCV(3.4.1) /home/ofl/opencv-3.4.1/modules/imgproc/src/color.cpp:11214: error: (-215) (scn == 3 || scn == 4) && (depth == 0 || depth == 5) in function cvtColor\r\n\r\n\r\nCommand is:\r\npython plantcv-train.py naive_bayes_multiclass --file pixel_samples.txt --outfile naive_ayes_pdfs.txt --plots\r\n\r\nIf there is anything i am doing wrong, i will be thankfull if someone here guides me through this.\r\n\r\n\r\n\r\n<!--- \r\nHow would this change help? (you, the project, the user community)?\r\nHow would it be used? \r\nAre there any examples (existing software / utilities)?\r\nPlease provide links, screenshots, etc.\r\n-->\r\n\r\n<!---\r\nHow will we know when this is done?\r\n\r\nPlease use boxes like:\r\n\r\nFor a bug:\r\n- [ ] Now I can [topic of question / bug]\r\n\r\nFor a discussion:\r\n- [ ] Discuss and develop requirements docs\r\n- [ ] Create issues for next steps\r\n\r\nFor a new feature:\r\n- [ ] Create algorithm/method\r\n- [ ] Write test\r\n- [ ] Write documentation\r\n- [ ] Add to the package (pull request)\r\n--->\r\n"},"comment":{"url":"https://api.github.com/repos/danforthcenter/plantcv/issues/comments/446849060","html_url":"https://github.com/danforthcenter/plantcv/issues/281#issuecomment-446849060","issue_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/281","id":446849060,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Njg0OTA2MA==","user":{"login":"owaisahmed3","id":45790754,"node_id":"MDQ6VXNlcjQ1NzkwNzU0","avatar_url":"https://avatars2.githubusercontent.com/u/45790754?v=4","gravatar_id":"","url":"https://api.github.com/users/owaisahmed3","html_url":"https://github.com/owaisahmed3","followers_url":"https://api.github.com/users/owaisahmed3/followers","following_url":"https://api.github.com/users/owaisahmed3/following{/other_user}","gists_url":"https://api.github.com/users/owaisahmed3/gists{/gist_id}","starred_url":"https://api.github.com/users/owaisahmed3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owaisahmed3/subscriptions","organizations_url":"https://api.github.com/users/owaisahmed3/orgs","repos_url":"https://api.github.com/users/owaisahmed3/repos","events_url":"https://api.github.com/users/owaisahmed3/events{/privacy}","received_events_url":"https://api.github.com/users/owaisahmed3/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T05:40:52Z","updated_at":"2018-12-13T05:40:52Z","author_association":"NONE","body":"It worked after getting 100 samples of pixels by using ImageJ. Thank you for guidance. Next step is pseudocolored image. I was wondering if there is any way that we can automate this long process of getting pixel samples from image."}}
{"actor":{"display_login":"owaisahmed3"}}