Coder Social home page Coder Social logo

cs_iu_proto_1's Introduction

LogScannAR

Introduction

This repository is about the Android AR Timber measureing Application.

We are a CurveSurf team of the 2021 Sungkyunkwan University Industry-Academic Cooperation Project, and we created this measuring app, which is the company's task.

The app distinguishes and recognizes a single piece of wood while filming the cross section of the wood pile in real time, which measures the diameter and number of wood without any tools, visualizes it on-screen, and also provides the ability to manipulate the measured information by capturing.

LogScannAR_image

We use Google AR Core Sdk, CurvSurf FindSurfaceAPI, OpenGL version 2.0 and OpenCV JAVA Sdk module for development.

Development Enviorment

JDK Version and Taget API

minSdkVersion 24

targetSdkVersion 30

buildToolsVersion 30.0.3

Jdk Version 1_8

Implementation

Google AR Core Sdk 1.25.0

org.florescu.android.rangeseekbar:rangeseekbar-library:0.3.0

GLESVersion 0x00020000 (2.0)

OpenCV SDK Module 4.5.2

Requirement

Due to size issue, this repo does not contain OpenCV module.
To build our app, you must manually import OpenCV to :opencv by following steps:

  1. Remove opencv dependencies ( Project Structure > Depenendcies > app > remove opencv)
  2. Same window, Remove opencv module ( ... > opencv > remove module )
  3. Import Opencv sdk using name space :opencv(4.5.2)
  4. Add opencv dependencies

Note that this procedure is only needed after cloning this repo. You do not need to repeat this.

Operation Procedure

  1. Collect Point Cloud by pressing the record button and slowly moving the smartphone left and right.
  2. Fix the collected Point Cloud by pressing the stop button.
  3. Set Seed Point and find Plane by touching the screen.
  4. Send camera image data (format: YUV420_N12) to JNI. (OpenCV codes)
  5. Perform image processing (OpenCV) to get timber contours
    Method I: perform classical image processing (heuristic) method (see cpp/TimberDetector.h for more details)
    Mehtod II: perform hog & svm classifier to find regions that encloses a timber, which are later than converted into circular contours*
  6. Find Bounding Box from each Contour.
  7. Find Ellipse inscribed in Bounding box and derive diameter information.
  8. Display the number of timber and diameter of each timber on the screen.
  9. Move the information at the time to the Result View by pressing the capture button.
  10. Filter specific timber by touching image or adjusting the range of diameter.

(* although when using method II, converting enclosing rectangles to contours is redundant because they're going to be converted back to boxes again, due to maintain compatability with method I, which returns a series of contours, such extra step was employed)

cs_iu_proto_1's People

Contributors

hegria avatar ddophi98 avatar softkau avatar minkyum-e avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ddophi98

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.