Skip to content

Commit

Permalink
fix polygon order
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang0jhon committed Nov 27, 2019
1 parent 4fd2628 commit b416645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test(args):
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
height, width = image.shape[:2]

points = [[0,0], [0,width-1], [height-1,width-1], [height-1,0]]
points = [[0,0], [width-1,0], [width-1,height-1], [0,height-1]]

image = preprocess(image, points, cfg.image_size)
image = np.expand_dims(image, 0)
Expand All @@ -119,4 +119,4 @@ def test(args):

args = parser.parse_args()
test(args)


0 comments on commit b416645

Please sign in to comment.