resolver

package
v0.0.0-...-c84b60a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsArgs

type AnalyticsArgs struct {
	SessionID *string
	Keyword   *string
}

type AnalyticsResolver

type AnalyticsResolver struct {
	Analytics models.Analytics
}

func (*AnalyticsResolver) BlockLevel

func (a *AnalyticsResolver) BlockLevel(ctx context.Context) ([]*BlockLevelResolver, error)

func (*AnalyticsResolver) DebugInfo

func (a *AnalyticsResolver) DebugInfo(ctx context.Context) (string, error)

func (*AnalyticsResolver) Id

func (*AnalyticsResolver) Keyword

func (a *AnalyticsResolver) Keyword(ctx context.Context) (string, error)

func (*AnalyticsResolver) MetaInfo

func (*AnalyticsResolver) SecondLevel

func (a *AnalyticsResolver) SecondLevel(ctx context.Context) ([]*SecondLevelResolver, error)

func (*AnalyticsResolver) SessionLevel

func (a *AnalyticsResolver) SessionLevel(ctx context.Context) (*SessionLevelResolver, error)

type AudioFrameResolver

type AudioFrameResolver struct {
	Frame models.AudioFrame
}

AudioFrameResolver resolves query-agnostic AudioFrame.

func (*AudioFrameResolver) Audio

Audio extracts Audio field from given AudioFrame resolver.

func (*AudioFrameResolver) Channel

func (f *AudioFrameResolver) Channel(ctx context.Context) (string, error)

Channel extracts Channel field from given AudioFrame resolver.

func (*AudioFrameResolver) FrameNumber

func (f *AudioFrameResolver) FrameNumber(ctx context.Context) (int32, error)

FrameNumber extracts FrameNumber field from given AudioFrame resolver.

func (*AudioFrameResolver) Timestamp

func (f *AudioFrameResolver) Timestamp(ctx context.Context) (*TimeResolver, error)

Timestamp extracts Timestamp field from given AudioFrame resolver.

type AudioInferenceResolver

type AudioInferenceResolver struct {
	Inference models.AudioInference
}

AudioInferenceResolver resolves query-agnostic AudioInference model.

func (*AudioInferenceResolver) Speech

Speech extracts Speech field from given AudioInference resolver.

type AudioResolver

type AudioResolver struct {
	Audio models.Audio
}

AudioResolver resolves query-agnostic Audio model.

func (*AudioResolver) Amplitude

func (a *AudioResolver) Amplitude(ctx context.Context) (float64, error)

Amplitude extracts Amplitude field from given Audio resolver.

func (*AudioResolver) Inference

Inference extracts inference object field from given Audio resolver.

func (*AudioResolver) MelFrequency

func (a *AudioResolver) MelFrequency(ctx context.Context) ([][]float64, error)

MelFrequency extracts MelFrequency field from given Audio resolver.

func (*AudioResolver) MfccFeatures

func (a *AudioResolver) MfccFeatures(ctx context.Context) ([][]float64, error)

func (*AudioResolver) PolyFeatures

func (a *AudioResolver) PolyFeatures(ctx context.Context) ([][]float64, error)

type BlockAudioAnalysisResolver

type BlockAudioAnalysisResolver struct {
	Audio models.BlockAudioAnalysis
}

func (*BlockAudioAnalysisResolver) ObjectFraction

func (s *BlockAudioAnalysisResolver) ObjectFraction(ctx context.Context) (*float64, error)

func (*BlockAudioAnalysisResolver) SilenceFraction

func (s *BlockAudioAnalysisResolver) SilenceFraction(ctx context.Context) (*float64, error)

func (*BlockAudioAnalysisResolver) SingleSpeakerFraction

func (s *BlockAudioAnalysisResolver) SingleSpeakerFraction(ctx context.Context) (*float64, error)

func (*BlockAudioAnalysisResolver) TeacherActivityFraction

func (s *BlockAudioAnalysisResolver) TeacherActivityFraction(ctx context.Context) (*[]*float64, error)

func (*BlockAudioAnalysisResolver) TeacherActivityTimes

func (s *BlockAudioAnalysisResolver) TeacherActivityTimes(ctx context.Context) (*[][][]*int32, error)

func (*BlockAudioAnalysisResolver) TeacherActivityType

func (s *BlockAudioAnalysisResolver) TeacherActivityType(ctx context.Context) (*[]*string, error)

func (*BlockAudioAnalysisResolver) TeacherOnlyFraction

func (s *BlockAudioAnalysisResolver) TeacherOnlyFraction(ctx context.Context) (*float64, error)

type BlockGazeAnalysisResolver

type BlockGazeAnalysisResolver struct {
	Gaze models.BlockGazeAnalysis
}

func (*BlockGazeAnalysisResolver) Instructor

func (*BlockGazeAnalysisResolver) Student

type BlockInfoResolver

type BlockInfoResolver struct {
	BlockInfo models.BlockInfo
}

func (*BlockInfoResolver) BlockLength

func (s *BlockInfoResolver) BlockLength(ctx context.Context) (int32, error)

func (*BlockInfoResolver) Id

func (*BlockInfoResolver) UnixStartSeconds

func (s *BlockInfoResolver) UnixStartSeconds(ctx context.Context) (int32, error)

type BlockInstructorGazeResolver

type BlockInstructorGazeResolver struct {
	Instructor models.BlockInstructorGaze
}

func (*BlockInstructorGazeResolver) GazeCategory

func (s *BlockInstructorGazeResolver) GazeCategory(ctx context.Context) (*string, error)

func (*BlockInstructorGazeResolver) LongestCategoryFraction

func (s *BlockInstructorGazeResolver) LongestCategoryFraction(ctx context.Context) (*[]*float64, error)

func (*BlockInstructorGazeResolver) PitchMean

func (*BlockInstructorGazeResolver) PitchVariance

func (s *BlockInstructorGazeResolver) PitchVariance(ctx context.Context) (*float64, error)

func (*BlockInstructorGazeResolver) PrincipalGaze

func (*BlockInstructorGazeResolver) RollMean

func (*BlockInstructorGazeResolver) RollVariance

func (s *BlockInstructorGazeResolver) RollVariance(ctx context.Context) (*float64, error)

func (*BlockInstructorGazeResolver) TotalCategoryFraction

func (s *BlockInstructorGazeResolver) TotalCategoryFraction(ctx context.Context) (*[]*float64, error)

func (*BlockInstructorGazeResolver) YawMean

func (*BlockInstructorGazeResolver) YawVariance

func (s *BlockInstructorGazeResolver) YawVariance(ctx context.Context) (*float64, error)

type BlockInstructorLocationResolver

type BlockInstructorLocationResolver struct {
	Instructor models.BlockInstructorLocation
}

func (*BlockInstructorLocationResolver) CategoryFraction

func (s *BlockInstructorLocationResolver) CategoryFraction(ctx context.Context) (*[]*float64, error)

func (*BlockInstructorLocationResolver) LocationCategory

func (s *BlockInstructorLocationResolver) LocationCategory(ctx context.Context) (*[]*string, error)

func (*BlockInstructorLocationResolver) LongestBoardFraction

func (s *BlockInstructorLocationResolver) LongestBoardFraction(ctx context.Context) (*float64, error)

func (*BlockInstructorLocationResolver) LongestCategoryFraction

func (s *BlockInstructorLocationResolver) LongestCategoryFraction(ctx context.Context) (*[]*float64, error)

func (*BlockInstructorLocationResolver) LongestMovingFraction

func (s *BlockInstructorLocationResolver) LongestMovingFraction(ctx context.Context) (*float64, error)

func (*BlockInstructorLocationResolver) LongestPodiumFraction

func (s *BlockInstructorLocationResolver) LongestPodiumFraction(ctx context.Context) (*float64, error)

func (*BlockInstructorLocationResolver) LongestStayFraction

func (s *BlockInstructorLocationResolver) LongestStayFraction(ctx context.Context) (*float64, error)

func (*BlockInstructorLocationResolver) PrincipalMovement

func (*BlockInstructorLocationResolver) StayAtLocation

func (s *BlockInstructorLocationResolver) StayAtLocation(ctx context.Context) (*[][]*int32, error)

func (*BlockInstructorLocationResolver) StayAtLocationTimes

func (s *BlockInstructorLocationResolver) StayAtLocationTimes(ctx context.Context) (*[][]*float64, error)

func (*BlockInstructorLocationResolver) TotalBoardFraction

func (s *BlockInstructorLocationResolver) TotalBoardFraction(ctx context.Context) (*float64, error)

func (*BlockInstructorLocationResolver) TotalMovingFraction

func (s *BlockInstructorLocationResolver) TotalMovingFraction(ctx context.Context) (*float64, error)

func (*BlockInstructorLocationResolver) TotalPodiumFraction

func (s *BlockInstructorLocationResolver) TotalPodiumFraction(ctx context.Context) (*float64, error)

type BlockInstructorPostureResolver

type BlockInstructorPostureResolver struct {
	Instructor models.BlockInstructorPosture
}

func (*BlockInstructorPostureResolver) HandPostureCategory

func (s *BlockInstructorPostureResolver) HandPostureCategory(ctx context.Context) (*[]*string, error)

func (*BlockInstructorPostureResolver) HandPostureCategoryFraction

func (s *BlockInstructorPostureResolver) HandPostureCategoryFraction(ctx context.Context) (*[]*float64, error)

func (*BlockInstructorPostureResolver) HeadPostureCategory

func (s *BlockInstructorPostureResolver) HeadPostureCategory(ctx context.Context) (*[]*string, error)

func (*BlockInstructorPostureResolver) HeadPostureCategoryFraction

func (s *BlockInstructorPostureResolver) HeadPostureCategoryFraction(ctx context.Context) (*[]*float64, error)

func (*BlockInstructorPostureResolver) MeanCentroidFaceDistance

func (s *BlockInstructorPostureResolver) MeanCentroidFaceDistance(ctx context.Context) (*float64, error)

func (*BlockInstructorPostureResolver) StandingFraction

func (s *BlockInstructorPostureResolver) StandingFraction(ctx context.Context) (*float64, error)

func (*BlockInstructorPostureResolver) VarCentroidFaceDistance

func (s *BlockInstructorPostureResolver) VarCentroidFaceDistance(ctx context.Context) (*float64, error)

type BlockLevelResolver

type BlockLevelResolver struct {
	BlockLevel models.BlockLevel
}

func (*BlockLevelResolver) Audio

func (*BlockLevelResolver) BlockInfo

func (*BlockLevelResolver) CrossModal

func (s *BlockLevelResolver) CrossModal(ctx context.Context) (*string, error)

func (*BlockLevelResolver) Gaze

func (*BlockLevelResolver) Location

func (*BlockLevelResolver) Posture

type BlockLocationAnalysisResolver

type BlockLocationAnalysisResolver struct {
	Location models.BlockLocationAnalysis
}

func (*BlockLocationAnalysisResolver) Instructor

func (*BlockLocationAnalysisResolver) Student

type BlockPostureAnalysisResolver

type BlockPostureAnalysisResolver struct {
	Posture models.BlockPostureAnalysis
}

func (*BlockPostureAnalysisResolver) Instructor

func (*BlockPostureAnalysisResolver) Student

type BlockStudentGazeResolver

type BlockStudentGazeResolver struct {
	Student models.BlockStudentGaze
}

func (*BlockStudentGazeResolver) DirectionMean

func (s *BlockStudentGazeResolver) DirectionMean(ctx context.Context) (*[][]*float64, error)

func (*BlockStudentGazeResolver) DirectionVariation

func (s *BlockStudentGazeResolver) DirectionVariation(ctx context.Context) (*[][]*float64, error)

func (*BlockStudentGazeResolver) GazeCategory

func (s *BlockStudentGazeResolver) GazeCategory(ctx context.Context) (*[]*string, error)

func (*BlockStudentGazeResolver) Id

func (*BlockStudentGazeResolver) LongestCategoryFraction

func (s *BlockStudentGazeResolver) LongestCategoryFraction(ctx context.Context) (*[][]*float64, error)

func (*BlockStudentGazeResolver) LookingDownFraction

func (s *BlockStudentGazeResolver) LookingDownFraction(ctx context.Context) (*[]*float64, error)

func (*BlockStudentGazeResolver) LookingFrontFraction

func (s *BlockStudentGazeResolver) LookingFrontFraction(ctx context.Context) (*[]*float64, error)

func (*BlockStudentGazeResolver) NumOccurencesInBlock

func (s *BlockStudentGazeResolver) NumOccurencesInBlock(ctx context.Context) (*[]*int32, error)

func (*BlockStudentGazeResolver) PitchMean

func (s *BlockStudentGazeResolver) PitchMean(ctx context.Context) (*[]*float64, error)

func (*BlockStudentGazeResolver) PitchVariance

func (s *BlockStudentGazeResolver) PitchVariance(ctx context.Context) (*[]*float64, error)

func (*BlockStudentGazeResolver) RollMean

func (s *BlockStudentGazeResolver) RollMean(ctx context.Context) (*[]*float64, error)

