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":"[email protected]", | |
"address":{ | |
"street":"Kulas Light", | |
"suite":"Apt. 556", | |
"city":"Gwenborough", | |
"zipcode":"92998-3874", |
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" | |
}, |
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, |
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 |