【发布时间】:2014-03-19 08:37:31
【问题描述】:
我是相机新手,我想使用 android 相机获取原始对象的长度和高度。我尝试了以下代码:
double d22 = angle_of_top_object;
double d12 = Math.tan(Math.toRadians(d22));
Log.d("angle", roll_angle + "");
double d23 = 15 * d12;
tv.setText("Length:"+new DecimalFormat("##.####").format(d23)+" cm ");
Toast.makeText(CameraTestActivity.this, tv.getText().toString(), Toast.LENGTH_SHORT).show();
Log.i("Length", tv.getText().toString());
【问题讨论】:
-
你知道物体离你的镜头有多远吗?
标签: android camera measurement