07-01-2020 05:18 AM - edited 07-01-2020 05:19 AM
Hello to all.
First of all thanks a lot for reading this post and being able to help.
I am working with texture defect detection (something similar as example NI Help-> Example programs -> Vision -> Texture -> texture defect detection.vi).
In that example there is a .clf file with a texture preconfigured.
In my application I have created a .clf file for my texture with ni training interface.
Now I would like to create a .clf file in labview programmatically (add samples and create a .clf file). Any ideas or vi to follow?
How can I do that? I am stuck.
Thanks a lot.
07-01-2020 09:02 AM
LabVIEW has file functions to open, read/write, and close files. They can be text based or binary.
I have no idea what a CLF file is supposed to be. If you are able to research how the data is structured within it, then I'm sure you could use the LabVIEW file functions to create one.
10-25-2023 04:35 AM
Hello guy! I have the same problem like you. I want to create a clf file and add class and sample in this.
Did you solved this problem?
I need help!
06-13-2024 01:12 AM
Hello there, I am facing the same problem. Hoping there's a solution. Thanks~
06-13-2024 02:06 AM
@Billy901104 wrote:
Hello there, I am facing the same problem. Hoping there's a solution. Thanks~
I think, it should be possible by following calls chain: first IMAQ Create Texture Defect Classifier, then following IMAQ Add Classifier Sample (add multiple if needed), then set options by IMAQ Texture Defect Classifier Options (here I'm not sure if this needs be called after adding samples or before), then finally save *.clf file with IMAQ Write Classifier File. Did you tried this approach?
06-14-2024 12:04 AM
Yes! I managed to locate the Particle Classification Training Tool in NI Vision Assistant.
However, I am facing another problem. When training for multiple classes (cracks and defects), I can either use Look for "Dark Objects" or "Bright Objects" (at the bottom left). It seems that I cannot use both at the same time.
I created a class called "Defects" which are for those bright spots in the picture. As you can see from the picture, there's a huge crack on the right side, which is relatively darker. Therefore, I created another class called "Cracks". I just can't seem to use both Look for "Dark Objects" and "Bright Objects" at the same time. Don't know if you know a solution to this.