简体   繁体   中英

How to recognize the box using ARCore?

I want to recognize a certain box (like tissue box) using ARCore, ViroCore (or OpenGL) and OpenCV, and display the width, depth, and height of the box.

  1. Use OpenCV to detect the edge through the sobel filter.

  2. Use OpenCV to recognize the edge detected box and acquire coordinates.

  3. Use ARCore to calculate width, depth, height from acquired coordinates.

  4. Use ARCore and ViroCore (or OpenGL) to display the calculated length.

I can not imagine how to implement No. 2.

Is it possible to recognize the box automatically?
If it is possible, how should it be implemented?

[Development environment]

Android Studio 3.0.1(Not Unity!)
Kotlin(or Java)
Samsung Galaxy S8+

I have a feeling that you didn't do any research. ARCore is not a image recognition tool. So it has nothing to do with your problem. You need to use an image/object recognition tool like OpenCV. About your questions. Yes, it is possible. How to do it? I suggest to read examples, OpenCV has a big library of ready examples like car shape recognition. To recognize a box you can use an edge tracking algorithm

It's not abundantly clear what your intent is, so let me know if this is not what you're looking for. It seems like this tutorial on putting bounding boxes around contours would contain an example of how to fetch the coordinates of the edges.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM