You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
414 B

# -*- coding: utf-8 -*-
"""
@File : affineTest.py
@Author: csc
@Date : 2022/7/19
"""
import pytest
import cv2
import service.affineService as affineService
from main import display
img = cv2.imread('./img.jpg')
args = {
'post1': [[50, 50], [200, 50], [50, 200]],
'post2': [[10, 100], [200, 50], [100, 250]]
}
def test_Affine():
res = affineService.affine([img], args)
display('affine', res)