hollance / YOLO-CoreML-MPSNNGraph

Tiny YOLO for iOS implemented using CoreML but also using the new MPS graph API.
MIT License
929 stars 251 forks source link

UIview and adding shapes #61

Open squidsirymchenry opened 4 years ago

squidsirymchenry commented 4 years ago

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 commented 4 years ago

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:

squidsirymchenry commented 4 years ago

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 commented 4 years ago

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?