View gist:d92cbca2abdb6bf3c26a38ff0717a973
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ultron.ar.presentation.argameplay | |
import android.Manifest | |
import android.os.Bundle | |
import android.view.View | |
import android.widget.TextView | |
import com.domain.model.jobdetails.JobDetailsDomain | |
import com.domain.model.route.Type | |
import com.domain.usecase.games.SubmitAnswerUseCase | |
import com.google.ar.core.Config |
View gist:734948e95edda3368425d13cceb3dcc9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun initializeDetector(modelFile: File, labels: List<String>) { | |
val detector = TensorObjectDetector.create( | |
interpreter = Interpreter(modelFile), | |
labels = labels) | |
cameraView.addFrameProcessor { frame -> | |
when (frame.dataClass) { | |
ByteArray::class.java -> { | |
val bitmap = BitmapUtils.getBitmapFromFrame( | |
frame = frame, |
View db.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"posts": [ | |
{ | |
"id": 1, | |
"title": "Post 1" | |
}, | |
{ | |
"id": 2, | |
"title": "Post 2" | |
}, |
View mockLogin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id":1, | |
"name":"Leanne Graham", | |
"username":"Bret", | |
"email":"Sincere@april.biz", | |
"address":{ | |
"street":"Kulas Light", | |
"suite":"Apt. 556", | |
"city":"Gwenborough", | |
"zipcode":"92998-3874", |