Skip to content

How To Run An Example Of External Image Processing (Identify & Classification) – As of TMflow Version 2.14 and Above

Examples are valid for :

TMflow Software version : TMflow 2.14 or later, no additional license needed.

TM Robot Hardware version : HW3.2 or above.

Other specific requirements :

External PC – Win10 64 bit.

  • TMvision 2.14 manual – you can find it in the TM download center.
  • read the manual with the keyword : External Classification/External Detection.
  • Download Sample Here : V3
  • Basic knowledge of operating Python codes and TMvision.

Note :

  • Older or newer software versions may have different results.
  • There are C++ and Python codes in this package, we will take Python for demonstration. You can modify the source codes for customization.

Purpose #

This is an example for External Image Processing demo with vision from TM Robot. You can get image from robot to an external PC for calculation then send the result back to robot for the rest task.

What is External Image Processing? #

In most cases, you can identify object with build-in vision system with your TM Robot easily.

But sometimes you might have your own vision algorithm and want TM Robot to act as a camera without brain, that’s why External Image Processing introduced in this article.

Running the Demonstration for External Classification #

Step1. [On PC] Install the environment on external PC for Python – find more information in README.md in the Python package.

Step2. Set IP for robot(192.168.132.44) and PC(192.168.132.100)

Step3. Run the HTTP server on the PC

It means that the HTTP server is running on 192.168.132.100:4585

Step4. [On TM Robot] Create a Vision Job in TMflow

Step5. Select External Classification

Step6. Set Paremeters for HTTP Server

  • Enter the IP of PC, test connection in #3, you will get response from server in #4
  • Enter http://IP/api/CLS in #5, where [/api/CLS] is defined in Python source code, you can modify it if needed.
  • Save this setting with a name in #6
  • Save and return to last page

Step7. Check the result

Setting is Done! HTTP Server will send test string [NG] and [Score 0.99] to robot in Live Video.

Remember to save this vision job before leaving.

And the item {Vision Job name} _Ext_Classification_1_LabelString_TM is added to this vision job for further usage.

Running the Demonstration for External Detection #

Mostly the same for Step1~Step7 above, but one something is different in Step6.

Step6. Set Paremeters for HTTP Server

Enter http://IP/api/DET ,  where [/api/DET] is defined in Python source code, you can modify it if needed.

Step7. Check the result

Setting is Done! HTTP Server will send 3 fake objects to robot in Live Video.

 

Powered by BetterDocs