{"id":55502,"date":"2022-02-15T16:22:52","date_gmt":"2022-02-15T08:22:52","guid":{"rendered":"https:\/\/www.tm-robot.com\/?post_type=docs&p=55502"},"modified":"2023-11-01T14:03:53","modified_gmt":"2023-11-01T06:03:53","slug":"example-of-external-image-processing-identify-classification","status":"publish","type":"docs","link":"https:\/\/www.tm-robot.com.cn\/zh-hans\/docs\/example-of-external-image-processing-identify-classification\/","title":{"rendered":"How to Run an Example of External Image Processing (Identify & Classification)"},"content":{"rendered":"
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.<\/p>\n
In most cases, you can identify object with build-in vision system with your TM Robot easily.<\/p>\n
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<\/strong> introduced in this article.<\/p>\n Note : There are C++ and Python codes in this package, we will take Python<\/span> for demonstration. You can modify the source codes for customization.<\/p>\n <\/p>\n Step1. [On PC] Install the environment on external PC for Python<\/strong> – find more information in README.md<\/span> in the Python package.<\/p>\n Step2. Set IP for robot(192.168.132.44) and PC(192.168.132.100)<\/strong><\/p>\n Step3. Run the HTTP server on the PC<\/strong><\/p>\n It means that the HTTP server is running on 192.168.132.100:4585<\/p>\n <\/p>\n Step4. [On TM Robot] Create a Vision Job in TMflow<\/strong><\/p>\n Step5. Select External Classification<\/strong><\/p>\n <\/p>\n Step6. Set Paremeters for HTTP Server<\/strong><\/p>\n <\/p>\n Step7. Check the result<\/strong><\/p>\n Setting is Done! HTTP Server will send test string [NG] and [Score 0.99] to robot in Live Video.<\/p>\n Remember to save this vision job before leaving.<\/p>\n <\/p>\n And the item TEST1_Ext_Classification_1_TM_ARRAY<\/span> is added to this vision job for further usage.<\/p>\n <\/p>\n Mostly the same for Step1~Step7 above, but one something is different in Step6.<\/p>\n Step6. Set Paremeters for HTTP Server<\/strong><\/p>\n Enter http:\/\/IP\/api\/DET<\/span> ,\u00a0 where [\/api\/DET] is defined in Python source code<\/span>, you can modify it if needed. <\/p>\n Step7. Check the result<\/strong><\/p>\n Setting is Done! HTTP Server will send 3 fake objects to robot in Live Video.<\/p>\n
<\/a><\/p>\nPreparation<\/h1>\n
\n
Running the Demonstration for External Classification<\/h1>\n
<\/a><\/p>\n
<\/a><\/p>\n\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\nRunning the Demonstration for External Detection<\/h1>\n
<\/a><\/p>\n