Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import cv2
  2. import numpy as np
  3.  
  4. imageName = "map.tif"
  5.  
  6. imagem = cv2.imread(imageName)
  7. hsv = cv2.cvtColor(imagem, cv2.COLOR_BGR2HSV)
  8.  
  9. OpenCV Error: Assertion failed ((scn == 3 || scn == 4) && (depth == CV_8U || depth == CV_32F)) in cvtColor, file /build/opencv-SviWsf/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp, line 3959
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement