- Make sure you have all the dependencies required for using MoonRegistration library natively
- You can use dataset in ./data folder
- datasets are divided into folders for testing different modules
- You can play with demo applications inside Docker Container
- All demo code are store in their folder same as language name
Name | Module | Description |
---|---|---|
MoonDetect_basic.cpp | MoonDetect | A basic usage, easy and quick |
MoonDetect_advance.cpp | MoonDetect | An advanced usage, you can further customize moon image detection |
MoonDetect_c_api.c | MoonDetect | A basic usage of the C abstraction API |
MoonRegistrate_basic.cpp | MoonRegistrate | A basic usage, easy and quick |
MoonRegistrate_advance.cpp | MoonRegistrate | An advanced usage, you can further customize moon image registration |
MoonRegistrate_live_registration.cpp | MoonRegistrate | Running moon image registration on a live video |
MoonRegistrate_c_api.c | MoonRegistrate | A basic usage of the C abstraction API |
To build all the demos:
- create a new directory "build"
mkdir build
- setup cmake (assuming you are in
./demo
folder)
cmake -S . -B build
- build projects (assuming you are in
./demo
folder)
cmake --build
- play with demo applications, they are in
./build/bin
folder
Note that demo need to build with C++ >= 14 because they need the filesystem module
Checkout the CMakeLists.txt file for examples of compiling & linking this library
Name | Module | Description |
---|---|---|
MoonDetect_basic.py | MoonDetect | A basic usage of MoonRegistration Python Wrapper api |
MoonDetect_advance.py | MoonDetect | An advanced usage of MoonRegistration Python Wrapper api, you can customize steps in moon detection |
MoonRegistrate_basic.py | MoonRegistrate | A basic usage of MoonRegistration Python Wrapper api |
MoonRegistrate_advance.py | MoonRegistrate | An advanced usage of MoonRegistration Python Wrapper api, you can customize steps in moon image registration |
MoonRegistrate_live_registration.py | MoonRegistrate | Running moon image registration on a live video |
To play with these demo applications,
- Install MoonRegistration Python wrapper library following its doc.
- Once you have the
MoonRegistration
package in your python environment, simply run:
python3 /path/to/demo_name.py
- You can import the library with:
import MoonRegistration as mr
Name | Module | Description |
---|---|---|
MoonDetect_basic.html | MoonDetect | A basic usage of JavaScript Wrapper api, demonstrating MoonDetect module |
MoonRegistrate_basic.html | MoonRegistrate | A basic usage of JavaScript Wrapper api, demonstrating MoonRegistrate module |
- Build JavaScript library by yourself, or download pre-built library
- Then, simply put the JavaScript module
moon-registration
folder into the demo folderdemo/js
(same level with all the html files). - Launch a web server from
demo/js
folder. Here is an example of using Python3 to launch a web server at port9000
:
cd demo/js
python3 -m http.server 9000
- While playing with demo applications, you can open your browser's devtools panel and take a look at the console output.
- If you encounters "Memory out of bounds" exception, checkout this explanation