08-03-2020 11:42 PM
I'm new in LabView. I will appreciate it if anyone can give me some advice about my question.
Firstly, I trained a texture classifier using SVM engine and saved as a clf file.The VI is not created by myself, I search the training VI on Internet. I just used it and change some parameters. And the clf file was obtained.
Then I want to use the clf file to execute samples classification. In the classification diagram,I mainly use a IMAQ Classify function and IMAQ Overlay Text function. I hope that the classification results can show on the image. When I run the VI, there is no error show up, but there is also no classification result shown on the image. Is there any error with my diagram?
I attach the training VI and classification VI.
08-05-2020 11:25 AM
Hi, @Bella93,
I've never used IMAQ, so all you'll get from me is basic logic and research, but I'll do my best to help by asking questions.
In your "texture_testing-classification.vi", are you getting results in your "Class Results" indicator? Is anything showing there when you run the .vi?
If so, what?
Assuming there are results, then to show them, you can
You could do the same for all of your indicators, actually.
Then we can see the outputs you're getting by looking in your (re-attached).vi. This could help a lot with troubleshooting.
-joeorbob
08-05-2020 12:07 PM
Thank you,@joeorbob,
In my "texture_testing-classification.vi", I didn't get any result in my "Class Results" indicator. There is nothing showing there when I run the .vi. It seemed that it didn't calculated out the classification result. So Maybe there is something wrong with my diagram. But I can not figure it out.
Bella
08-05-2020 12:37 PM
OK, looking more into the functions you're using, here are some more questions and comments. Try to respond to each bullet point separately. (You don't need to reply to the numbers, just the bullets.)
Let's see where that gets you...
-joeorbob
08-05-2020 03:53 PM
08-07-2020 11:38 AM
Hi, @Bella93,
In the former version I attached, firstly, I try just one image without any loop. There is nothing shown in the classify result, of course the image is shown in the display box.
Let's try to tackle one issue at a time. The reason I recommended you start without using the loop is to get something to work. If the "IMAQ Classify" isn't working when you try to label just one image, it won't work when you label 60. Get that working first, then add looping.
I have try two ways: adding "IMAQ dispose " and not adding "IMAQ dispose " . There is no difference in the classify results."IMAQ dispose " is mainly used to release the memory, it didn't influence the results.
I'm sorry for the confusion - I did not expect "IMAQ dispose" to influence the results. I was just pointing out that it should probably be used. I recommend you use it, but I think the "IMAQ Classify" issue is something different.
And I also check the slowing process. I find that "#0" was calculated out by "IMAQ calssify" and "#0" was transferred to the "Class results" in the block diagram. I try different images which belongs to different class, but they all get "#0". The pictures is as follows:
This is actually really useful information! When you use "Highlight Execution" (The light bulb button, what you described as "the slowing process"), it shows what information is being passed on each wire. However, it can't show every element of an array, so it instead says how many elements are in the array. In your case, the "IMAQ Classify" VI is outputting an array with zero elements. That's why it says "#0".
This makes me think there is an issue with one of the inputs into "IMAQ Classify".
See where that gets you. Hopefully I'm helping (and not making things worse...😅).
-joeorbob
03-06-2025 06:56 AM
Even Im facing same issue with my vi i.e im not able to read class names.