Skip to content

Pixel coords - #7

Open
JaredMohansingh wants to merge 7 commits into
image_maskingfrom
pixel_coords
Open

Pixel coords#7
JaredMohansingh wants to merge 7 commits into
image_maskingfrom
pixel_coords

Conversation

@JaredMohansingh

Copy link
Copy Markdown
Contributor

Camera script updated to include the calculations that :

  1. Calculate the coordinates of the tool tip in the image.
  2. Determine of the tool tip is visible in the image
  3. Leave out the entry in the coords.txt file if the tooltip is not visible in the image

…mitting entries in coords file when tooltip blocked
@sarika93
sarika93 changed the base branch from main to image_masking June 28, 2022 20:01

@sarika93 sarika93 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review. Still need to test this.

Comment thread RobotTesting/Assets/Scripts/CameraController.cs Outdated
Comment thread RobotTesting/Assets/Scripts/CameraController.cs Outdated
Comment thread RobotTesting/Assets/Scripts/CameraController.cs Outdated
Comment thread RobotTesting/Assets/Scripts/CameraController.cs Outdated
Comment thread RobotTesting/Assets/Scripts/CameraController.cs Outdated
Comment thread RobotTesting/Assets/Scripts/CameraController.cs Outdated
Comment thread RobotTesting/Assets/Scripts/CameraController.cs Outdated
Comment thread RobotTesting/coords.txt Outdated
Comment thread RobotTesting/Assets/Scripts/CameraController.cs Outdated
…eights + modified camera controller script for better variable names/comments + removed hardcoding for camera intrinsics

private bool ToolTipVisible() {
_fileLength = new System.IO.FileInfo("MaskedImages/MaskedImage" + _imageNumber + ".jpg").Length;
if ( _fileLength > 250628 ) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will this work if you have two cameras with different image sizes (highly probable)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, we'll only be using one camera. Add a TODO to update this to be more robust to deal with multiple cameras instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants