Skip to content

Instantly share code, notes, and snippets.

View kustraslawomir's full-sized avatar
🏠
Working from home

Sławomir Kustra kustraslawomir

🏠
Working from home
View GitHub Profile
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
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,
{
"posts": [
{
"id": 1,
"title": "Post 1"
},
{
"id": 2,
"title": "Post 2"
},
{
"id":1,
"name":"Leanne Graham",
"username":"Bret",
"email":"Sincere@april.biz",
"address":{
"street":"Kulas Light",
"suite":"Apt. 556",
"city":"Gwenborough",
"zipcode":"92998-3874",