feat(camera): 将照片拍摄分辨率从480P提升至4K
- 在 InspectionActivity 中将拍照分辨率从 RESOLUTION_480P 更改为 RESOLUTION_4K - 在 InspectionResultActivity 中将拍照分辨率从 RESOLUTION_480P 更改为 RESOLUTION_4K - 在 SprayingActivity 中将拍照分辨率从 RESOLUTION_480P 更改为 RESOLUTION_4K - 在 SprayingOCRActivity 中将拍照分辨率从 RESOLUTION_480P 更改为 RESOLUTION_4K - 在 SprayingResultActivity 中将拍照分辨率从 RESOLUTION_480P 更改为 RESOLUTION_4K
这个提交包含在:
父节点
1f9edb54ed
当前提交
5a4139847b
@ -106,7 +106,7 @@ class InspectionActivity :
|
|||||||
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES),
|
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES),
|
||||||
fileName
|
fileName
|
||||||
)
|
)
|
||||||
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_480P, file.absolutePath)
|
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_4K, file.absolutePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
private val photoCallbackId = UUID.randomUUID().toString()
|
private val photoCallbackId = UUID.randomUUID().toString()
|
||||||
|
|||||||
@ -172,7 +172,7 @@ class InspectionResultActivity :
|
|||||||
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES),
|
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES),
|
||||||
fileName
|
fileName
|
||||||
)
|
)
|
||||||
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_480P, file.absolutePath)
|
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_4K, file.absolutePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
private val photoCallbackId = UUID.randomUUID().toString()
|
private val photoCallbackId = UUID.randomUUID().toString()
|
||||||
|
|||||||
@ -62,7 +62,7 @@ class SprayingActivity :
|
|||||||
val publicPicturesDir =
|
val publicPicturesDir =
|
||||||
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
|
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
|
||||||
val file = File(publicPicturesDir, fileName)
|
val file = File(publicPicturesDir, fileName)
|
||||||
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_480P, file.absolutePath)
|
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_4K, file.absolutePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
private val photoCallbackId = UUID.randomUUID().toString()
|
private val photoCallbackId = UUID.randomUUID().toString()
|
||||||
|
|||||||
@ -61,7 +61,7 @@ class SprayingOCRActivity :
|
|||||||
val fileName = "test_${System.currentTimeMillis()}.png"
|
val fileName = "test_${System.currentTimeMillis()}.png"
|
||||||
val publicPicturesDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
|
val publicPicturesDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
|
||||||
val file = File(publicPicturesDir, fileName)
|
val file = File(publicPicturesDir, fileName)
|
||||||
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_480P, file.absolutePath)
|
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_4K, file.absolutePath)
|
||||||
}
|
}
|
||||||
private val photoCallbackId = UUID.randomUUID().toString()
|
private val photoCallbackId = UUID.randomUUID().toString()
|
||||||
private val imageDecodeExecutor = Executors.newSingleThreadExecutor()
|
private val imageDecodeExecutor = Executors.newSingleThreadExecutor()
|
||||||
|
|||||||
@ -121,7 +121,7 @@ class SprayingResultActivity :
|
|||||||
val fileName = "test_${System.currentTimeMillis()}.png"
|
val fileName = "test_${System.currentTimeMillis()}.png"
|
||||||
val publicPicturesDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
|
val publicPicturesDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
|
||||||
val file = File(publicPicturesDir, fileName)
|
val file = File(publicPicturesDir, fileName)
|
||||||
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_480P, file.absolutePath)
|
GlassMediaServiceHelper.takePhoto(PhotoResolution.RESOLUTION_4K, file.absolutePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun rest() {
|
fun rest() {
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户