Naxela / The_Lightmapper

Fast and easy baked GI Lightmaps for Blender and Cycles
GNU General Public License v3.0
707 stars 51 forks source link

Fix OpenCV instructions for Windows #147

Open danilofaugusto opened 2 years ago

danilofaugusto commented 2 years ago

First, thanks for your tool, it's great :)

On the wiki instructions to install the OpenCV, this command installed the OpenCV but the lightmapper didn't identify it was there: python.exe -m pip install opencv-python

To make that work, I've installed this version instead: pip install opencv-contrib-python

Maybe it's just a matter of changing the wiki instructions. Cheers

BooneAllred commented 2 years ago

First, thanks for your tool, it's great :)

On the wiki instructions to install the OpenCV, this command installed the OpenCV but the lightmapper didn't identify it was there: python.exe -m pip install opencv-python

To make that work, I've installed this version instead: pip install opencv-contrib-python

Maybe it's just a matter of changing the wiki instructions. Cheers

I have tried everything to get OpenCV to be recognized inside Blender 3.0 however nothing will. I hoped this command would fix it however it still doesn't recognize it. Any ideas what else I can try?

Nevermind this solution worked for me in Blender 3.0 https://github.com/Naxela/The_Lightmapper/issues/122#issuecomment-914134536

Naxela commented 2 years ago

Hi, and thanks for reporting this!

I'm currently working on an alternative way of installing this with wheel files, although I think this solution (https://github.com/Naxela/The_Lightmapper/issues/122#issuecomment-914134536) should work so far as a temporary solution

211RAvEN211 commented 2 years ago

Just enter these commands in cmd in the same path and the OpenCV libraries will be loaded to the right place by themselves:

python -m pip install --upgrade pip python -m pip install opencv-contrib-python numpy

Ha-rang-P commented 1 year ago

[211RAvEN211]

Your answer was very helpful in solving my problem.

Thanks for sharing knowledge.

JoseMigual commented 1 year ago

It did fixed my problem when in a connected computer. But I am completely lost on how to install OpenCV on an offline computer. Is there even a way to do it?

Naxela commented 1 year ago

@JoseMigual I'm not entirely sure what the best way to do it. Copying the folder directly might work if you're lucky, but I also know some people have managed to installing a wheel (*.whl) file that worked in their case

JoseMigual commented 1 year ago

But a .whl file is not executable, so how do you install it?