File tree 3 files changed +3
-10
lines changed
3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ python = "^3.8"
9
9
numpy = " ^1.21"
10
10
pyside6 = " ^6.2"
11
11
PyOpenGL = " ^3.1"
12
- pillow = " ^8.3"
13
12
meshio = " ^4.4"
14
13
pypcd4 = " ^0.1"
15
14
pye57 = " ^0.1"
Original file line number Diff line number Diff line change 7
7
from OpenGL .GL import *
8
8
import numpy as np
9
9
from OpenGL .GL import shaders
10
- from PIL import Image as PIL_Image
11
10
from PySide6 .QtWidgets import QLabel , QSpinBox , QCheckBox
12
11
13
12
@@ -108,12 +107,8 @@ def initialize_gl(self):
108
107
glBindVertexArray (0 )
109
108
110
109
def set_data (self , data ):
111
- if isinstance (data , np .ndarray ):
112
- pass
113
- elif isinstance (data , PIL_Image .Image ):
114
- data = np .array (data )
115
- else :
116
- print ("not support image type" )
110
+ if not isinstance (data , np .ndarray ):
111
+ print ("The image type is not supported." )
117
112
raise NotImplementedError
118
113
119
114
if data .ndim == 2 : # Grayscale image
Original file line number Diff line number Diff line change 2
2
3
3
setup (
4
4
name = 'q3dviewer' ,
5
- version = '1.1.2 ' ,
5
+ version = '1.1.3 ' ,
6
6
author = "Liu Yang" ,
7
7
description = "A library designed for quickly deploying a 3D viewer." ,
8
8
long_description = open ("README.md" ).read (),
22
22
'numpy' ,
23
23
'pyside6' ,
24
24
'PyOpenGL' ,
25
- 'pillow' ,
26
25
'meshio' ,
27
26
'pypcd4' ,
28
27
'pye57' ,
You can’t perform that action at this time.
0 commit comments