lucianjames / Vid2Photogrammetry

Software to process videos into an image sequence optimised for use with photogrammetry software. A-level computer science project
1 stars 1 forks source link

Loading a video and extracting frames #1

Closed lucianjames closed 2 years ago

lucianjames commented 2 years ago

This issue tracks the development of the following essential features: image

lucianjames commented 2 years ago

07fc1ff2988308707b0f6894085670f425620c12 Created CMake hello world to get started. Have not yet included OpenCV

lucianjames commented 2 years ago

4b1a7ae41ca5853c34c648f4e524848327193bf8 Moved files around to create a proper library setup

lucianjames commented 2 years ago

67d8a55426fe7d46a138e1b549d1dd66091dd088 Attempt to include opencv, failed. (lots of undefined references). Will be down to my CMakeLists.txt not being set up properly. image Using an opencv hello world demo borrowed from a github gist for testing purposes

lucianjames commented 2 years ago

d1f0df26ce1f6427b801bfc94e355df950b0bab2 I simply forgot about the fact i needed to use target_link_libraries. OpenCV "hello world" demo from the github gist now works. image

lucianjames commented 2 years ago

5414ce95031f4b6b64ad84f4d6280d55c64b0636 Frame extraction test - failed image Looks like it extracted some images, but gave a nasty opencv error

lucianjames commented 2 years ago

fac3cd7a2ef0c5f762d13f84d142149316cb4ae6 Fixed frame extraction, there was an error in the calculation of stepSize. Now outputs the correct number of frames, with no errors. image

lucianjames commented 2 years ago

Still to do:

lucianjames commented 2 years ago

98abb3f2eb92edcfecb5ba2667fed35e9a1e91a9 Prefix 0s working. image

lucianjames commented 2 years ago

image In the next commit ill make it so it doesnt start from 0

lucianjames commented 2 years ago

6d476013a5916ae88c92e7f3f9acd21a7502f9c9 Added input validation and made it possible to specify any filetype (not checking filetype is allowed, just letting openCV throw an error)

Still need to check the video formats supported by openCV!

lucianjames commented 2 years ago

f81e57091e9ad496212c7d69d00ff55c0fb8cfc0 Removed input filetype check, couldnt find anything telling me what openCV actually supports. For now, ill just let openCV throw the error.

lucianjames commented 2 years ago

cf3bc0451fae786d48d3821fcc482983204e6eb1 Created new extractFrames.hpp/cpp files Deleted vid2photogrammetry.cpp because vid2photogrammetry.hpp will just include other header files from now on. Changed the cmake file a bit so i dont have to manually add files (now uses glob to get all hpp and cpp files in the src directory)