Skip to content

VinhDevNguyen/CV_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Augmented Reality with OpenCV

Augmented reality card based application with Python, numpy, OpenCV and Gooey

Usage

Install dependencies

    pip3 install -r requirements.txt

How to run the program

    python src/ar_main.py

Due to the usage of Gooey Parser we can't pass arguments directly to the CLI but if you want to do that then must replace custom_args() in ar_main.py with default_args().

Build executable

Performance issue and large file when generate executable files with PyInstaller (~300MB) we would rather you compile the program for better experience.

Command line arguments

  • --rectangle, -r: Draws the projection of the reference surface on the video frame as a green rectangle.
  • --matches, -m: Draws matches between reference surface and video frame.
  • --number_matches, -nm: Set number of minimum matches to consider recognition valid.
  • --object, -obj: Choose model to draw on surface.
  • --surface, -s: Choose surface which model will be drawn on.

Troubleshooting

If you get the message:

Unable to capture video

Check if your camera working correctly and simply restart the program.

References

My project is based on https://github.com/juangallostra/augmented-reality

:) really appreciate & special thanks to the original author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors