(blob, dtype, shape=(-1,))
| 91 | return np.getbuffer(array) |
| 92 | |
| 93 | def blob_to_array(blob, dtype, shape=(-1,)): |
| 94 | if IS_PYTHON3: |
| 95 | return np.fromstring(blob, dtype=dtype).reshape(*shape) |
| 96 | else: |
| 97 | return np.frombuffer(blob, dtype=dtype).reshape(*shape) |
| 98 | |
| 99 | class COLMAPDatabase(sqlite3.Connection): |
| 100 |