#this code implements ORB Algorithm to detect features of static reference frame

import cv2
import numpy as np

#reads the model image (reference frame)
img = cv2.imread('model/the-sun-is-also-a-star.jpg',1)

orb = cv2.ORB_create()
# find the keypoints
kp = orb.detect(img, None)
# compute the descriptors
kp, des = orb.compute(img, kp)

# draw only keypoints location,not size and orientation
trained_image = cv2.drawKeypoints(img, kp, img, color=(0,255,0), flags=0)
cv2.imshow('reference frame',trained_image)
cv2.waitKey(0)
87b65c4a9de84119248f58f01e8e1e3ec3623a18
<mask token>

<mask token>
cv2.imshow('reference frame', trained_image)
cv2.waitKey(0)

<mask token>
img = cv2.imread('model/the-sun-is-also-a-star.jpg', 1)
orb = cv2.ORB_create()
kp = orb.detect(img, None)
kp, des = orb.compute(img, kp)
trained_image = cv2.drawKeypoints(img, kp, img, color=(0, 255, 0), flags=0)
cv2.imshow('reference frame', trained_image)
cv2.waitKey(0)

import cv2
import numpy as np
img = cv2.imread('model/the-sun-is-also-a-star.jpg', 1)
orb = cv2.ORB_create()
kp = orb.detect(img, None)
kp, des = orb.compute(img, kp)
trained_image = cv2.drawKeypoints(img, kp, img, color=(0, 255, 0), flags=0)
cv2.imshow('reference frame', trained_image)
cv2.waitKey(0)

#this code implements ORB Algorithm to detect features of static reference frame

import cv2
import numpy as np

#reads the model image (reference frame)
img = cv2.imread('model/the-sun-is-also-a-star.jpg',1)

orb = cv2.ORB_create()
# find the keypoints
kp = orb.detect(img, None)
# compute the descriptors
kp, des = orb.compute(img, kp)

# draw only keypoints location,not size and orientation
trained_image = cv2.drawKeypoints(img, kp, img, color=(0,255,0), flags=0)
cv2.imshow('reference frame',trained_image)
cv2.waitKey(0)