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

UIview and adding shapes #61

Open
squidsirymchenry opened this issue Dec 28, 2019 · 3 comments
Open

UIview and adding shapes #61

squidsirymchenry opened this issue Dec 28, 2019 · 3 comments

Comments

@squidsirymchenry
Copy link

Hi, am trying to find the location where I can edit the UIview for several reasons, it would be a great help if you can help.

  1. I need to shift the UIView upwards, how is this possible? I tried tracking down the code but no matter what values I changed it seemed the same
  2. I want to test a few coordinates on the View, however, when I add a rectangle, I can't update it, and I believe this is related to the original problem of not being able to move the UIView up. I know this might be a simple issue I'm overlooking but if you can help, I would greatly appreciate it.
    Thanks
@hollance
Copy link
Owner

hollance commented Jan 6, 2020

I'm not exactly sure what you're asking... Which UIView do you want to shift?

Note that there are a couple of things going on in the app:

  • There is the camera preview layer. You can change how this looks by setting the videoGravity option.
  • There are the bounding boxes. These are translated to fit onto the preview layer. You may need to change the maths for this.

@squidsirymchenry
Copy link
Author

squidsirymchenry commented Jan 6, 2020

I mean mostly the main problem is not being able to add points to the UI View, if I add points it's not showing, even if I add to the sublayer, or am I adding to the wrong sublayer?
(points, rectangles and etc ^. Thats what I meant by points).
The camera preview layer somehow overlays certain things within my main.storyboard. It shifts stuff around and resizes them. This isn't a big problem for me though, my main issue is the rectangle placing, or adding a point in the center of every bounding box. that shifts when the camera moves.

@squidsirymchenry
Copy link
Author

Also I'm trying to find the coordinates of the bounding boxes, but the values that come out are a little weird. Any tips on this as well?

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

No branches or pull requests

2 participants