This is the homepage for the computer vision course at the undergraduate level being taught in 2018/2 at IPRJ/UERJ. This year will focus on programming 3D technology useful for robotics, motion capture and augmented reality applications such as Kinnect, Hololens, 3D scanning in Google streetview, and Glass.
- Links to previous years of the course: 2013
- Instructor: prof. Ricardo Fabbri, Ph.D. Brown University
- Period: Semester 2018/1 (ending August 2018), for Computer Engineering students in their 10th semester
- Tuesdays and Fridays, 3:10pm-5:00pm, room 207
- Forum for file exchange and discussion: google groups: email@example.com
- Chat: IRC #labmacambira for random chat
The student should know basic programming concepts and quickly learn languages on demand. This year's focus on 3D puts demands some C++ programming, which will be reviewed, but familiarity with C is required. Prior experience with linear algebra and vector calculus are highly recommended, and will also be reviewed as needed.
This year will focus on practical C++ programming, since both performance and scalability are needed for the demands of 3D programming. Auxiliary languages will be used:
- Scripting languages such as Python, Scilab or Matlab for experimentation and prototyping small ideas
- Pd (pure data) will be used for real-time interactive apps (although the underlying code is C/C++)
- Main book this year (emphasizing 3D): An Invitation to 3D Vision, Yi Ma, Stefano Soatto, Jana Kosecka e Shankar Sastry
- Second main book (also emphasizing 3D): Multiple View Geometry in Computer Vision, Hartley & Zisserman
- Computer Vision, Richard Szeliski, which provides an online pdf http://szeliski.org/Book
- Shape Classification and Analysis, 2nd. Ed., Luciano da Fontoura Costa & Roberto Marcondes Cesar Jr.
3D Vision Courses
Finding a 3D vision course suitable for undergraduates is hard, just as the subject itself tends to be hard
- Super Cool 3D course by Frank Dellaert. This is the same type of course as ours, except that we focused on getting structure from motion to work for most problems.
- 3D Photography Course at Brown University by Gabriel Taubin. This vision course is similar to the present course, except it work later into the 3D vision pipeline, after we already have the 3D cameras and an initial reconstruction, how to get better reconstructions and photometry.
Other Vision & Related Courses
- Computer Vision research course at Brown Engineering, 2013 - ENGN 2560
- Image Understanding course at Brown Engineering (basic to intermediate level)
- 2013 course http://mesh.brown.edu/engn1610
- 2011 course http://vision.lems.brown.edu/engn161/fall2011
- Computer Vision course at Brown Computer Science (basic to intermediate) http://cs.brown.edu/courses/cs143
- Stochastic processes course by prof. Fabbri
- Parallel programming course by prof. Fabbri
- Numerical linear algebra course by prof. Fabbri: many useful concepts for 3D computer vision and graphics
- Computer graphics course by prof. Fabbri
- Pattern Theory course by prof. Fabbri: machine learning and relevant stochastic techniques for computer vision
- OpenCV, VXL, SIP: computer vision libraries in C/C++ and Scilab.
P1: 16Aug18 Signature / presence required for course Final/Sub:
- Exercise list for Soatto's book, chapter 2
- Due date: entregar no inicio da P1
All lab material (images, pdf, etc) can be downloaded and updated through Git :
git clone https://github.com/rfabbri/vision-course.git
- Use your language of choice to do the homework. I suggest Scilab, Matlab or Python. This year, most students have elected Python
- This year, since we'll be focusing on 3D, you only need to do Lab1 to get started:
Lab1: Processamento ponto a ponto
- The necessary images are available at Git
- Due date: 9Ago18 until midnight. Atrasos serao aceitos porem somente com reducao na nota.
Instructions for submission
- A solucao deve ser digitada em um relatorio e entregue no formato pdf.
- Incluir tambem todo o codigo fonte e dados gerados
- Enviar um arquivo zipado com tudo (scripts scilab, relatorio, etc) por email, no formato:
3D Reconstruction for Robotics
A robot playing robot soccer needs to measure its position within the soccer field, reconize and track the position of other robots and a ball object relative to itself and the soccer field. If we only want to use regular and cheap cameras for this process (robot eyes), how are we to proceed with the software? We could attempt to use sparse structure from motion techniques, that are now widely available. This has the advantage of robustness for tracking relative pose and provides some geometry, as opposed to generating and stitching depth maps.
In this project, we will explore the use of sparse 3D point cloud technology as well as curve-drawing technology for robotics. Our basic setting, to start with, is a robotic arm and a single webcam. The webcam reconstructs parts / points / curve fragments of rigid objects from a video stream. It also determines its position relative to the arm by looking at the arm moving in front of the camera and reconstructing points or curves on it. Finally, it expresses the 3D information relative to the arm's coordinate system so that the arm can actuate on the object (in robot soccer, this could be any action such as kicking a ball or defending goal).
The main thing we need is a module that takes in a video stream of a moving object, and outputs a 3D reconstruction relative to the first frame. You can think of an object being rotated in front of the camera, and a 3D model being progressively built, as if the robot is manipulating the object to see all angles and get a better picture of its structure.
This module of generating 3D from a video stream, while figuring out the relative position of the object at each frame, is a sparse 3D reconstruction and camera estimation system called structure from motion.
- To practice, download the "Kermit the Frog" test dataset here (copied from Bundler).
- Download COLMAP 3D reconstruction and structure from motion software (use Linux), and also [Regard3D]
- Run a 3D reconstruction and visualize it.
- With COLMAP
- Go to Reconstruction -> Automatic Reconstruction
- Set the image folder as `kermit` (where the `.jpg` images are stored)
- Set the workspace folder as any folder (I create a folder `kermit-work` for that)
- Click "Run"
- Visualize the reconstruction. Go to Render -> Render options, and increase the point size
- Take some screenshots and put them on your report
- Play with some parameters
- Reconstruction -> Automatic Reconstruction -> Dense model (needs CUDA)
- With Regard3D (I've obtained nicer results more easily with Regard3D)
- Follow the tutorial
- Generate and visualize a dense point cloud
- Export to meshlab and visualize the cameras and 3D reconstruction
- With COLMAP
- +1 Bonus point: generate your own dataset related to robot soccer and perform all steps above
- +1 Bonus point: Reconstruct/visualize the dataset using Visual SfM or Blender
- Build LEMSVXD (copy the code from the professor)
- Compute curves for each view
- Visualize epipolar lines across many views
- Build GUI at `/Users/rfabbri/cprg/vxlprg/lemsvpe/lemsvxl/contrib/rfabbri/mw/app`
- Open the dataset on the GUI using the command `sg *`
- Start the Epipolar GUI tool
- Click on an image, and visualize the epipolar lines
- What do you think are the epipolar errors?
- Visualize the 3D reconstructed curves
- Perform 3D reconstruction by clicking on corresponding curves using the GUI
- Generate your own 3D curve-based reconstruction & visualize it
- Whoever completes all steps will score a 10
- Bonus: whoever runs on own dataset will have a bonus of 3 points over the maximum project grade. For example, an object rotating in front of a robot.
- Due date: 20Ago18 para os que nao forem fazer prova final, ou data da P1 para os que quiserem fazer prova final.
Optional: Toy Piano
Build an interactive toy piano or toy keyboard where you have colored objects representing each letter of the alphabet, and the user would touch each object and the computer would react to the persons' touch. To make this easy and cheap, this could work with a webcam and color detection, and the person/baby could use a black glove/sock.
- Grande = 70% projects and 30% tests
- Bonus: top 2 projetos que atingirem nivel de excelencia ganharao +3 pontos na media