Hello, I’m having problems with my Arduino code. To put it simply, I created an array defined as “char labels[10];” in my code then added an strcopy function to copy all the outputs from bb.label. Thereafter, I created a bool function to check through the array if all of its elements are strings “perishable_waste” or “nonperishable_waste” and then another bool to check if there is both. Lastly, I set a memset function at the beginning of the code which runs the classifier in order to set the array elements to null everytime the classifier runs again.
However, the code does not seem to work well and is dysfunctional. It detects the objects properly but the code never made an output from the array parts of the code. Assuming that I’ve never made any of that code, how do I create code that repeatedly checks all of the multiple outputs from bb.label everytime it runs the classifier then identifies whether all of the outputs are “perishable_waste”, “nonperishable_waste”, or mixed with both “perishable_waste” and “non perishable_waste”?