ProjectStatisticsController
class ProjectStatisticsController extends Controller
Traits
Methods
bool
isAutomatedRequest(Request|null $request = null)
Determines if the request was done by an automated script (with API token or ajax).
from
Controller
array
getAnnotationStatistics(string $type, callable $restrict)
Compute the annotation statistics of image or video volumes.
show(Request $request, int $id)
Shows the project statistics page.
array
getVolumeStatistics(Project $project, string $type)
Get the statistics of volumes with a certain media type.
Details
in
Controller at line 21
bool
isAutomatedRequest(Request|null $request = null)
Determines if the request was done by an automated script (with API token or ajax).
in
ComputesAnnotationStatistics at line 22
protected array
getAnnotationStatistics(string $type, callable $restrict)
Compute the annotation statistics of image or video volumes.
The statistics are derived from the same join of annotations, annotation labels and files. The join is computed only once (as materialized CTE) and all statistics are fetched with a single query.
at line 23
show(Request $request, int $id)
Shows the project statistics page.
at line 98
protected array
getVolumeStatistics(Project $project, string $type)
Get the statistics of volumes with a certain media type.