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

Pixel coords #7

Open
wants to merge 7 commits into
base: image_masking
Choose a base branch
from
Open

Pixel coords #7

wants to merge 7 commits into from

Conversation

JaredMohansingh
Copy link
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
Copy link
Member

@sarika93 sarika93 left a comment

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.

RobotTesting/Assets/Scripts/CameraController.cs Outdated Show resolved Hide resolved
RobotTesting/Assets/Scripts/CameraController.cs Outdated Show resolved Hide resolved
RobotTesting/Assets/Scripts/CameraController.cs Outdated Show resolved Hide resolved
RobotTesting/Assets/Scripts/CameraController.cs Outdated Show resolved Hide resolved
RobotTesting/Assets/Scripts/CameraController.cs Outdated Show resolved Hide resolved
RobotTesting/Assets/Scripts/CameraController.cs Outdated Show resolved Hide resolved
RobotTesting/Assets/Scripts/CameraController.cs Outdated Show resolved Hide resolved
RobotTesting/coords.txt Outdated Show resolved Hide resolved
RobotTesting/Assets/Scripts/CameraController.cs Outdated Show resolved Hide resolved
…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
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
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