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
458 B
23 lines
458 B
2 years ago
|
# -*- coding: utf-8 -*-
|
||
|
"""
|
||
|
@File : flipTest.py
|
||
|
@Author: csc
|
||
|
@Date : 2022/7/18
|
||
|
"""
|
||
|
import cv2
|
||
|
import service.flipService as flipService
|
||
|
|
||
|
img = cv2.imread('./img.jpg')
|
||
|
|
||
|
|
||
|
def test_horizontalFlip():
|
||
|
tmp = flipService.horizontalFlip([img])
|
||
|
tmp = flipService.horizontalFlip([tmp])
|
||
|
assert (img == tmp).all()
|
||
|
|
||
|
|
||
|
def test_verticalFlip():
|
||
|
tmp = flipService.verticalFlip([img])
|
||
|
tmp = flipService.verticalFlip([tmp])
|
||
|
assert (img == tmp).all()
|