Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
371 views
in Technique[技术] by (71.8m points)

python - Is there an skimage alternative to OpenCV's ArUco library?

I have used OpenCV in the past for a project of mine, and I remember the AruCo library being very useful to specify certain regions, to calibrate the camera, etc.
I am currently working on another project that will get involved with image processing, and I've been working with SciPy in general for data-related tasks. As I will be using SciPy, I've been considering to work with skimage, as it may be more related to the other packages I will use.
Here's the question: I want to use something similar to, if not the same as, the AruCo library for skimage as it will be convenient to work with. Is there such a solution for skimage?

Here's the library in question, AruCo library for OpenCV

question from:https://stackoverflow.com/questions/65861555/is-there-an-skimage-alternative-to-opencvs-aruco-library

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

After some digging around, I've noticed that OpenCV and skimage are compatible with each other to a great extent. The only issue I've encountered so far is with io.imshow() and cv2.imshow() yielding negative-like colors with respect to each other (in Colab, that is).
If that (and other potential minor issues) could be resolved, it is quite easy to just use AruCo with cv2 and use skimage wherever needed. It could take some work, but it is possible.

Here's a great example from the skimage library itself, where the library cv is used to capture webcam feeds. So they are actually compatible.
Note: This is deprecated, so just consider it as a proof. There may be better solutions to use a webcam feed than this (could just use cv2 for it)
https://gist.github.com/stefanv/5160329


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...