func (*BlockStudentGazeResolver) RollVariance

func (s *BlockStudentGazeResolver) RollVariance(ctx context.Context) (*[]*float64, error)

func (*BlockStudentGazeResolver) TotalCategoryFraction

func (s *BlockStudentGazeResolver) TotalCategoryFraction(ctx context.Context) (*[][]*float64, error)

func (*BlockStudentGazeResolver) TowardsInstructorFraction

func (s *BlockStudentGazeResolver) TowardsInstructorFraction(ctx context.Context) (*[]*float64, error)

func (*BlockStudentGazeResolver) YawMean

func (s *BlockStudentGazeResolver) YawMean(ctx context.Context) (*[]*float64, error)

func (*BlockStudentGazeResolver) YawVariance

func (s *BlockStudentGazeResolver) YawVariance(ctx context.Context) (*[]*float64, error)

type BlockStudentLocationResolver

type BlockStudentLocationResolver struct {
	Student models.BlockStudentLocation
}

func (*BlockStudentLocationResolver) ClusterCenters

func (s *BlockStudentLocationResolver) ClusterCenters(ctx context.Context) (*[][]*float64, error)

func (*BlockStudentLocationResolver) ClusterCount

func (s *BlockStudentLocationResolver) ClusterCount(ctx context.Context) (*int32, error)

func (*BlockStudentLocationResolver) ClusterStudentIds

func (s *BlockStudentLocationResolver) ClusterStudentIds(ctx context.Context) (*[][]*int32, error)

func (*BlockStudentLocationResolver) Id

func (*BlockStudentLocationResolver) IsSettled

func (s *BlockStudentLocationResolver) IsSettled(ctx context.Context) (*[]*bool, error)

func (*BlockStudentLocationResolver) MaxBodyEntropy

func (s *BlockStudentLocationResolver) MaxBodyEntropy(ctx context.Context) (*[]*float64, error)

func (*BlockStudentLocationResolver) MaxHeadEntropy

func (s *BlockStudentLocationResolver) MaxHeadEntropy(ctx context.Context) (*[]*float64, error)

func (*BlockStudentLocationResolver) MeanBodyEntropy

func (s *BlockStudentLocationResolver) MeanBodyEntropy(ctx context.Context) (*[]*float64, error)

func (*BlockStudentLocationResolver) MeanHeadEntropy

func (s *BlockStudentLocationResolver) MeanHeadEntropy(ctx context.Context) (*[]*float64, error)

func (*BlockStudentLocationResolver) NumOccurrencesInBlock

func (s *BlockStudentLocationResolver) NumOccurrencesInBlock(ctx context.Context) (*[]*int32, error)

func (*BlockStudentLocationResolver) SeatingArrangement

func (s *BlockStudentLocationResolver) SeatingArrangement(ctx context.Context) (*string, error)

func (*BlockStudentLocationResolver) StayCoordinates

func (s *BlockStudentLocationResolver) StayCoordinates(ctx context.Context) (*[][]*int32, error)

func (*BlockStudentLocationResolver) VarBodyEntropy

func (s *BlockStudentLocationResolver) VarBodyEntropy(ctx context.Context) (*[]*float64, error)

func (*BlockStudentLocationResolver) VarHeadEntropy

func (s *BlockStudentLocationResolver) VarHeadEntropy(ctx context.Context) (*[]*float64, error)

type BlockStudentPostureResolver

type BlockStudentPostureResolver struct {
	Student models.BlockStudentPosture
}

func (*BlockStudentPostureResolver) BodyPostureCategory

func (s *BlockStudentPostureResolver) BodyPostureCategory(ctx context.Context) (*[]*string, error)

func (*BlockStudentPostureResolver) BodyPostureCategoryFraction

func (s *BlockStudentPostureResolver) BodyPostureCategoryFraction(ctx context.Context) (*[][]*float64, error)

func (*BlockStudentPostureResolver) HandPostureCategory

func (s *BlockStudentPostureResolver) HandPostureCategory(ctx context.Context) (*[]*string, error)

func (*BlockStudentPostureResolver) HandPostureCategoryFraction

func (s *BlockStudentPostureResolver) HandPostureCategoryFraction(ctx context.Context) (*[][]*float64, error)

func (*BlockStudentPostureResolver) HeadPostureCategory

func (s *BlockStudentPostureResolver) HeadPostureCategory(ctx context.Context) (*[]*string, error)

func (*BlockStudentPostureResolver) HeadPostureCategoryFraction

func (s *BlockStudentPostureResolver) HeadPostureCategoryFraction(ctx context.Context) (*[][]*float64, error)

func (*BlockStudentPostureResolver) Id

func (*BlockStudentPostureResolver) IsStandingFraction

func (s *BlockStudentPostureResolver) IsStandingFraction(ctx context.Context) (*[]*bool, error)

func (*BlockStudentPostureResolver) NumOccurrencesInBlock

func (s *BlockStudentPostureResolver) NumOccurrencesInBlock(ctx context.Context) (*[]*int32, error)

type ClassroomResolver

type ClassroomResolver struct {
	ClassroomMetadata models.Classroom
}

SessionResolver queries database and resolves query-agnostic Session model.

func (*ClassroomResolver) BlackboardBoundary

func (s *ClassroomResolver) BlackboardBoundary(ctx context.Context) ([][]float64, error)

func (*ClassroomResolver) Building

func (s *ClassroomResolver) Building(ctx context.Context) (string, error)

ID extracts Session ID from given Session resolver.

func (*ClassroomResolver) CourseList

func (s *ClassroomResolver) CourseList(ctx context.Context) ([][]string, error)

func (*ClassroomResolver) Dimensions

func (s *ClassroomResolver) Dimensions(ctx context.Context) ([]float64, error)

func (*ClassroomResolver) DimensionsScale

func (s *ClassroomResolver) DimensionsScale(ctx context.Context) (string, error)

func (*ClassroomResolver) Floor

func (s *ClassroomResolver) Floor(ctx context.Context) (string, error)

func (*ClassroomResolver) FrontCameraIP

func (s *ClassroomResolver) FrontCameraIP(ctx context.Context) (string, error)

func (*ClassroomResolver) FrontCameraModel

func (s *ClassroomResolver) FrontCameraModel(ctx context.Context) (string, error)

func (*ClassroomResolver) NumberOfSeats

func (s *ClassroomResolver) NumberOfSeats(ctx context.Context) (int32, error)

func (*ClassroomResolver) NumberOfWindows

func (s *ClassroomResolver) NumberOfWindows(ctx context.Context) (int32, error)

func (*ClassroomResolver) PodiumBoundary

