uArm meets Phyton, Tkinter and OpenCV

Hello,

Here’s another example of what fantastic possibilities are with the uArm swift pro:

I’ve written a small application that enables the Robot Arm to be controlled with OpenCV.
The biggest challenge at the beginning was the translation of the screen coordinates of OpenCV. I’ve solved this in the form of an array, but maybe there are even better options here.

The application shows a simple sorting of red objects. But there is also the possibility of sorting by color sizes and shapes. The extensive OpenCV publications help here.

You can find the program code here: https://github.com/KlausKoeln/uArm-swift-pro
Watch the video here:https://youtu.be/HxMarRPgcnY

The program should be an inspiration for your own projects.

Have fun
Greetings Klaus from Cologne / Germany

ua_sort_red

sortred


UFACTORY Website
Official Store
uArm User Facebook Group

Feedback:
English
中文通道

1 Like

Hay Klaus! I love your project so much and thank you for sharing everything! And I also want to try it with my swift pro, but I’m wondering how to connect the hardware correctly. Are you using raspberry pi to make opencv work? I’m thinking to use raspberry pi3 with USB webcam to handle opencv part, and connect Uarm ot raspberry pi with micro USB cable, will that work ? Or can you tell my how do you set up the hardware? Thank you so much! And I’m Taiwanese so sorry if my Engligh is not good enough hahahahaha! Look forward to your reply! :laughing:

Hello Yu_Yuan_Lu,
thank you for your interest in my projects.
For this project I used my “normal PC with Windows 10”.

Have a look here:

https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_tutorials.html

With the raspberry pi I don’t think it works.

Best regards from Cologne Germany
Klaus

Hay Klaus! Than I’ll try to bild it in my computer first, Hope there’s not alot of problems XDD, Thank you so much!