Giter Club home page Giter Club logo

Comments (20)

nuno-faria avatar nuno-faria commented on May 13, 2024

You have to install opencv2, among other dependencies.
You can use pip to acomplish this task: pip install -r requirements.txt

from tiler.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

It says requirement satisfied for all three of them

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

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.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

pip 20.2.4 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

What about the python one?

from tiler.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

Python 2.7.16

I have python 3. Why is it using 2.7.16

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

Are you using pythonor python3to run the commands?

from tiler.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

python

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

Try using python3.

from tiler.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

is there a way i can have it default to python 3

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

What OS are you using? If you are using a Linux-based one you can set an alias.

from tiler.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

MacOS

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

You can try this. Although I would recommend just leaving it as python3, as is common practice.

from tiler.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

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.

nuno-faria avatar nuno-faria commented on May 13, 2024

You need to run the command python3 tiler.py desktop/smexy tiles/tiles/minecraft (replace pythonwith python3).

from tiler.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

ah ok thank you so much. it is just stuck at processing boxes

from tiler.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

Gettting and processing boxes
0%| | 0/5 [00:00<?, ?it/s]

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

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.

RocketNinja15 avatar RocketNinja15 commented on May 13, 2024

what will that do/turn off?

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

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.
imagem

from tiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.