1. Homepage
  2. Programming
  3. CS 5330 - Pattern Recognition and Computer Vision - Project 3: Real-time Object 2-D Recognition

CS 5330 - Pattern Recognition and Computer Vision - Project 3: Real-time Object 2-D Recognition

Engage in a Conversation
USNortheastern UniversityReal-time Object 2-D RecognitionC++CS5330CS 5330Pattern Recognition and Computer Vision

Project 3: Real-time Object 2-D Recognition CourseNana.COM

Due Saturday by 2:59am Points 30 CourseNana.COM

This project is about 2D object recognition. The goal is to have the computer identify a specified set of objects placed on a white surface in a translation, scale, and rotation invariant manner from a camera looking straight down. The computer should be able to recognize single objects placed in the image and identify the object an output image. If provided a video sequence, it should be able to do this in real time. CourseNana.COM

Setup CourseNana.COM

For development, you can use this development image set (https://northeastern.instructure.com/courses/136693/files/18538016?wrap=1) (https://northeastern.instructure.com/courses/136693/files/18538016/download?download_frd=1) . Once you have your system working, you'll need to create your own workspace for real-time recognition. If you have a webcam, the easiest thing to do is set it up on some kind of stand facing down onto a flat surface covered with white paper. If you have only a built-in laptop camera, find a section of white wall in front of which you can hold the objects to be identified. Alternatively, you may be able to stream your phone's camera video to your laptop. If you can get a setup where with a downward facing camera on a white surface, that is the easiest thing to do. CourseNana.COM

Your system needs to be able to differentiate at least 10 objects of your choice. Pick objects that are differentiable by their 2D shape and are mostly a uniform dark color, similar to the dev image set. The goal of this project is a real-time system, but if that is not feasible given your setup, you can have your system take in a directory of images and process them instead. Make sure it is clear in your report which type of system you build. CourseNana.COM

If you are working on your own, you must write the code from scratch for at least one of the first four tasks--thresholding, morphological filtering, connected components analysis, or moment calculations. Otherwise, you may use OpenCV functions. If you are working in pairs, you must write the code for two of the first four tasks from scratch. CourseNana.COM

Tasks CourseNana.COM

1. Threshold the input video CourseNana.COM

Using the video framework from the first project (if you wish), start building your OR system by implementing a thresholding algorithm of some type that separates an object from the background. Give your system the ability to display the thresholded video (remember, you can create multiple CourseNana.COM

output windows using OpenCV). Test it on the complete set of objects to be recognized to make sure this step is working well. In general, the objects you use should be darker than the background, and the whole area should be well-lit. CourseNana.COM

You may want to pre-process the image before thresholding. For example, blurring the image a little can make the regions more uniform. You could also consider making strongly colored pixels (pixels with a high saturation value) be darker, moving them further away from the white background (which is unsaturated). CourseNana.COM

Required images: Include 2-3 examples of the thresholded objects in your report CourseNana.COM

2. Clean up the binary image CourseNana.COM

Clean up your thresholded image using some type of morphological filtering. Look at your images and decide whether they are displaying noise, holes, or other issues. Pick a strategy using morphological filtering (growing/shrinking) to try to solve the issue(s). Explain your reasoning in your report. CourseNana.COM

Required images: Include 2-3 examples of cleaned up images in your report. Use the same images as displayed for task 1. CourseNana.COM

3. Segment the image into regions CourseNana.COM

The next step is to run connected components analysis on the thresholded and cleaned image to get regions. Give your system the ability to display the regions it finds. A good extension is to enable recognition of multiple objects simultaneously (but this is not required). Your system should ignore any regions that are too small, and it can limit the recognition to the largest N regions. CourseNana.COM

OpenCV has a connected components function; if you don't write your own, use the one that also returns the stats. If you chose to write your own, both the two-pass connected components algorithm and the region growing methods are good algorithms to know. CourseNana.COM

Required images: Include 2-3 examples of region maps, ideally with each region shown in a different color. Use the same images as for the prior tasks. CourseNana.COM

4. Compute features for each major region CourseNana.COM

Write a function that computes a set of features for a specified region given a region map and a region ID. Start by calculating the axis of least central moment and the oriented bounding box. Any features you use should be translation, scale, and rotation invariant such as moments around the central axis of rotation. Give your system the ability to display at least one feature in real time on the video output. Then you can easily test whether the feature is translation, scale, and rotation invariant by moving around the object and watching the feature value. Start with just 2-3 features and add more later. There is an OpenCV function that will compute a set of moments. If you use it, explain what moments it is calculating in your report. CourseNana.COM

Required images: Include 2-3 examples of regions showing the axis of least central moment and the CourseNana.COM

oriented bounding box. use the same images as for the prior tasks. CourseNana.COM

  1. Collect training data

Enable your system to collect feature vectors from objects, attach labels, and store them in an object DB (e.g. a file). In other words, your system needs to have a training mode that enables you to collect the feature vectors of known objects and store them for later use in classifying unknown objects. You may want to implement this as a response to a key press: when the user types an N, for example, have the system prompt the user for a name/label and then store the feature vector for the current object along with its label into a file. This could also be done from labeled still images of the object, such as those from a training set. CourseNana.COM

Explain in your report how your training systems works. CourseNana.COM

  1. Classify new images

Enable your system to classify a new feature vector using the known objects database and a scaled Euclidean distance metric [ (x_1 - x_2) / stdev_x ]. Feel free to experiment with other distance metrics. Label the unknown object according to the closest matching feature vector in the object DB (nearest-neighbor recognition). Have your system indicate the label of the object on the output video stream. An extension is to detect when an unknown object (something not in the object DB) is in the video stream or provided as a single image. CourseNana.COM

Required images: include the results from at least one image of each object in your report with the assigned label clearly shown. CourseNana.COM

  1. Implement a different classifier
    Implement a different classifier system of your choice. For example, implement K-Nearest Neighbor

matching with K > 1. Note, KNN matching requires multiple training examples for each object. CourseNana.COM

  1. Evaluate the performance of your system

Evaluate the performance of your system on at least 2 different images of each object. Build a confusion matrix of the results showing true labels versus classified labels and include that in your report. It will save you a lot of time if you print out the confusion matrix in CSV format so you can copy and paste a table in to your report. CourseNana.COM

  1. Capture a demo of your system working
    Take a video of your system running and classifying objects.

Extensions CourseNana.COM

Write a better GUI to show your system in action and to manage the items to your DB CourseNana.COM

Add more than the required ten objects to the DB so your system can recognize more objects. CourseNana.COM

Enable your system to learn new objects automatically by first detecting whether an object is known or unkown, and then collecting statistics for it if the object is unknown. Demonstrate how you can quickly develop a DB using this feature. CourseNana.COM

Experiment with more classifiers and/or distance metrics for comparing feature vectors. Explore some of the object recognition tools in OpenCV. CourseNana.COM

Report CourseNana.COM

When you are done with your project, write a short report that demonstrates the functionality of each task. You can write your report in the application of your choice, but you need to submit it as a pdf along with your code. Your report should have the following structure. Please do not include code in your report. CourseNana.COM

1. A short description of the overall project in your own words. (200 words or less) 2. Any required images along with a short description of the meaning of the image. 3. A description and example images of any extensions.
4. A short reflection of what you learned.
CourseNana.COM

5. Acknowledgement of any materials or people you consulted for the assignment. CourseNana.COM

Submission CourseNana.COM

Submit your code and report to Gradescope (https://www.gradescope.com) . When you are ready to submit, upload your code, report, and a readme file. The readme file should contain the following information. CourseNana.COM

Your name and any other group members, if any.
Links/URLs to any videos you created and want to submit as part of your report. What operating system and IDE you used to run and compile your code. Instructions for running your executables.
Instructions for testing any extensions you completed.
Whether you are using any time travel days and how many.
CourseNana.COM

For project 3, submit your .cpp and .h (.hpp) files, pdf report, and readme.txt (readme.md). Note, if you find any errors or need to update your code, you can resubmit as many times as you wish up until the deadline. CourseNana.COM

As noted in the syllabus, projects submitted by the deadline can receive full credit for the base project and extensions. (max 30/30). Projects submitted up to a week after the deadline can receive full credit CourseNana.COM

for the base project, but not extensions (max 26/30). You also have eight time travel days you can use during the semester to adjust any deadline, using up to three days on any one assignment (no fractional days). If you want to use your time travel days, email the instructor prior to the deadline for which you plan to use them. If you need to make use of the "stuff happens" clause of the syllabus, contact the instructor as soon as possible to make alternative arrangements. CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
US代写,Northeastern University代写,Real-time Object 2-D Recognition代写,C++代写,CS5330代写,CS 5330代写,Pattern Recognition and Computer Vision代写,US代编,Northeastern University代编,Real-time Object 2-D Recognition代编,C++代编,CS5330代编,CS 5330代编,Pattern Recognition and Computer Vision代编,US代考,Northeastern University代考,Real-time Object 2-D Recognition代考,C++代考,CS5330代考,CS 5330代考,Pattern Recognition and Computer Vision代考,UShelp,Northeastern Universityhelp,Real-time Object 2-D Recognitionhelp,C++help,CS5330help,CS 5330help,Pattern Recognition and Computer Visionhelp,US作业代写,Northeastern University作业代写,Real-time Object 2-D Recognition作业代写,C++作业代写,CS5330作业代写,CS 5330作业代写,Pattern Recognition and Computer Vision作业代写,US编程代写,Northeastern University编程代写,Real-time Object 2-D Recognition编程代写,C++编程代写,CS5330编程代写,CS 5330编程代写,Pattern Recognition and Computer Vision编程代写,USprogramming help,Northeastern Universityprogramming help,Real-time Object 2-D Recognitionprogramming help,C++programming help,CS5330programming help,CS 5330programming help,Pattern Recognition and Computer Visionprogramming help,USassignment help,Northeastern Universityassignment help,Real-time Object 2-D Recognitionassignment help,C++assignment help,CS5330assignment help,CS 5330assignment help,Pattern Recognition and Computer Visionassignment help,USsolution,Northeastern Universitysolution,Real-time Object 2-D Recognitionsolution,C++solution,CS5330solution,CS 5330solution,Pattern Recognition and Computer Visionsolution,