I am using python and capturing video using OpenCV. I want to find coordinates position and orientation of object and some coordinates of edge, so I can find the equation of curve of edge.
Are you using any kind of optical tracking marker? I believe it will be much much easier to do object tracking if you have a marker attached to it. You could try using ArUco markers, which are from OpenCV. Here is a tutorial for using them: https://aliyasineser.medium.com/aruco-marker-tracking-with-opencv-8cb844c26628
Here is a tutorial for OpenCV on getting orientations of objects from an image: https://automaticaddison.com/how-to-determine-the-orientation-of-an-object-using-opencv/