Ask Your Question

Revision history [back]

Capture image of cylinder from Video

Breaking down the .avi video into pictures (a bunch of pictures from frame 1 till last frame). From the of picture, set the 3 lines in the image to capture the pixel (set to 1 pixel width). As shown in the picture below. 3 lines with an equal spacing (40mm from my 3D cad software, I am not sure in pixel distance). Must read the 1st image till the last image. Each line have to cover 120° of area of cylinder. So, after line 1 capture the 1st 120° of cylinder 1, line 2 will capture the 2nd of 120° of cylinder 1 and so to line 3 will capture the 3rd of 120° of cylinder 1. During line 2 capture the 2nd of 120° of cylinder 1. Line 1 will start to capture the 1st of 120° of cylinder 2 and so the rest. The line of pixels captured in step 3 will need to be stitched into a picture. It seems like we flatten the surface of the round cylinder. Lastly, named the image as Cylinder 1, Cylinder 2,….and so on. (this is the result I need) At the end, we can delete all the images which we capture at step 1.

Capture image of cylinder from Video

Breaking down the .avi video into pictures (a bunch of pictures from frame 1 till last frame). From the of picture, set the 3 lines in the image to capture the pixel (set to 1 pixel width). As shown in the picture below. 3 lines with an equal spacing (40mm from my 3D cad software, I am not sure in pixel distance). Must read the 1st image till the last image. Each line have to cover 120° of area of cylinder. So, after line 1 capture the 1st 120° of cylinder 1, line 2 will capture the 2nd of 120° of cylinder 1 and so to line 3 will capture the 3rd of 120° of cylinder 1. During line 2 capture the 2nd of 120° of cylinder 1. Line 1 will start to capture the 1st of 120° of cylinder 2 and so the rest. The line of pixels captured in step 3 will need to be stitched into a picture. It seems like we flatten the surface of the round cylinder. Lastly, named the image as Cylinder 1, Cylinder 2,….and so on. (this is the result I need) At the end, we can delete all the images which we capture at step 1.1. C:\fakepath\Opencv.jpg

click to hide/show revision 3
None

updated 2018-05-30 03:06:31 -0500

berak gravatar image

Capture image of cylinder from Video

Breaking down the .avi video into pictures (a bunch of pictures from frame 1 till last frame). From the of picture, set the 3 lines in the image to capture the pixel (set to 1 pixel width). As shown in the picture below. 3 lines with an equal spacing (40mm from my 3D cad software, I am not sure in pixel distance). Must read the 1st image till the last image. Each line have to cover 120° of area of cylinder. So, after line 1 capture the 1st 120° of cylinder 1, line 2 will capture the 2nd of 120° of cylinder 1 and so to line 3 will capture the 3rd of 120° of cylinder 1. During line 2 capture the 2nd of 120° of cylinder 1. Line 1 will start to capture the 1st of 120° of cylinder 2 and so the rest. The line of pixels captured in step 3 will need to be stitched into a picture. It seems like we flatten the surface of the round cylinder. Lastly, named the image as Cylinder 1, Cylinder 2,….and so on. (this is the result I need) At the end, we can delete all the images which we capture at step 1. C:\fakepath\Opencv.jpgC:\fakepath\Opencv.jpg