6.yolo garbage identification

Test according to the trained model, and the trained object name can be recognized.

1. Main code

Code path:/home/yahboom/Dofbot/6.AI_Visuall/7.Garbage identification.ipynb

The following code content needs to be executed according to the actual step. It cannot be run all at once. Running the last unit will directly exit the thread. The specific code can be viewed in the code path.

Import various libraries and model files

Junk identification function

List of junk names:

Main thread:

After the program block is run, you can see the following interface to identify the corresponding garbage.