pip install pydobot
pip install pyserial
Robot arm <==> Computer <==> SiLabs & Arducam
Resize mode:
Squash
as with the poker cards, I used the default Fit shortest axis
, although I doubt it matters much in this type of project.MobileNetV1 96x96 0.25 (final layer: 64 neurons, 0.1 dropout)
gave the most bang for the buck.Image | Label | Predicted |
---|---|---|
![]() | paper | nothing (= table) |
![]() | cardboard | paper |
![]() | plastic | metal |
![]() | cardboard | metal |
Model testing
and then Classify all
edge-impulse-run-impulse --debug
, this will show inference results as a running log, but you can also see a live camera output in a browser window.
Ctrl-c
or by closing the command prompt. If you forget this, the serial port is busy and can’t be used by the Python program in next the step.PyDobot_sorting_cards.py
or PyDobot_sorting_waste.py
with an IDE or text editor
only_inference = False
to only_inference = True
in the main
function:labels = ["back:", "black:", "no_card:", "red:"]
. Remember they have to be in alphabetical order, also remember to put the colon symbol (:)
at the end of each label!edge-impulse-run-impulse
from a command prompt:Reset
button once or twice to get a connection from Python. The error messages in these cases are typically either IndexError: index out of range
or AttributeError: 'NoneType' object has no attribute 'params'