Difference between revisions of "project01:W12022G3P4"

From uf
Jump to: navigation, search
(Computer Vision)
(Computer Vision)
 
(11 intermediate revisions by one user not shown)
Line 46: Line 46:
  
 
== Computer Vision ==
 
== Computer Vision ==
 +
[[File:Computer Vision-01.png | 850px]]
 +
[[File:Computer Vision-02.png | 850px]]
 +
[[File:Computer Vision-03.png | 850px]]
 +
[[File:Computer Vision-04.png | 850px]]
  
In the Computer Vision session, we explored using scripts to process images. By calling different kinds of libraries, different functions can be realized through the script like showing, reshaping, and applying filters to an image. We also get a better understanding of how the computer reads an image, in an approach that is very different from how humans perceive it. 
 
 
The Python script developed in the CV session could be used to create the visual link between the node members and the robotic arm, which is crucial for the later HRI part. The photo of the node and beams placed without overlapping each other would be taken as an input. After eroding and dilating to wipe out unnecessary noise on the original image, the script is able to detect the boundary of the background table and the boundaries of each member. With the measurement of the actual table as an input, the pixel per metric transformation would tell the computer the relative size of the other members. The target member then could be selected based on its size.  or based on the coordinate of the centric point of each member.
 
 
 
 
 
[[File:20220324 165629.jpg | 850x595px]]
 
 
<hr>
 
<hr>
 
<b>Canvas size</b>
 
 
[[File:CV canvas size.png | 850x595px]]
 
<hr>
 
 
<b>Measure the borders of the objects</b>
 
 
[[File:CV borders.png | 850x595px]]
 
<hr>
 
 
<b>Measure the sizes of each object</b>
 
 
[[File:CV piece sizes.png | 850x595px]]
 
<hr>
 
 
<b>Measure the size of one object</b>
 
 
[[File:CV one piece size.png | 850x595px]]
 
<hr>
 
 
<b>Measure the centre of one object</b>
 
 
[[File:CV one piece centroid.png | 850x595px]]
 
<hr>
 
 
 
Python script for CV: [https://colab.research.google.com/drive/12eau1G_ckT11fsQdLwQNFudBUHGgIkSq?usp=sharing Google Colab Notebook]
 
Python script for CV: [https://colab.research.google.com/drive/12eau1G_ckT11fsQdLwQNFudBUHGgIkSq?usp=sharing Google Colab Notebook]

Latest revision as of 23:14, 5 April 2022

FInal-banner-13.png

Group 3: Fabio Sala - Thomas Kaasschieter - Yiyin Yu - Yu Chen - Jakob Norén





Computer Vision

Computer Vision-01.png Computer Vision-02.png Computer Vision-03.png Computer Vision-04.png


Python script for CV: Google Colab Notebook