我试图从数组中获取数据,包括DetectedText值和BoundingBox所有四个值。但面临问题。
完整的数据在'$prepared_arr'中,给定数组的结构如下。
print_r ($prepared_arr);// variable having complete data
Array //output of above array used in pipeline
(
[0] => Array
(
[DetectedText] => The number of goals
[BoundingBox] => Array
(
[Width] => 0.66954100131989
[Top] => 0.04796177148819
[Left] => 0.2710283100605
[Height] => 0.072451308369637
)
)
[1] => Array
(
[DetectedText] => in world cup match
[BoundingBox] => Array
(
[Width] => 0.33683118224144
[Top] => 0.12350185215473
[Left] => 0.12564577162266
[Height] => 0.066131837666035
)
)
)
如果我使用 print_r ($prepared_arr[1]) 它只返回索引 1 的完整数据。先感谢您
宝慕林4294392
慕虎7371278