func (s *ClassroomResolver) PodiumBoundary(ctx context.Context) ([][]float64, error)

func (*ClassroomResolver) ProjectorBoundary

func (s *ClassroomResolver) ProjectorBoundary(ctx context.Context) ([][]float64, error)

func (*ClassroomResolver) RearCameraIP

func (s *ClassroomResolver) RearCameraIP(ctx context.Context) (string, error)

func (*ClassroomResolver) RearCameraModel

func (s *ClassroomResolver) RearCameraModel(ctx context.Context) (string, error)

func (*ClassroomResolver) Room

func (s *ClassroomResolver) Room(ctx context.Context) (string, error)

type CourseResolver

type CourseResolver struct {
	CourseMetadata models.Course
}

SessionResolver queries database and resolves query-agnostic Session model.

func (*CourseResolver) ClassID

func (s *CourseResolver) ClassID(ctx context.Context) (string, error)

ID extracts Session ID from given Session resolver.

func (*CourseResolver) InitialEnrollment

func (s *CourseResolver) InitialEnrollment(ctx context.Context) (int32, error)

func (*CourseResolver) Instructors

func (s *CourseResolver) Instructors(ctx context.Context) ([][]string, error)

func (*CourseResolver) LectureType

func (s *CourseResolver) LectureType(ctx context.Context) (string, error)

func (*CourseResolver) Section

func (s *CourseResolver) Section(ctx context.Context) (string, error)

func (*CourseResolver) Semester

func (s *CourseResolver) Semester(ctx context.Context) (string, error)

func (*CourseResolver) TeachingAssistants

func (s *CourseResolver) TeachingAssistants(ctx context.Context) ([][]string, error)

func (*CourseResolver) Year

func (s *CourseResolver) Year(ctx context.Context) (int32, error)

type FaceResolver

type FaceResolver struct {
	Face models.Face
}

FaceResolver resolves query-agnostic Face model.

func (*FaceResolver) BoundingBox

func (f *FaceResolver) BoundingBox(ctx context.Context) (*[][]int32, error)

BoundingBox extracts bounding box of face from given Face resolver.

func (*FaceResolver) MouthOpen

func (f *FaceResolver) MouthOpen(ctx context.Context) (*string, error)

MouthOpen extracts mouth open/close inference from given Face resolver.

func (*FaceResolver) MouthSmile

func (f *FaceResolver) MouthSmile(ctx context.Context) (*string, error)

MouthSmile extracts smile/no-smile inference from given Face resolver.

func (*FaceResolver) Orientation

func (f *FaceResolver) Orientation(Ctx context.Context) (*string, error)

Orientation extracts face orientation front/back inference from given Face resolver.

type FrameArgs

type FrameArgs struct {
	Schema      string
	Channel     string
	FrameNumber *FrameNumberQuery
	Timestamp   *TimestampQuery
}

FrameArgs defines arguments for frame queries.

type FrameNumberQuery

type FrameNumberQuery struct {
	Filters *[]FrameNumberQueryFilter
}

FrameNumberQuery defines aggregated frame number query.

type FrameNumberQueryFilter

type FrameNumberQueryFilter struct {
	Op     string
	Number int32
}

FrameNumberQueryFilter defines filter operator for frame number query.

type HeadResolver

type HeadResolver struct {
	Head models.Head
}

HeadResolver resolves query-agnostic Head model.

func (*HeadResolver) GazeVector

func (h *HeadResolver) GazeVector(ctx context.Context) (*[][]int32, error)

GazeVector extracts gaze vector from given Head resolver.

func (*HeadResolver) Pitch

func (h *HeadResolver) Pitch(ctx context.Context) (float64, error)

Pitch extracts pitch of head from given Head resolver.

func (*HeadResolver) Roll

func (h *HeadResolver) Roll(ctx context.Context) (float64, error)

Roll extracts roll of head from given Head resolver.

func (*HeadResolver) TranslationVector

func (h *HeadResolver) TranslationVector(ctx context.Context) (*[]float64, error)

TranslationVector extracts translation vector from given Head resolver.

func (*HeadResolver) Yaw

func (h *HeadResolver) Yaw(ctx context.Context) (float64, error)

Yaw extracts yaw of head from given Head resolver.

type MetaInfoResolver

type MetaInfoResolver struct {
	MetaInfo models.MetaInfo
}

func (*MetaInfoResolver) AnalysisStartTime

func (m *MetaInfoResolver) AnalysisStartTime(ctx context.Context) (int32, error)

func (*MetaInfoResolver) FailureModules

func (m *MetaInfoResolver) FailureModules(ctx context.Context) ([]string, error)

func (*MetaInfoResolver) ModuleRuntime

func (m *MetaInfoResolver) ModuleRuntime(ctx context.Context) ([]float64, error)

func (*MetaInfoResolver) PipelineVersion

func (m *MetaInfoResolver) PipelineVersion(ctx context.Context) (string, error)

func (*MetaInfoResolver) RunModules

func (m *MetaInfoResolver) RunModules(ctx context.Context) ([]string, error)

func (*MetaInfoResolver) SuccessModules

func (m *MetaInfoResolver) SuccessModules(ctx context.Context) ([]string, error)

func (*MetaInfoResolver) TotalRuntime

func (m *MetaInfoResolver) TotalRuntime(ctx context.Context) (float64, error)

type PersonInferenceResolver

type PersonInferenceResolver struct {
	Inference models.PersonInference
}

PersonInferenceResolver resolves query-agnostic PersonInference model.

func (*PersonInferenceResolver) Face

Face extacts collection of face inferences from given PersonInference resolver.

func (*PersonInferenceResolver) Head

Head extracts collection of head inferences from given PersonInference resolver.

func (*PersonInferenceResolver) Posture

Posture extracts collection of posture inferences from given PersonInference resolver.

func (*PersonInferenceResolver) TrackingID

func (vi *PersonInferenceResolver) TrackingID(ctx context.Context) (*int32, error)

TrackingID extracts tracking id field from given PersonInference resolver.

type PersonResolver

type PersonResolver struct {
	Person models.Person
}

PersonResolver resolves query-agnostic Person model.

func (*PersonResolver) Body

func (p *PersonResolver) Body(ctx context.Context) (*[]int32, error)

Body extracts body keypoint array from given Person resolver.

func (*PersonResolver) Face

func (p *PersonResolver) Face(ctx context.Context) (*[]int32, error)

Face extracts face keypoint array from given Person resolver.

func (*PersonResolver) Hand

func (p *PersonResolver) Hand(ctx context.Context) (*[]int32, error)

Hand extracts hand keypoint array from given Person resolver.

func (*PersonResolver) Inference

