Move homography history to video

This commit is contained in:
Ivan Malison 2024-03-23 17:03:11 -06:00
parent 8102a0f40b
commit d3c5979d3e
3 changed files with 125 additions and 123 deletions

View File

@ -56,10 +56,10 @@ export type BankFeaturesGql = {
export type BoundingBoxGql = { export type BoundingBoxGql = {
__typename?: "BoundingBoxGQL"; __typename?: "BoundingBoxGQL";
height: Scalars["Int"]["output"]; height: Scalars["Float"]["output"];
left: Scalars["Int"]["output"]; left: Scalars["Float"]["output"];
top: Scalars["Int"]["output"]; top: Scalars["Float"]["output"];
width: Scalars["Int"]["output"]; width: Scalars["Float"]["output"];
}; };
export type BucketGql = { export type BucketGql = {
@ -162,6 +162,7 @@ export type HomographyInfoGql = {
__typename?: "HomographyInfoGQL"; __typename?: "HomographyInfoGQL";
crop: BoundingBoxGql; crop: BoundingBoxGql;
destPoints: PocketPointsGql; destPoints: PocketPointsGql;
frameIndex: Scalars["Int"]["output"];
pockets: Array<BoundingBoxGql>; pockets: Array<BoundingBoxGql>;
sourcePoints: PocketPointsGql; sourcePoints: PocketPointsGql;
}; };
@ -368,7 +369,6 @@ export type UploadStreamGql = {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
createdAt: Scalars["DateTime"]["output"]; createdAt: Scalars["DateTime"]["output"];
errors: Array<StreamErrorGql>; errors: Array<StreamErrorGql>;
homographyHistory: Array<HomographyInfoGql>;
id: Scalars["ID"]["output"]; id: Scalars["ID"]["output"];
isCompleted: Scalars["Boolean"]["output"]; isCompleted: Scalars["Boolean"]["output"];
linksRequested: Scalars["Int"]["output"]; linksRequested: Scalars["Int"]["output"];
@ -420,6 +420,7 @@ export type VideoGql = {
elapsedTime?: Maybe<Scalars["Float"]["output"]>; elapsedTime?: Maybe<Scalars["Float"]["output"]>;
endTime?: Maybe<Scalars["DateTime"]["output"]>; endTime?: Maybe<Scalars["DateTime"]["output"]>;
framesPerSecond: Scalars["Int"]["output"]; framesPerSecond: Scalars["Int"]["output"];
homographyHistory: Array<HomographyInfoGql>;
id: Scalars["Int"]["output"]; id: Scalars["Int"]["output"];
makePercentage: Scalars["Float"]["output"]; makePercentage: Scalars["Float"]["output"];
medianRun?: Maybe<Scalars["Float"]["output"]>; medianRun?: Maybe<Scalars["Float"]["output"]>;
@ -659,11 +660,6 @@ export type GetStreamMonitoringDetailsQuery = {
totalShots: number; totalShots: number;
makePercentage: number; makePercentage: number;
elapsedTime?: number | null; elapsedTime?: number | null;
stream?: {
__typename?: "UploadStreamGQL";
linksRequested: number;
uploadsCompleted: number;
segmentProcessingCursor: number;
homographyHistory: Array<{ homographyHistory: Array<{
__typename?: "HomographyInfoGQL"; __typename?: "HomographyInfoGQL";
crop: { crop: {
@ -690,6 +686,11 @@ export type GetStreamMonitoringDetailsQuery = {
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number }; bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
}; };
}>; }>;
stream?: {
__typename?: "UploadStreamGQL";
linksRequested: number;
uploadsCompleted: number;
segmentProcessingCursor: number;
} | null; } | null;
}; };
}; };
@ -1399,7 +1400,6 @@ export const GetStreamMonitoringDetailsDocument = gql`
totalShots totalShots
makePercentage makePercentage
elapsedTime elapsedTime
stream {
homographyHistory { homographyHistory {
crop { crop {
left left
@ -1440,6 +1440,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
} }
} }
} }
stream {
linksRequested linksRequested
uploadsCompleted uploadsCompleted
segmentProcessingCursor segmentProcessingCursor

View File

@ -4,7 +4,6 @@ query GetStreamMonitoringDetails($videoId: Int!) {
totalShots totalShots
makePercentage makePercentage
elapsedTime elapsedTime
stream {
homographyHistory { homographyHistory {
crop { crop {
left left
@ -45,6 +44,7 @@ query GetStreamMonitoringDetails($videoId: Int!) {
} }
} }
} }
stream {
linksRequested linksRequested
uploadsCompleted uploadsCompleted
segmentProcessingCursor segmentProcessingCursor

View File

@ -156,6 +156,7 @@ type VideoGQL {
framesPerSecond: Int! framesPerSecond: Int!
stream: UploadStreamGQL stream: UploadStreamGQL
tags: [VideoTag!]! tags: [VideoTag!]!
homographyHistory: [HomographyInfoGQL!]!
} }
type ShotGQL { type ShotGQL {
@ -221,13 +222,26 @@ type UploadStreamGQL {
uploadsCompleted: Int! uploadsCompleted: Int!
segmentProcessingCursor: Int! segmentProcessingCursor: Int!
isCompleted: Boolean! isCompleted: Boolean!
homographyHistory: [HomographyInfoGQL!]!
errors: [StreamErrorGQL!]! errors: [StreamErrorGQL!]!
createdAt: DateTime! createdAt: DateTime!
updatedAt: DateTime! updatedAt: DateTime!
} }
type StreamErrorGQL {
message: String!
}
type VideoTag {
tagClasses: [VideoTagClass!]!
name: String!
}
type VideoTagClass {
name: String!
}
type HomographyInfoGQL { type HomographyInfoGQL {
frameIndex: Int!
crop: BoundingBoxGQL! crop: BoundingBoxGQL!
pockets: [BoundingBoxGQL!]! pockets: [BoundingBoxGQL!]!
sourcePoints: PocketPointsGQL! sourcePoints: PocketPointsGQL!
@ -235,10 +249,10 @@ type HomographyInfoGQL {
} }
type BoundingBoxGQL { type BoundingBoxGQL {
left: Int! left: Float!
top: Int! top: Float!
width: Int! width: Float!
height: Int! height: Float!
} }
type PocketPointsGQL { type PocketPointsGQL {
@ -255,19 +269,6 @@ type IntPoint2D {
y: Int! y: Int!
} }
type StreamErrorGQL {
message: String!
}
type VideoTag {
tagClasses: [VideoTagClass!]!
name: String!
}
type VideoTagClass {
name: String!
}
type BucketSetGQL { type BucketSetGQL {
keyName: String! keyName: String!
feature: String! feature: String!