隨著科學與科技上的演進,人工智慧與機器人不再是科幻電影中的假想,然而就如同人類需要雙眼來接收外界資訊一般,機器人也不可能平白無故的了解這個世界,因此便有了機器視覺與影像處理的產生;人類之所以能夠享有三度空間中的立體感受且能判斷物體大小以及距離,正是因為擁有兩隻眼睛,然而單一相機所得到其平面影像最多為二維資訊(平面座標系-X,Y),也就是說,想要得到三度空間中的立體資訊(立體坐標系-X,Y, Z)最少需要用兩支相機做同步取像才有可能實現。
本次實驗利用雙相機以及機器視覺的方法,設計一套在三維空間中,能夠以不接觸矩形體的情況下自動計算其物件體積的量測元件,元件主要分為相機在二維空間與三維空間的轉換校正以及矩形體的定位與測量兩大部分,最後利用同一時間在兩支相機中所測量得到的資訊進行空間的轉換,進而得到矩形體的真實體積。
With the Evolution on science and technology. Artificial intelligence and robot is not imagination in science fiction movies. However, just as humans need eyes to receive external information. It is also impossible for robots to understand this world for no apparent reason. So we have machine vision and image processing. The reason why humans can enjoy the three-dimensional feeling in space and can determine the size and distance about objects. It is because of having two eye. But the images obtained by a single camera can be up to two-dimensional information. In other words, we need at least two cameras to do synchronous get images if we want to get the information on three-dimensional space.
We used the two cameras and the way on image processing to design a software. That it can automatically calculate the volume of the rectangular body on three-dimensional space without touching the object. It is mainly divided into two parts including camera correction in two-dimensional space and three-dimensional space and the positioning and calculation of rectangular bodies. Finally, use the information from two cameras at the same times to do conversion in space. and then we can get the real volume about rectangular body.