Inference extracts inference object from given Person resolver.

func (*PersonResolver) OpenposeID

func (p *PersonResolver) OpenposeID(ctx context.Context) (*int32, error)

OpenposeID extracts source openpose ID from given Person resolver.

type PostureResolver

type PostureResolver struct {
	Posture models.Posture
}

PostureResolver resolves query-agnostic Posture model.

func (*PostureResolver) ArmDelta

func (p *PostureResolver) ArmDelta(ctx context.Context) (*[][]int32, error)

ArmDelta extracts arm keypoint delta field from given Posture resolver.

func (*PostureResolver) ArmPose

func (p *PostureResolver) ArmPose(ctx context.Context) (*string, error)

ArmPose extracts arm pose (a.k.a. upper body pose) field from given Posture resolver.

func (*PostureResolver) CentroidDelta

func (p *PostureResolver) CentroidDelta(ctx context.Context) (*[]int32, error)

CentroidDelta extracts centroid delta field from given Posture resolver.

func (*PostureResolver) SitStand

func (p *PostureResolver) SitStand(ctx context.Context) (*string, error)

SitStand extracts sit vs. stand field from given Posture resolver.

type PrincipalGazeResolver

type PrincipalGazeResolver struct {
	PrincipalGaze models.PrincipalGaze
}

func (*PrincipalGazeResolver) Direction

func (s *PrincipalGazeResolver) Direction(ctx context.Context) (*[]*float64, error)

func (*PrincipalGazeResolver) DirectionVariation

func (s *PrincipalGazeResolver) DirectionVariation(ctx context.Context) (*[]*float64, error)

func (*PrincipalGazeResolver) LongestStayFraction

func (s *PrincipalGazeResolver) LongestStayFraction(ctx context.Context) (*[]*float64, error)

type PrincipalMovementResolver

type PrincipalMovementResolver struct {
	PrincipalMovement models.PrincipalMovement
}

func (*PrincipalMovementResolver) DirectionComps

func (s *PrincipalMovementResolver) DirectionComps(ctx context.Context) (*[]*float64, error)

func (*PrincipalMovementResolver) DirectionMean

func (s *PrincipalMovementResolver) DirectionMean(ctx context.Context) (*[]*float64, error)

func (*PrincipalMovementResolver) DirectionVariation

func (s *PrincipalMovementResolver) DirectionVariation(ctx context.Context) (*[]*float64, error)

type QueryResolver

type QueryResolver struct {
	Driver dbhandler.DatabaseDriver
}

QueryResolver resolves given GraphQL query.

func NewQueryRoot

func NewQueryRoot(driver dbhandler.DatabaseDriver) (*QueryResolver, error)

NewQueryRoot resolves database handler.

func (QueryResolver) Analytics

func (q QueryResolver) Analytics(ctx context.Context, args AnalyticsArgs) ([]*AnalyticsResolver, error)

func (QueryResolver) Classrooms

func (q QueryResolver) Classrooms(ctx context.Context) ([]*ClassroomResolver, error)

Sessions returns list of session resolvers from underlying database.

func (QueryResolver) Courses

func (q QueryResolver) Courses(ctx context.Context) ([]*CourseResolver, error)

Sessions returns list of session resolvers from underlying database.

func (QueryResolver) Sessions

func (q QueryResolver) Sessions(ctx context.Context, args SessionArgs) ([]*SessionResolver, error)

Sessions returns list of session resolvers from underlying database.

type SecondAudioAnalysisResolver

type SecondAudioAnalysisResolver struct {
	Audio models.SecondAudioAnalysis
}

func (*SecondAudioAnalysisResolver) IsObjectNoise

func (s *SecondAudioAnalysisResolver) IsObjectNoise(ctx context.Context) (*bool, error)

func (*SecondAudioAnalysisResolver) IsSilence

func (s *SecondAudioAnalysisResolver) IsSilence(ctx context.Context) (*bool, error)

func (*SecondAudioAnalysisResolver) IsSingleSpeaker

func (s *SecondAudioAnalysisResolver) IsSingleSpeaker(ctx context.Context) (*bool, error)

func (*SecondAudioAnalysisResolver) IsTeacherOnly

func (s *SecondAudioAnalysisResolver) IsTeacherOnly(ctx context.Context) (*bool, error)

type SecondGazeAnalysisResolver

type SecondGazeAnalysisResolver struct {
	Gaze models.SecondGazeAnalysis
}

func (*SecondGazeAnalysisResolver) Instructor

func (*SecondGazeAnalysisResolver) Student

type SecondInfoResolver

type SecondInfoResolver struct {
	SecondInfo models.SecondInfo
}

func (*SecondInfoResolver) FrameEnd

func (s *SecondInfoResolver) FrameEnd(ctx context.Context) (*int32, error)

func (*SecondInfoResolver) FrameStart

func (s *SecondInfoResolver) FrameStart(ctx context.Context) (*int32, error)

func (*SecondInfoResolver) UnixSeconds

func (s *SecondInfoResolver) UnixSeconds(ctx context.Context) (*int32, error)

type SecondInstructorGazeResolver

type SecondInstructorGazeResolver struct {
	Instructor models.SecondInstructorGaze
}

func (*SecondInstructorGazeResolver) Angle

func (*SecondInstructorGazeResolver) AngleChange

func (s *SecondInstructorGazeResolver) AngleChange(ctx context.Context) (*float64, error)

func (*SecondInstructorGazeResolver) CountStudentsInGaze

func (s *SecondInstructorGazeResolver) CountStudentsInGaze(ctx context.Context) (*int32, error)

func (*SecondInstructorGazeResolver) Direction

func (*SecondInstructorGazeResolver) LookingDown

func (s *SecondInstructorGazeResolver) LookingDown(ctx context.Context) (*bool, error)

func (*SecondInstructorGazeResolver) TowardsStudents

func (s *SecondInstructorGazeResolver) TowardsStudents(ctx context.Context) (*bool, error)

func (*SecondInstructorGazeResolver) ViewingSectorThreshold

func (s *SecondInstructorGazeResolver) ViewingSectorThreshold(ctx context.Context) (*float64, error)

type SecondInstructorLocationResolver

type SecondInstructorLocationResolver struct {
	Instructor models.SecondInstructorLocation
}

func (*SecondInstructorLocationResolver) AtBoard

func (*SecondInstructorLocationResolver) AtPodium

func (*SecondInstructorLocationResolver) HeadEntropy

func (*SecondInstructorLocationResolver) IsMoving

func (*SecondInstructorLocationResolver) LocationCategory

func (s *SecondInstructorLocationResolver) LocationCategory(ctx context.Context) (*string, error)

