Questions tagged [shapes]

Questions related to drawing or defining shapes.

A shape is a geometric representation of some object, defined by the external boundaries which encompass the object.

For 2-D shapes like the circle, , and rectangle their shape is constructed of lines connected together.

3-D shapes are defined by a 2-D which envelopes the interior 3-D volume.

4362 questions
1
vote
1 answer

Expected input_1 to have shape (224, 224, 3) but got array with shape (400, 401, 3)

I am getting the following error while calling the model.predict function when running a text classification model in Keras. Expected input_1 to have shape (224, 224, 3) but got array with shape (400, 401, 3) This is the code of my model from…
Opt ZqGeo
  • 19
  • 3
1
vote
0 answers

R Incorrect show shape file

I try to open shape file in R from this site shape <- readOGR(dsn = "/home/user/QGis/50m_physical", layer = "ne_50m_land") shape_bord <- readOGR(dsn = "/home/user/QGis/50m_cultural", layer = "ne_50m_admin_0_boundary_lines_land") map<-…
1
vote
1 answer

How to create random circle locations when Button is pressed in JavaFX?

I'm trying to learn Java from a Udemy course and I was asked to create an assignment before moving into the following sections. The assignment is to write a JavaFX application that displays a circle and a button and every time said button is pressed…
Rose
  • 35
  • 6
1
vote
0 answers

How to use javascript to make this shape and add javascript animation to it

I am trying to do a sample weather application for a quite long time now, but can not produce the same effect as seen here. Basically, it has to show sunrise and sunset information, but use similar effects in visualization. Can someone assist on…
dev m
  • 47
  • 1
  • 9
1
vote
1 answer

In tensorflow is there a way to find out a shape (rank) of elements' outputs while building a graph?

I'm trying to build a graph in tensorflow. But it gives me an error that I have wrong rank of shape. So, I'm trying to locate at which step something went wrong. Is there a chance to find out shapes of elements's outputs while building a graph? For…
Alena
  • 125
  • 2
  • 2
  • 11
1
vote
1 answer

Adjacency list to model relationships between relatively-positioned shapes?

I'm trying to model a composite object that consists of one or more shapes. For simplicity, I'll assume the shapes are all rectangles. A composite might look like this (forgive my poor ASCII art): +---+-------+---+ | | 2 | 5 | | …
ThisSuitIsBlackNot
  • 23,492
  • 9
  • 63
  • 110
1
vote
1 answer

Drawing shape with open lines in Java(f)x Canvas

Is it possible to draw a shape with open ends? E.g.: Let's say I want to draw a tree, which roots are open. Is there a elegant way to let the ends open, without overdrawing the already drawed lines? I could overdraw it with shapes, which are exactly…
Broken Dust
  • 19
  • 1
  • 3
1
vote
2 answers

Is it possible to draw a shape with 4 points where the shape is filled with an image?

I have for points in 2d space (p1, p2, p3, p4) where I want to draw a shape using them, but also want to fill inside this shape with an Image file (png). I won't have any borders, just the Image itself filling the dimensions of the shape fully. I…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
1
vote
2 answers

Circle between two buttons - show half circle on one and half on other using CSS only

circle over two buttons I want to have a circle between two buttons and show a half circle on one and a half on other using CSS. I have searched this but nothing appeared to be similar to this. I have to do this only with HTML and CSS. So far I'm…
1
vote
2 answers

how to check if an element is going out of its parent in c# wpf

I am creating shapes at run time on canvas in my app and except all the shapes, ellipse is going out of canvas. How do I restrict it to canvas? All other shapes are contained in canvas because of the control points at their vertices. How do I keep a…
1
vote
1 answer

Record and store a path of a curved shape

I would like to record the user's input in my drawing application. It can draw whatever he wants, not only shape with straight line. How can I record, in a single path, all the moves that the user does when he draws, for example, a particular…
Babbara
  • 448
  • 1
  • 6
  • 21
1
vote
0 answers

Delimit drawing area in Android

I made this application which lets the user to draw. Now, I would like to delimit it, so that the user can draw, for example, only in the center of the screen. Are there methods to set a group of coordinates as…
Babbara
  • 448
  • 1
  • 6
  • 21
1
vote
0 answers

Map coordinates of an element in an image by knowing only the resolution - Android

I'm trying to develop an Android app to recognize if a user is drawing inside a shape. This is an example: https://i.stack.imgur.com/9fguh.jpg I know that the picture resolution is 512x512, how can I get and specify the range of coordinates of that…
JimBelushi2
  • 285
  • 1
  • 3
  • 18
1
vote
1 answer

Autodetection of shapes' types of connected neighbours for Microsoft Visio 2013 / 16

I have created my own list of master shapes and put it on VSS-file. There is a shape-connector to connect the rest ones. This connector has some lines at Action Section. I have looked through many sites but found nothing about the possibility to…
Konstantin
  • 57
  • 1
  • 8
1
vote
2 answers

Generate and place random points inside a circle

I have a task where I am supposed to create a circle and plot some random points inside it. I am new to Python and Python libraries. I need some suggestions about different software or packages that might help me with my task. I have seen some…
Fragger98
  • 33
  • 7