OpenCV/cv2 Functions

Legend:
- β - Support
- πΈ - Support via OpenCV cv2
- β - Not yet implemented
Vidformer-specific Functions
cv2.vidplay(video)- Play a VideoWriter, Spec, or SourceVideoWriter.spec()- Return the Spec of an output videoFrame.numpy()- Return the frame as a numpy arraycv2.setTo- The OpenCVMat.setTofunction (not in cv2)cv2.zeros- Create a black frame (equivalent tonumpy.zeros)
opencv
| Class | Status |
|---|---|
| VideoCapture | β |
| VideoWriter | β |
| VideoWriter_fourcc | β |
| Function | Status |
|---|---|
| imread | β |
| imwrite | β |
opencv.imgproc
Drawing Functions:
| Function | Status |
|---|---|
| arrowedLine | β |
| circle | β |
| clipLine | πΈ |
| drawContours | β |
| drawMarker | β |
| ellipse | β |
| ellipse2Poly | πΈ |
| fillConvexPoly | β |
| fillPoly | β |
| getFontScaleFromHeight | πΈ |
| getTextSize | πΈ |
| line | β |
| polylines | β |
| putText | β |
| rectangle | β |
opencv.core
| Function | Status |
|---|---|
| addWeighted | β |
| copyMakeBorder | β |
| flip | β |
| hconcat | β |
| resize | β |
| rotate | β |
| vconcat | β |
Output Comparison
Vidformerβs cv2 output compared to native OpenCV (source code):
Vidformer:

OpenCV:

Per-pixel Diff:

The differences mainly come from Vidformer using FFmpegβs swscale for resize instead of OpenCVβs resize.