The_Lightmapper icon indicating copy to clipboard operation
The_Lightmapper copied to clipboard

Fix OpenCV instructions for Windows

Open danilofaugusto opened this issue 2 years ago • 7 comments

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

danilofaugusto avatar Apr 10 '22 14:04 danilofaugusto

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

BooneAllred avatar Apr 28 '22 16:04 BooneAllred

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

Naxela avatar May 03 '22 07:05 Naxela

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

211RAvEN211 avatar Jun 16 '22 09:06 211RAvEN211

[211RAvEN211]

Your answer was very helpful in solving my problem.

Thanks for sharing knowledge.

Ha-rang-P avatar Oct 31 '22 04:10 Ha-rang-P

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?

JoseMigual avatar Jan 23 '23 11:01 JoseMigual

@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

Naxela avatar Jan 23 '23 17:01 Naxela

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

JoseMigual avatar Jan 24 '23 04:01 JoseMigual