func (*SecondInstructorLocationResolver) LocationCoordinates

func (s *SecondInstructorLocationResolver) LocationCoordinates(ctx context.Context) (*[]*int32, error)

func (*SecondInstructorLocationResolver) LocationEntropy

func (s *SecondInstructorLocationResolver) LocationEntropy(ctx context.Context) (*float64, error)

type SecondInstructorPostureResolver

type SecondInstructorPostureResolver struct {
	Instructor models.SecondInstructorPosture
}

func (*SecondInstructorPostureResolver) CentroidFaceDistance

func (s *SecondInstructorPostureResolver) CentroidFaceDistance(ctx context.Context) (*float64, error)

func (*SecondInstructorPostureResolver) CentroidFaceDistanceAbsolute

func (s *SecondInstructorPostureResolver) CentroidFaceDistanceAbsolute(ctx context.Context) (*float64, error)

func (*SecondInstructorPostureResolver) HandPosture

func (*SecondInstructorPostureResolver) HeadPosture

func (*SecondInstructorPostureResolver) IsPointing

func (s *SecondInstructorPostureResolver) IsPointing(ctx context.Context) (*bool, error)

func (*SecondInstructorPostureResolver) IsStanding

func (s *SecondInstructorPostureResolver) IsStanding(ctx context.Context) (*bool, error)

func (*SecondInstructorPostureResolver) PointingDirection

func (s *SecondInstructorPostureResolver) PointingDirection(ctx context.Context) (*[]*float64, error)

type SecondLevelResolver

type SecondLevelResolver struct {
	SecondLevel models.SecondLevel
}

func (*SecondLevelResolver) Audio

func (*SecondLevelResolver) CrossModal

func (s *SecondLevelResolver) CrossModal(ctx context.Context) (*string, error)

func (*SecondLevelResolver) Gaze

func (*SecondLevelResolver) Location

func (*SecondLevelResolver) Posture

func (*SecondLevelResolver) SecondInfo

type SecondLocationAnalysisResolver

type SecondLocationAnalysisResolver struct {
	Location models.SecondLocationAnalysis
}

func (*SecondLocationAnalysisResolver) Instructor

func (*SecondLocationAnalysisResolver) Student

type SecondPostureAnalysisResolver

type SecondPostureAnalysisResolver struct {
	Posture models.SecondPostureAnalysis
}

func (*SecondPostureAnalysisResolver) Instructor

func (*SecondPostureAnalysisResolver) Student

type SecondStudentGazeResolver

type SecondStudentGazeResolver struct {
	Student models.SecondStudentGaze
}

func (*SecondStudentGazeResolver) Angle

func (s *SecondStudentGazeResolver) Angle(ctx context.Context) (*[]*float64, error)

func (*SecondStudentGazeResolver) AngleChange

func (s *SecondStudentGazeResolver) AngleChange(ctx context.Context) (*[]*float64, error)

func (*SecondStudentGazeResolver) Direction

func (s *SecondStudentGazeResolver) Direction(ctx context.Context) (*[]*string, error)

func (*SecondStudentGazeResolver) Id

func (*SecondStudentGazeResolver) LookingDown

func (s *SecondStudentGazeResolver) LookingDown(ctx context.Context) (*[]*bool, error)

func (*SecondStudentGazeResolver) LookingFront

func (s *SecondStudentGazeResolver) LookingFront(ctx context.Context) (*[]*bool, error)

func (*SecondStudentGazeResolver) TowardsInstructor

func (s *SecondStudentGazeResolver) TowardsInstructor(ctx context.Context) (*[]*bool, error)

type SecondStudentLocationResolver

type SecondStudentLocationResolver struct {
	Student models.SecondStudentLocation
}

func (*SecondStudentLocationResolver) HeadEntropy

func (s *SecondStudentLocationResolver) HeadEntropy(ctx context.Context) (*[]*float64, error)

func (*SecondStudentLocationResolver) Id

func (*SecondStudentLocationResolver) IsMoving

func (s *SecondStudentLocationResolver) IsMoving(ctx context.Context) (*[]*bool, error)

func (*SecondStudentLocationResolver) LocationCategory

func (s *SecondStudentLocationResolver) LocationCategory(ctx context.Context) (*[]*string, error)

func (*SecondStudentLocationResolver) LocationCoordinates

func (s *SecondStudentLocationResolver) LocationCoordinates(ctx context.Context) (*[][]*int32, error)

func (*SecondStudentLocationResolver) LocationEntropy

func (s *SecondStudentLocationResolver) LocationEntropy(ctx context.Context) (*[]*float64, error)

func (*SecondStudentLocationResolver) TrackingIdMap

func (s *SecondStudentLocationResolver) TrackingIdMap(ctx context.Context) (*[][]*int32, error)

type SecondStudentPostureResolver

type SecondStudentPostureResolver struct {
	Student models.SecondStudentPosture
}

func (*SecondStudentPostureResolver) BodyPosture

func (s *SecondStudentPostureResolver) BodyPosture(ctx context.Context) (*[]string, error)

func (*SecondStudentPostureResolver) HandPosture

func (s *SecondStudentPostureResolver) HandPosture(ctx context.Context) (*[]string, error)

func (*SecondStudentPostureResolver) HeadPosture

func (s *SecondStudentPostureResolver) HeadPosture(ctx context.Context) (*[]string, error)

func (*SecondStudentPostureResolver) Id

func (*SecondStudentPostureResolver) IsStanding

func (s *SecondStudentPostureResolver) IsStanding(ctx context.Context) (*[]*bool, error)

type SessionArgs

type SessionArgs struct {
	SessionID *string
	Keyword   *string
}

SessionArgs defines parameters for session queries.

type SessionAudioAnalysisResolver

type SessionAudioAnalysisResolver struct {
	Audio models.SessionAudioAnalysis
}

func (*SessionAudioAnalysisResolver) AudioBasedActivityBlocks

func (s *SessionAudioAnalysisResolver) AudioBasedActivityBlocks(ctx context.Context) (*[][][]*int32, error)

func (*SessionAudioAnalysisResolver) AudioBasedActivityFraction

func (s *SessionAudioAnalysisResolver) AudioBasedActivityFraction(ctx context.Context) (*[]*float64, error)

func (*SessionAudioAnalysisResolver) AudioBasedActivityType

func (s *SessionAudioAnalysisResolver) AudioBasedActivityType(ctx context.Context) (*[]*string, error)

type SessionGazeAnalysisResolver

type SessionGazeAnalysisResolver struct {
	Gaze models.SessionGazeAnalysis
}

func (*SessionGazeAnalysisResolver) Instructor

