Comments (20)
You have to install opencv2, among other dependencies.
You can use pip
to acomplish this task: pip install -r requirements.txt
from tiler.
It says requirement satisfied for all three of them
from tiler.
Are you using the same versions?
Run pip --version
and python --version
and check if they are the same. You might need to use pip3
/python3
.
from tiler.
pip 20.2.4 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
from tiler.
What about the python one?
from tiler.
Python 2.7.16
I have python 3. Why is it using 2.7.16
from tiler.
Are you using python
or python3
to run the commands?
from tiler.
python
from tiler.
Try using python3
.
from tiler.
is there a way i can have it default to python 3
from tiler.
What OS are you using? If you are using a Linux-based one you can set an alias.
from tiler.
MacOS
from tiler.
You can try this. Although I would recommend just leaving it as python3, as is common practice.
from tiler.
Last login: Mon Nov 16 12:54:36 on ttys000
xr:~ xr$ cd tiler
xr:tiler xr$ pip3 install -r requirements.txt
Collecting opencv-python
Downloading opencv_python-4.4.0.46-cp39-cp39-macosx_10_13_x86_64.whl (52.4 MB)
|████████████████████████████████| 52.4 MB 22 kB/s
Collecting numpy
Downloading numpy-1.19.4-cp39-cp39-macosx_10_9_x86_64.whl (15.4 MB)
|████████████████████████████████| 15.4 MB 1.1 MB/s
Collecting tqdm
Downloading tqdm-4.52.0-py2.py3-none-any.whl (71 kB)
|████████████████████████████████| 71 kB 2.7 MB/s
Installing collected packages: numpy, opencv-python, tqdm
Successfully installed numpy-1.19.4 opencv-python-4.4.0.46 tqdm-4.52.0
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -m pip install --upgrade pip' command.
xr:tiler xr$ python tiler.py desktop/smexy tiles/tiles/minecraft
Traceback (most recent call last):
File "tiler.py", line 1, in
import cv2
ImportError: No module named cv2
xr:tiler xr$
from tiler.
You need to run the command python3 tiler.py desktop/smexy tiles/tiles/minecraft
(replace python
with python3
).
from tiler.
ah ok thank you so much. it is just stuck at processing boxes
from tiler.
Gettting and processing boxes
0%| | 0/5 [00:00<?, ?it/s]
from tiler.
Depending on the resolution of the image and the size of the tiling regions, it can take a while. Since you are using the minecraft tiles I recommend setting PIXEL_SHIFT = None
, in the conf.py
file.
from tiler.
what will that do/turn off?
from tiler.
It will set the tiling region to the same size as the tiles. This means that the image will be tiled in a grid way. You can find more in the README.
from tiler.
Related Issues (20)
- Feature : Use vector image or input and output HOT 1
- "invalid syntax" or "AttributeError: 'Pool' object has no attribute 'starmap'" HOT 1
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 1
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 3
- [Error] - Running tiler.py HOT 1
- TypeError: flip() missing 1 required positional argument: 'axis' HOT 4
- Requesting permission to use some of your Tiles HOT 2
- Config details for example output HOT 8
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 10
- test HOT 2
- Sorry,you've spelt the word wrong. HOT 1
- How do I count the number of each color block used in each picture? HOT 7
- IndexError: tuple index out of range HOT 2
- conf of examples HOT 2
- who can help me about: <python tiler.py path/to/image path/to/tiles_folder/> HOT 3
- Can I batch convert? HOT 2
- It takes a long time HOT 1
- stuck at "Getting and processing boxes" HOT 1
- Not able to create mosaic using human face image (tile image) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiler.