webarkit / WebARKitLib

The source code of WebARKit
Other
18 stars 8 forks source link

WebARKit development #21

Open kalwalt opened 10 months ago

kalwalt commented 10 months ago

I will make the point of the WebARKit library. Actually it is in the dev branch of this repository, before merging in master and to be officially released it is required to add some important features. One of the most important feature to add is a better pose matrix solution. We receive the pose matrix from the knn matcher but it needs to be evaluated with a PnP solver. This require a camera matrix for the PnP pose computation, that for now our solution is lacking, and after that use a Kalman filter (or other filter) to stabilize the 6DOF tracking result. Adding to this: in order to utilize the pose matrix we need a set of functions for GL graphics, to convert the pose matrix as Right hand GL matrix and also a function to compute the Camera Projection matrix. Summing up, we need to develop:

kalwalt commented 10 months ago

A new WebARKitCamera class was created in PR #22, before procede to the second task, i considered that it is required to create a class that handle the "pattern", the image that is tracked. This class should contain the Point2d and Point3d data and of course keypoints and descriptors as well. this was implemented in OCVT artoolkitx but i saw also in another code projects.

kalwalt commented 4 months ago

I merged the PnP related code with #23 but it think there is something wrong with buildOpticalFlowPyramid and calcOpticalFlowPyrLK. Probably the steps are not in the right sequence and this may produce weird results, in computing homography and pose matrix.