Create a default annoation shape in cytomine


I wonder if there is a way to create a default annotation shape in cytomine, e.g : can we impose that the annotator annotates with a fixed size square?

Thanks in advance and good day,

No, not by default in the open source version.
But, if you have some Python skills, this can be done externally using the Cytomine Python client

Exemple :

  1. ask your users to create points using the UI;
  2. fetch points coordinates using a python script : example of python script;
  3. compute the coordinates of the 4 corners of your square, using the calibration data of your image;
  4. push your squares in the Cytomine DB using .save() or .update() methods : example of python script using add.

I hope that it will help you to reach your goals.

Have a nice day.


1 Like