Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to separate webcam and gostream entirely #4604

Draft
wants to merge 64 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
a643d22
Init craziness
hexbabe Oct 24, 2024
41cb592
Use camera pkg scoped ReadImage in webcam
hexbabe Oct 25, 2024
f6e3d69
Merge branch 'main' into RSDK-9132
hexbabe Nov 4, 2024
d6439dd
Use agreed upon Image signature
hexbabe Nov 6, 2024
6417a56
Merge branch 'main' into RSDK-9132
hexbabe Nov 6, 2024
59c36ec
Fix tests
hexbabe Nov 6, 2024
16079fa
Delete ReadImager and fix mimetype formatting in data collector
hexbabe Nov 6, 2024
9084264
Fix up obstacle depth; Delete custom extra type;
hexbabe Nov 7, 2024
c44afa2
Update video source comment spec; Add helper to DRY up .Image calls w…
hexbabe Nov 7, 2024
11b1d7d
Fix obstacle depth mimetype (it needs it for re-encode since we can't…
hexbabe Nov 7, 2024
438d550
Add image metadata replacing mimetype return; Add back non empty stri…
hexbabe Nov 7, 2024
0d8081b
Forgot to include mimetype in test resp oops
hexbabe Nov 7, 2024
824c30f
Add width and height to ImageMetadata struct
hexbabe Nov 8, 2024
e744b68
Use GetGoImage in camera client Stream
hexbabe Nov 8, 2024
fd50881
Remove jpeg default in vision
hexbabe Nov 11, 2024
e570393
Revert detections, classifications, and capture all's image call to R…
hexbabe Nov 11, 2024
6646d78
Don't modify vision at all
hexbabe Nov 12, 2024
612e91c
Remove width and height from ImageMetadata; DRY up webcam and videoso…
hexbabe Nov 12, 2024
9029a05
Move ReadImageBytes to videosourcewrappers
hexbabe Nov 13, 2024
6ec0041
Rename GetGoImage -> ImageFromVideoSource
hexbabe Nov 13, 2024
ef1bd0e
Make lint
hexbabe Nov 13, 2024
d01159a
Move mimetype unmarshaling outside of capture func
hexbabe Nov 13, 2024
44611d5
Update components/camera/client.go
hexbabe Nov 13, 2024
146345f
Add error for empty bytes responses in server & client
hexbabe Nov 14, 2024
c698e16
Add empty image bytes tests
hexbabe Nov 14, 2024
9da582f
Fix random things that I am doing wrong
hexbabe Nov 14, 2024
1b51109
Revert
hexbabe Nov 14, 2024
eaf28d7
RSDK-9218: Change all of the artifacts to v4. (#4535)
dgottlieb Nov 6, 2024
4fe7e36
RSDK-8359: Update smarty to avoid unnecessary data races. (#4534)
dgottlieb Nov 6, 2024
b4e1960
RSDK-8819: Implement FTDC file rotation. (#4510)
dgottlieb Nov 6, 2024
fc6665d
APP-6785: Remove local control page - remove web workflows (#4523)
ethanlookpotts Nov 7, 2024
8afb714
APP-6850 update android build for go 1.23 (#4539)
abe-winter Nov 8, 2024
375a35f
RSDK-8611: Have test make a tls config copy to avoid concurrent acces…
dgottlieb Nov 8, 2024
5bf744c
RSDK-8837: Remove the short timeout for testing reconnects that are e…
dgottlieb Nov 8, 2024
2a1cd8b
make errors reported during discovery (#4546)
erh Nov 9, 2024
1233170
Update gripper.go (#4540)
npentrel Nov 11, 2024
95f3f42
RSDK-9090 clarify package cleanup (#4542)
maximpertsov Nov 11, 2024
b208d2c
RSDK-9240: Remove github action code coverage stuff we do not use. (#…
dgottlieb Nov 11, 2024
0b85975
[Data-3312] add basic data capture support for capturing tabular data…
nicksanford Nov 11, 2024
c44454b
RSDK-9136: issues when stopping motor with controls (#4550)
martha-johnston Nov 12, 2024
d848d20
RSDK-9037: Add AttachDirectionalAwareness to DoCommand (#4552)
martha-johnston Nov 13, 2024
09e295c
RSDK-8767 - populate local_name and remote_path to all resource names…
Kschappacher Nov 13, 2024
3edf860
APP-6696 include `os_version` tag on GOOS=darwin (#4536)
abe-winter Nov 13, 2024
b7c4635
RSDK-8926: Rover canary motor test fail because failure to set pins (…
martha-johnston Nov 14, 2024
63b7681
[DATA-3338] - collector test improvements (#4551)
nicksanford Nov 14, 2024
c91b68d
Merge branch 'main' into RSDK-9132
hexbabe Nov 14, 2024
d63980e
Fix new collector tests
hexbabe Nov 14, 2024
6ffbae2
Change image.Image getter wrapper to take in a camera resource not a …
hexbabe Nov 14, 2024
65b5bad
Merge branch 'viamrobotics:main' into RSDK-9132
hexbabe Nov 14, 2024
9a9612f
If err, then bytes and metadata should be falsy
hexbabe Nov 14, 2024
ab7e736
Use imgbuf bytes directly for a robot client test rather than encode …
hexbabe Nov 14, 2024
8244dfd
Add back ReadImage/Stream tests where it makes sense
hexbabe Nov 15, 2024
5feb0ed
Getting started with the refactor
hexbabe Nov 20, 2024
5c0191d
Remove debugging crap
hexbabe Nov 22, 2024
a1fcc2f
Fix videosourcewrappers
hexbabe Nov 25, 2024
859d027
Merge branch 'main' into RSDK-9132-beta-timeline
hexbabe Dec 3, 2024
de2cb6a
Try to remove Stream
hexbabe Dec 3, 2024
21fe63a
Merge branch 'main' into RSDK-9132-beta-timeline
hexbabe Dec 3, 2024
2fdabbf
Make lint
hexbabe Dec 3, 2024
f3e9fd5
Align comments
hexbabe Dec 4, 2024
b27c121
Merge branch 'main' into RSDK-9132-beta-timeline
hexbabe Dec 4, 2024
4a8ad4a
Delete some Stream documentations; Default to jpeg encoding in webcam…
hexbabe Dec 4, 2024
5ecc6ed
Change streamcamera comment; Add more exclamation points; Change came…
hexbabe Dec 4, 2024
46059cd
Add initial webcam/gostream refactor
hexbabe Dec 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 28 additions & 24 deletions components/camera/camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"fmt"
"image"

"github.com/pion/mediadevices/pkg/prop"
"github.com/pkg/errors"
pb "go.viam.com/api/component/camera/v1"

Expand Down Expand Up @@ -78,12 +79,6 @@ type ImageMetadata struct {
}

// A Camera is a resource that can capture frames.
type Camera interface {
resource.Resource
VideoSource
}

// VideoSource represents anything that can capture frames.
// For more information, see the [camera component docs].
//
// Image example:
Expand All @@ -102,17 +97,6 @@ type Camera interface {
//
// images, metadata, err := myCamera.Images(context.Background())
//
// Stream example:
//
// myCamera, err := camera.FromRobot(machine, "my_camera")
//
// // gets the stream from a camera
// stream, err := myCamera.Stream(context.Background())
//
// // gets an image from the camera stream
// img, release, err := stream.Next(context.Background())
// defer release()
//
// NextPointCloud example:
//
// myCamera, err := camera.FromRobot(machine, "my_camera")
Expand All @@ -127,7 +111,8 @@ type Camera interface {
// err = myCamera.Close(context.Background())
//
// [camera component docs]: https://docs.viam.com/components/camera/
type VideoSource interface {
type Camera interface {
resource.Resource
// Image returns a byte slice representing an image that tries to adhere to the MIME type hint.
// Image also may return metadata about the frame.
Image(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, ImageMetadata, error)
Expand All @@ -136,20 +121,20 @@ type VideoSource interface {
// along with associated metadata (just timestamp for now). It's not for getting a time series of images from the same imager.
Images(ctx context.Context) ([]NamedImage, resource.ResponseMetadata, error)

// Stream returns a stream that makes a best effort to return consecutive images
// that may have a MIME type hint dictated in the context via gostream.WithMIMETypeHint.
Stream(ctx context.Context, errHandlers ...gostream.ErrorHandler) (gostream.VideoStream, error)

// NextPointCloud returns the next immediately available point cloud, not necessarily one
// a part of a sequence. In the future, there could be streaming of point clouds.
NextPointCloud(ctx context.Context) (pointcloud.PointCloud, error)

// Properties returns properties that are intrinsic to the particular
// implementation of a camera.
Properties(ctx context.Context) (Properties, error)
}

// Close shuts down the resource and prevents further use.
Close(ctx context.Context) error
// StreamCamera is a camera that has `Stream` embedded to directly integrate with gostream.
// Note that generally, when writing camera components from scratch, embedding `Stream` is an anti-pattern.
type StreamCamera interface {
Camera
Stream(ctx context.Context, errHandlers ...gostream.ErrorHandler) (gostream.VideoStream, error)
}

// ReadImage reads an image from the given source that is immediately available.
Expand All @@ -173,6 +158,25 @@ func DecodeImageFromCamera(ctx context.Context, mimeType string, extra map[strin
return img, nil
}

// VideoSourceFromCamera converts a camera resource into a gostream VideoSource.
func VideoSourceFromCamera(ctx context.Context, cam Camera) gostream.VideoSource {
reader := gostream.VideoReaderFunc(func(ctx context.Context) (image.Image, func(), error) {
img, err := DecodeImageFromCamera(ctx, "", nil, cam)
if err != nil {
return nil, func() {}, err
}
return img, func() {}, nil
})
camProps, err := cam.Properties(ctx)
if err != nil {
camProps = Properties{}
}
if camProps.IntrinsicParams == nil {
return gostream.NewVideoSource(reader, prop.Video{Width: 0, Height: 0})
}
return gostream.NewVideoSource(reader, prop.Video{Width: camProps.IntrinsicParams.Width, Height: camProps.IntrinsicParams.Height})
}

// A PointCloudSource is a source that can generate pointclouds.
type PointCloudSource interface {
NextPointCloud(ctx context.Context) (pointcloud.PointCloud, error)
Expand Down
33 changes: 0 additions & 33 deletions components/camera/camera_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"go.viam.com/utils/artifact"

"go.viam.com/rdk/components/camera"
"go.viam.com/rdk/gostream"
"go.viam.com/rdk/logging"
"go.viam.com/rdk/pointcloud"
"go.viam.com/rdk/resource"
Expand Down Expand Up @@ -186,18 +185,6 @@ func TestCameraWithNoProjector(t *testing.T) {
_, got := pc.At(0, 0, 0)
test.That(t, got, test.ShouldBeTrue)

// TODO(hexbabe): remove below test when Stream is refactored
t.Run("ReadImage depth map without projector", func(t *testing.T) {
img, _, err := camera.ReadImage(
gostream.WithMIMETypeHint(context.Background(), rutils.WithLazyMIMEType(rutils.MimeTypePNG)),
noProj2)
test.That(t, err, test.ShouldBeNil)
depthImg := img.(*rimage.DepthMap)
test.That(t, err, test.ShouldBeNil)
test.That(t, depthImg.Bounds().Dx(), test.ShouldEqual, 1280)
test.That(t, depthImg.Bounds().Dy(), test.ShouldEqual, 720)
})

img, err := camera.DecodeImageFromCamera(context.Background(), rutils.WithLazyMIMEType(rutils.MimeTypePNG), nil, noProj2)
test.That(t, err, test.ShouldBeNil)

Expand Down Expand Up @@ -247,26 +234,6 @@ func TestCameraWithProjector(t *testing.T) {
_, got := pc.At(0, 0, 0)
test.That(t, got, test.ShouldBeTrue)

// TODO(hexbabe): remove below test when Stream/ReadImage pattern is refactored
t.Run("ReadImage depth map with projector", func(t *testing.T) {
img, _, err := camera.ReadImage(
gostream.WithMIMETypeHint(context.Background(), rutils.MimeTypePNG),
cam2)
test.That(t, err, test.ShouldBeNil)

depthImg := img.(*rimage.DepthMap)
test.That(t, err, test.ShouldBeNil)
test.That(t, depthImg.Bounds().Dx(), test.ShouldEqual, 1280)
test.That(t, depthImg.Bounds().Dy(), test.ShouldEqual, 720)
// cam2 should implement a default GetImages, that just returns the one image
images, _, err := cam2.Images(context.Background())
test.That(t, err, test.ShouldBeNil)
test.That(t, len(images), test.ShouldEqual, 1)
test.That(t, images[0].Image, test.ShouldHaveSameTypeAs, &rimage.DepthMap{})
test.That(t, images[0].Image.Bounds().Dx(), test.ShouldEqual, 1280)
test.That(t, images[0].Image.Bounds().Dy(), test.ShouldEqual, 720)
})

img, err := camera.DecodeImageFromCamera(context.Background(), rutils.MimeTypePNG, nil, cam2)
test.That(t, err, test.ShouldBeNil)

Expand Down
137 changes: 0 additions & 137 deletions components/camera/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,25 +178,6 @@ func TestClient(t *testing.T) {
test.That(t, err, test.ShouldBeNil)
camera1Client, err := camera.NewClientFromConn(context.Background(), conn, "", camera.Named(testCameraName), logger)
test.That(t, err, test.ShouldBeNil)
// TODO(hexbabe): remove below test when Stream/ReadImage pattern is refactored
t.Run("ReadImage from camera client 1", func(t *testing.T) {
// Test Stream and Next
ctx := gostream.WithMIMETypeHint(context.Background(), rutils.MimeTypeRawRGBA)
stream, err := camera1Client.Stream(ctx)
test.That(t, err, test.ShouldBeNil)
frame, _, err := stream.Next(ctx)
test.That(t, err, test.ShouldBeNil)
compVal, _, err := rimage.CompareImages(img, frame)
test.That(t, err, test.ShouldBeNil)
test.That(t, compVal, test.ShouldEqual, 0) // exact copy, no color conversion

// Test ReadImage
frame, _, err = camera.ReadImage(ctx, camera1Client)
test.That(t, err, test.ShouldBeNil)
compVal, _, err = rimage.CompareImages(img, frame)
test.That(t, err, test.ShouldBeNil)
test.That(t, compVal, test.ShouldEqual, 0)
})
frame, err := camera.DecodeImageFromCamera(context.Background(), rutils.MimeTypeRawRGBA, nil, camera1Client)
test.That(t, err, test.ShouldBeNil)
compVal, _, err := rimage.CompareImages(img, frame)
Expand Down Expand Up @@ -246,17 +227,6 @@ func TestClient(t *testing.T) {
client, err := resourceAPI.RPCClient(context.Background(), conn, "", camera.Named(depthCameraName), logger)
test.That(t, err, test.ShouldBeNil)

// TODO(hexbabe): remove below test when Stream/ReadImage pattern is refactored
t.Run("ReadImage from camera depth", func(t *testing.T) {
ctx := gostream.WithMIMETypeHint(
context.Background(), rutils.WithLazyMIMEType(rutils.MimeTypePNG))
frame, _, err := camera.ReadImage(ctx, client)
test.That(t, err, test.ShouldBeNil)
dm, err := rimage.ConvertImageToDepthMap(context.Background(), frame)
test.That(t, err, test.ShouldBeNil)
test.That(t, dm, test.ShouldResemble, depthImg)
})

ctx := context.Background()
frame, err := camera.DecodeImageFromCamera(ctx, rutils.WithLazyMIMEType(rutils.MimeTypePNG), nil, client)
test.That(t, err, test.ShouldBeNil)
Expand All @@ -274,10 +244,6 @@ func TestClient(t *testing.T) {
client2, err := resourceAPI.RPCClient(context.Background(), conn, "", camera.Named(failCameraName), logger)
test.That(t, err, test.ShouldBeNil)

_, _, err = camera.ReadImage(context.Background(), client2)
test.That(t, err, test.ShouldNotBeNil)
test.That(t, err.Error(), test.ShouldContainSubstring, errGetImageFailed.Error())

_, _, err = client2.Image(context.Background(), "", nil)
test.That(t, err, test.ShouldNotBeNil)
test.That(t, err.Error(), test.ShouldContainSubstring, errGetImageFailed.Error())
Expand Down Expand Up @@ -305,12 +271,6 @@ func TestClient(t *testing.T) {
}

ctx := context.Background()
// TODO(hexbabe): remove below test when Stream/ReadImage pattern is refactored
t.Run("ReadImage test failure", func(t *testing.T) {
_, _, err = camera.ReadImage(ctx, camClient)
test.That(t, err, test.ShouldNotBeNil)
test.That(t, err.Error(), test.ShouldContainSubstring, errGetImageFailed.Error())
})
_, _, err = camClient.Image(ctx, "", nil)
test.That(t, err, test.ShouldNotBeNil)
test.That(t, err.Error(), test.ShouldContainSubstring, errGetImageFailed.Error())
Expand Down Expand Up @@ -509,17 +469,6 @@ func TestClientLazyImage(t *testing.T) {
camera1Client, err := camera.NewClientFromConn(context.Background(), conn, "", camera.Named(testCameraName), logger)
test.That(t, err, test.ShouldBeNil)

// TODO(hexbabe): remove below test when Stream/ReadImage pattern is refactored
t.Run("lazily decode from ReadImage without lazy suffix", func(t *testing.T) {
ctx := gostream.WithMIMETypeHint(context.Background(), rutils.MimeTypePNG)
frame, _, err := camera.ReadImage(ctx, camera1Client)
test.That(t, err, test.ShouldBeNil)
// Should always lazily decode
test.That(t, frame, test.ShouldHaveSameTypeAs, &rimage.LazyEncodedImage{})
frameLazy := frame.(*rimage.LazyEncodedImage)
test.That(t, frameLazy.RawData(), test.ShouldResemble, imgBuf.Bytes())
})

ctx := context.Background()
frame, err := camera.DecodeImageFromCamera(ctx, rutils.MimeTypePNG, nil, camera1Client)
test.That(t, err, test.ShouldBeNil)
Expand All @@ -528,20 +477,6 @@ func TestClientLazyImage(t *testing.T) {
frameLazy := frame.(*rimage.LazyEncodedImage)
test.That(t, frameLazy.RawData(), test.ShouldResemble, imgBuf.Bytes())

// TODO(hexbabe): remove below test when Stream/ReadImage pattern is refactored
t.Run("lazily decode from ReadImage", func(t *testing.T) {
ctx = gostream.WithMIMETypeHint(context.Background(), rutils.WithLazyMIMEType(rutils.MimeTypePNG))
frame, _, err = camera.ReadImage(ctx, camera1Client)
test.That(t, err, test.ShouldBeNil)
test.That(t, frame, test.ShouldHaveSameTypeAs, &rimage.LazyEncodedImage{})
frameLazy = frame.(*rimage.LazyEncodedImage)
test.That(t, frameLazy.RawData(), test.ShouldResemble, imgBuf.Bytes())
test.That(t, frameLazy.MIMEType(), test.ShouldEqual, rutils.MimeTypePNG)
compVal, _, err := rimage.CompareImages(img, frame)
test.That(t, err, test.ShouldBeNil)
test.That(t, compVal, test.ShouldEqual, 0) // exact copy, no color conversion
})

ctx = context.Background()
frame, err = camera.DecodeImageFromCamera(ctx, rutils.WithLazyMIMEType(rutils.MimeTypePNG), nil, camera1Client)
test.That(t, err, test.ShouldBeNil)
Expand Down Expand Up @@ -619,78 +554,6 @@ func TestClientWithInterceptor(t *testing.T) {
test.That(t, conn.Close(), test.ShouldBeNil)
}

func TestClientStreamAfterClose(t *testing.T) {
// Set up gRPC server
logger := logging.NewTestLogger(t)
listener, err := net.Listen("tcp", "localhost:0")
test.That(t, err, test.ShouldBeNil)
rpcServer, err := rpc.NewServer(logger, rpc.WithUnauthenticated())
test.That(t, err, test.ShouldBeNil)

// Set up camera that can stream images
img := image.NewNRGBA(image.Rect(0, 0, 4, 4))
injectCamera := &inject.Camera{}
injectCamera.PropertiesFunc = func(ctx context.Context) (camera.Properties, error) {
return camera.Properties{}, nil
}
injectCamera.ImageFunc = func(ctx context.Context, mimeType string, extra map[string]interface{}) ([]byte, camera.ImageMetadata, error) {
imgBytes, err := rimage.EncodeImage(ctx, img, mimeType)
test.That(t, err, test.ShouldBeNil)
return imgBytes, camera.ImageMetadata{MimeType: mimeType}, nil
}

// Register CameraService API in our gRPC server.
resources := map[resource.Name]camera.Camera{
camera.Named(testCameraName): injectCamera,
}
cameraSvc, err := resource.NewAPIResourceCollection(camera.API, resources)
test.That(t, err, test.ShouldBeNil)
resourceAPI, ok, err := resource.LookupAPIRegistration[camera.Camera](camera.API)
test.That(t, err, test.ShouldBeNil)
test.That(t, ok, test.ShouldBeTrue)
test.That(t, resourceAPI.RegisterRPCService(context.Background(), rpcServer, cameraSvc), test.ShouldBeNil)

// Start serving requests.
go rpcServer.Serve(listener)
defer rpcServer.Stop()

// Make client connection
conn, err := viamgrpc.Dial(context.Background(), listener.Addr().String(), logger)
test.That(t, err, test.ShouldBeNil)
client, err := camera.NewClientFromConn(context.Background(), conn, "", camera.Named(testCameraName), logger)
test.That(t, err, test.ShouldBeNil)

// Get a stream
stream, err := client.Stream(context.Background())
test.That(t, stream, test.ShouldNotBeNil)
test.That(t, err, test.ShouldBeNil)

// Read from stream
media, _, err := stream.Next(context.Background())
test.That(t, media, test.ShouldNotBeNil)
test.That(t, err, test.ShouldBeNil)

// Close client and read from stream
test.That(t, client.Close(context.Background()), test.ShouldBeNil)
media, _, err = stream.Next(context.Background())
test.That(t, media, test.ShouldBeNil)
test.That(t, err.Error(), test.ShouldContainSubstring, "context canceled")

// Get a new stream
stream, err = client.Stream(context.Background())
test.That(t, stream, test.ShouldNotBeNil)
test.That(t, err, test.ShouldBeNil)

// Read from the new stream
media, _, err = stream.Next(context.Background())
test.That(t, media, test.ShouldNotBeNil)
test.That(t, err, test.ShouldBeNil)

// Close client and connection
test.That(t, client.Close(context.Background()), test.ShouldBeNil)
test.That(t, conn.Close(), test.ShouldBeNil)
}

// See modmanager_test.go for the happy path (aka, when the
// client has a webrtc connection).
func TestRTPPassthroughWithoutWebRTC(t *testing.T) {
Expand Down
14 changes: 0 additions & 14 deletions components/camera/fake/camera_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,6 @@ func TestRTPPassthrough(t *testing.T) {
cam, err := NewCamera(context.Background(), nil, cfg, logger)
test.That(t, err, test.ShouldBeNil)

// TODO(hexbabe): remove below test when Stream/ReadImage pattern is refactored
t.Run("test Stream and Next", func(t *testing.T) {
camera, err := NewCamera(context.Background(), nil, cfg, logger)
test.That(t, err, test.ShouldBeNil)

stream, err := camera.Stream(context.Background())
test.That(t, err, test.ShouldBeNil)
img, _, err := stream.Next(context.Background())
test.That(t, err, test.ShouldBeNil)
// GetImage returns the world jpeg
test.That(t, img.Bounds(), test.ShouldResemble, image.Rectangle{Max: image.Point{X: 480, Y: 270}})
test.That(t, camera, test.ShouldNotBeNil)
})

img, err := camera.DecodeImageFromCamera(context.Background(), utils.MimeTypeRawRGBA, nil, cam)
test.That(t, err, test.ShouldBeNil)
// GetImage returns the world jpeg
Expand Down
Loading
Loading