func (*SessionGazeAnalysisResolver) Student

type SessionInfoResolver

type SessionInfoResolver struct {
	SessionInfo models.SessionInfo
}

func (*SessionInfoResolver) SessionLength

func (s *SessionInfoResolver) SessionLength(ctx context.Context) (int32, error)

func (*SessionInfoResolver) UnixStartSeconds

func (s *SessionInfoResolver) UnixStartSeconds(ctx context.Context) (int32, error)

type SessionInstructorGazeResolver

type SessionInstructorGazeResolver struct {
	Instructor models.SessionInstructorGaze
}

func (*SessionInstructorGazeResolver) GazePreference

func (s *SessionInstructorGazeResolver) GazePreference(ctx context.Context) (*string, error)

func (*SessionInstructorGazeResolver) LookingAtObjectFraction

func (s *SessionInstructorGazeResolver) LookingAtObjectFraction(ctx context.Context) (*[]*float64, error)

func (*SessionInstructorGazeResolver) ObjectCategory

func (s *SessionInstructorGazeResolver) ObjectCategory(ctx context.Context) (*[]*string, error)

func (*SessionInstructorGazeResolver) TopLocations

func (s *SessionInstructorGazeResolver) TopLocations(ctx context.Context) (*[][]*float64, error)

func (*SessionInstructorGazeResolver) TopLocationsGazeLeftFraction

func (s *SessionInstructorGazeResolver) TopLocationsGazeLeftFraction(ctx context.Context) (*[][]*float64, error)

type SessionInstructorLocationResolver

type SessionInstructorLocationResolver struct {
	Instructor models.SessionInstructorLocation
}

func (*SessionInstructorLocationResolver) CategoryFraction

func (s *SessionInstructorLocationResolver) CategoryFraction(ctx context.Context) (*[]*float64, error)

func (*SessionInstructorLocationResolver) LocationBasedActivityBlocks

func (s *SessionInstructorLocationResolver) LocationBasedActivityBlocks(ctx context.Context) (*[][][]*int32, error)

func (*SessionInstructorLocationResolver) LocationBasedActivityFraction

func (s *SessionInstructorLocationResolver) LocationBasedActivityFraction(ctx context.Context) (*[]*float64, error)

func (*SessionInstructorLocationResolver) LocationBasedActivityType

func (s *SessionInstructorLocationResolver) LocationBasedActivityType(ctx context.Context) (*[]*string, error)

func (*SessionInstructorLocationResolver) LocationCategory

func (s *SessionInstructorLocationResolver) LocationCategory(ctx context.Context) (*string, error)

func (*SessionInstructorLocationResolver) LocationClusterCenter

func (s *SessionInstructorLocationResolver) LocationClusterCenter(ctx context.Context) (*[][]*float64, error)

func (*SessionInstructorLocationResolver) LocationClusterCount

func (s *SessionInstructorLocationResolver) LocationClusterCount(ctx context.Context) (*int32, error)

func (*SessionInstructorLocationResolver) LocationClusterSize

func (s *SessionInstructorLocationResolver) LocationClusterSize(ctx context.Context) (*[]*int32, error)

func (*SessionInstructorLocationResolver) LongestBoardFraction

func (s *SessionInstructorLocationResolver) LongestBoardFraction(ctx context.Context) (*float64, error)

func (*SessionInstructorLocationResolver) LongestCategoryFraction

func (s *SessionInstructorLocationResolver) LongestCategoryFraction(ctx context.Context) (*[]*float64, error)

func (*SessionInstructorLocationResolver) LongestMovingFraction

func (s *SessionInstructorLocationResolver) LongestMovingFraction(ctx context.Context) (*float64, error)

func (*SessionInstructorLocationResolver) LongestPodiumFraction

func (s *SessionInstructorLocationResolver) LongestPodiumFraction(ctx context.Context) (*float64, error)

func (*SessionInstructorLocationResolver) TotalBoardFraction

func (s *SessionInstructorLocationResolver) TotalBoardFraction(ctx context.Context) (*float64, error)

func (*SessionInstructorLocationResolver) TotalMovingFraction

func (s *SessionInstructorLocationResolver) TotalMovingFraction(ctx context.Context) (*float64, error)

func (*SessionInstructorLocationResolver) TotalPodiumFraction

func (s *SessionInstructorLocationResolver) TotalPodiumFraction(ctx context.Context) (*float64, error)

type SessionInstructorPostureResolver

type SessionInstructorPostureResolver struct {
	Instructor models.SessionInstructorPosture
}

func (*SessionInstructorPostureResolver) BodyPosturePreference

func (s *SessionInstructorPostureResolver) BodyPosturePreference(ctx context.Context) (*string, error)

func (*SessionInstructorPostureResolver) PointingClusterCenter

func (s *SessionInstructorPostureResolver) PointingClusterCenter(ctx context.Context) (*[][]*float64, error)

func (*SessionInstructorPostureResolver) PointingClusterCount

func (s *SessionInstructorPostureResolver) PointingClusterCount(ctx context.Context) (*int32, error)

func (*SessionInstructorPostureResolver) PointingClusterSize

func (s *SessionInstructorPostureResolver) PointingClusterSize(ctx context.Context) (*[]*int32, error)

type SessionLevelResolver

type SessionLevelResolver struct {
	SessionLevel models.SessionLevel
}

func (*SessionLevelResolver) Audio

func (*SessionLevelResolver) CrossModal

func (s *SessionLevelResolver) CrossModal(ctx context.Context) (*string, error)

func (*SessionLevelResolver) Gaze

func (*SessionLevelResolver) Location

func (*SessionLevelResolver) Posture

func (*SessionLevelResolver) SessionInfo

type SessionLocationAnalysisResolver

type SessionLocationAnalysisResolver struct {
	Location models.SessionLocationAnalysis
}

func (*SessionLocationAnalysisResolver) Instructor

func (*SessionLocationAnalysisResolver) Student

type SessionPostureAnalysisResolver

type SessionPostureAnalysisResolver struct {
	Posture models.SessionPostureAnalysis
}

func (*SessionPostureAnalysisResolver) Instructor

func (*SessionPostureAnalysisResolver) Student

type SessionResolver

type SessionResolver struct {
	Session    *models.Session
	FrameQuery bool
	Driver     dbhandler.DatabaseDriver
}

SessionResolver queries database and resolves query-agnostic Session model.

func (*SessionResolver) AudioFrames

func (s *SessionResolver) AudioFrames(ctx context.Context, args FrameArgs) ([]*AudioFrameResolver, error)

AudioFrames extracts list of audio frame resolvers from given Session resolver.

func (*SessionResolver) CreatedAt

func (s *SessionResolver) CreatedAt(ctx context.Context) (*TimeResolver, error)

CreatedAt extracts when this session is created at from given Session resolver.

func (*SessionResolver) ID

ID extracts Session ID from given Session resolver.

func (*SessionResolver) Keyword

func (s *SessionResolver) Keyword(ctx context.Context) (string, error)

Keyword extracts keyword from given Session resolver.

func (*SessionResolver) Schemas

func (s *SessionResolver) Schemas(ctx context.Context) ([]string, error)

Schemas extracts schemas from given Session resolver. TODO(DohyunKimOfficial): Currently returning empty list. After plumbing schemas to query and storage infrastructure, we can add schema resolving logic here.

func (*SessionResolver) Version

func (s *SessionResolver) Version(ctx context.Context) (string, error)

func (*SessionResolver) VideoFrames

func (s *SessionResolver) VideoFrames(ctx context.Context, args FrameArgs) ([]*VideoFrameResolver, error)

VideoFrames extracts list of video frame resolvers from given Session resolver.

type SessionStudentGazeResolver

type SessionStudentGazeResolver struct {
	Student models.SessionStudentGaze
}

func (*SessionStudentGazeResolver) GazeCategory

func (s *SessionStudentGazeResolver) GazeCategory(ctx context.Context) (*[]*string, error)

func (*SessionStudentGazeResolver) GazeCategoryFraction

func (s *SessionStudentGazeResolver) GazeCategoryFraction(ctx context.Context) (*[][]*float64, error)

func (*SessionStudentGazeResolver) Id

type SessionStudentLocationResolver

type SessionStudentLocationResolver struct {
	Student models.SessionStudentLocation
}

func (*SessionStudentLocationResolver) EntryLocation

func (s *SessionStudentLocationResolver) EntryLocation(ctx context.Context) (*[][]*float64, error)

func (*SessionStudentLocationResolver) EntryTime

func (s *SessionStudentLocationResolver) EntryTime(ctx context.Context) (*[]*float64, error)

func (*SessionStudentLocationResolver) ExitLocation

func (s *SessionStudentLocationResolver) ExitLocation(ctx context.Context) (*[][]*float64, error)

func (*SessionStudentLocationResolver) ExitTime

func (*SessionStudentLocationResolver) Id

func (*SessionStudentLocationResolver) SeatingCategories

func (s *SessionStudentLocationResolver) SeatingCategories(ctx context.Context) (*[]*string, error)

func (*SessionStudentLocationResolver) SeatingCategoryBlocks

func (s *SessionStudentLocationResolver) SeatingCategoryBlocks(ctx context.Context) (*[][]*int32, error)

func (*SessionStudentLocationResolver) SettleDownTime

func (s *SessionStudentLocationResolver) SettleDownTime(ctx context.Context) (*[]*float64, error)

type SessionStudentPostureResolver

type SessionStudentPostureResolver struct {
	Student models.SessionStudentPosture
}

func (*SessionStudentPostureResolver) HandPosturePreference

func (s *SessionStudentPostureResolver) HandPosturePreference(ctx context.Context) (*[]*string, error)

func (*SessionStudentPostureResolver) HeadPosturePreference

func (s *SessionStudentPostureResolver) HeadPosturePreference(ctx context.Context) (*[]*string, error)

func (*SessionStudentPostureResolver) Id

type SpeechResolver

type SpeechResolver struct {
	Speech models.Speech
}

SpeechResolver resolves query-agnostic Speech model.

func (*SpeechResolver) Confidence

func (s *SpeechResolver) Confidence(ctx context.Context) (float64, error)

Confidence extracts confidence score field from given Speech resolver.

func (*SpeechResolver) Speaker

func (s *SpeechResolver) Speaker(ctx context.Context) (string, error)

Speaker extracts speaker field from given Speech resolver.

type ThumbnailResolver

type ThumbnailResolver struct {
	Thumbnail models.Thumbnail
}

ThumbnailResolver resolves query-agnostic Thumbnail model.

func (*ThumbnailResolver) Binary

func (t *ThumbnailResolver) Binary(ctx context.Context) (string, error)

Binary returns the base64 encoding of the thumbnail.

func (*ThumbnailResolver) OriginalCols

func (t *ThumbnailResolver) OriginalCols(ctx context.Context) (int32, error)

OriginalCols returns the original weith of the source image (Cols).

func (*ThumbnailResolver) OriginalRows

func (t *ThumbnailResolver) OriginalRows(ctx context.Context) (int32, error)

OriginalRows returns the original height of the source image (Rows).

type TimeResolver

type TimeResolver struct {
	Time time.Time
}

TimeResolver resolves query-agnostic Time variable.

func (*TimeResolver) RFC3339

func (t *TimeResolver) RFC3339(ctx context.Context) (string, error)

RFC3339 returns time in RFC3339 format to clients.

func (*TimeResolver) UnixNanoseconds

func (t *TimeResolver) UnixNanoseconds(ctx context.Context) (int32, error)

UnixNanoseconds returns time in nanosecond offset from UnixSeconds to clients.

func (*TimeResolver) UnixSeconds

func (t *TimeResolver) UnixSeconds(ctx context.Context) (int32, error)

UnixSeconds returns time in unix seconds format to clients.

type TimestampInput

type TimestampInput struct {
	RFC3339         *string
	UnixSeconds     *int32
	UnixNanoseconds *int32
}

TimestampInput defines timestamp input format.

type TimestampQuery

type TimestampQuery struct {
	Filters *[]TimestampQueryFilter
}

TimestampQuery defines aggregated timestamp query.

type TimestampQueryFilter

type TimestampQueryFilter struct {
	Op        string
	Format    string
	Timestamp TimestampInput
}

TimestampQueryFilter defines filter operator for timestamp query.

type VideoFrameResolver

type VideoFrameResolver struct {
	Frame models.VideoFrame
}

VideoFrameResolver resolves query-agnostic VideoFrame model.

func (*VideoFrameResolver) FrameNumber

func (f *VideoFrameResolver) FrameNumber() (int32, error)

FrameNumber extracts frame number from given VideoFrame resolver.

func (*VideoFrameResolver) People

func (f *VideoFrameResolver) People(ctx context.Context) (*[]*PersonResolver, error)

People extracts list of Person resolvers from given VideoFrame resolver.

func (*VideoFrameResolver) Thumbnail

Thumbnail extracts thumbnail from given VideoFrame resolver.

func (*VideoFrameResolver) Timestamp

func (f *VideoFrameResolver) Timestamp() (*TimeResolver, error)

Timestamp extracts timestamp from given VideoFrame resolver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL