Joined: Thu Jan 15, 2015 10:57 am Posts: 9 Location: Italy
Mindsensors Pixycam Adapter
I recently purchased Pixycam adapter from Mindsensors and I'm testing it with Xander's drivers. Anyone knows the value to enter to scale the blobs size from cam(I don't know cam resolution) to EV3 display?
Code:
// short xscale(short x) - Scales x values from camera coordinates to screen coordinates. short xscale(short x) { return ((x - 12) * 99) / 175; }
// short yscale(short y) - Scales y values from camera coordinates to screen coordinates. short yscale(short y) { return ((143 - y) * 63) / 143; }
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum