Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elif key == ord('p'):
- mask = gauss
- mask = cv2.scaleAdd(mask, 1/16.0, np.zeros([3, 3], dtype = np.float32))
- imageFloat32 = np.array(gray_image, dtype=np.float32)
- imageFloat32 = cv2.filter2D(imageFloat32, -1, mask, anchor = (1, 1))
- mask = laplacian
- else:
- pass
- # camera.release()
- cv2.destroyAllWindows()
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement