Conversation
- added test also for ColorSpace
|
I would test the initTracker function in this way: // other headers
#include <opencv2/imgcodecs.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/opencv.hpp>
// other tests...
TEST(WebARKitTest, InitTrackerTest) {
// Create a WebARKitManager object
webarkit::WebARKitManager manager;
// Init the manager with the Akaze tracker
manager.initialiseBase(webarkit::TRACKER_TYPE::AKAZE_TRACKER);
// Load the test image
cv::Mat image = cv::imread("pinball.jpg");
int width = image.cols;
int height = image.rows;
unsigned char* data = image.data;
// Check if initTracker returns sucessfully
EXPECT_TRUE(manager.initTracker(data, width, height));
}but i need to provide the necessary opencv headers and libs with openc-em. I will do this first. |
|
i didn't include the openjpeg static lib in the final opencv-em compilation, i will fix this soon. PostEdit: no it's included even if |
- new opencv-em version 0.1.3
|
with the latest commit tests are passing but cv::imread function can not read the jpeg image, so i developed a workaround providing a fake image only to test the initTracker function. Obviously it's not correct but it's enough to pass this test. then, configure your project with the same prefix: in your cmake files, simply use Another solution is to develop our Docker image with all inside... |
- test for manager shutdown
More gtest to WebARKit code...
List of tests implemented:
webarkit::TRACKER_TYPEandwebarkit::ColorSpace)WebARKitConfig.cppmanager.initialiseBasefor all types of trackers.manager.initTracker(with the Akaze tracker)manager.shutdown