Skip to content

Releases: fernaper/cv2-tools

v2.2.2 cv2-tools

26 May 19:02
062068e
Compare
Choose a tag to compare

🎉 Another version!

Important changes

  • ✨ The method draw of the class SelectorCV2 now supports a new optional parameter called coordinates. If you pass a touple of coordinates into it (with (x,y) format), it will only paint the tags of the selections that contain those coordinates. If you don't use this param or use with (-1,-1) it will draw all the tags (as always). It is useful for example if we only want to show tags when mouse is on a selection. (See example mouse_track.py) #51
  • 🐛 Solved bug sometimes checking the FPS #55
  • 🔧 Now it doesn't print warnings until you explicitly demand it (changing Utils.IGNORE_ERRORS to False) #59
  • ✨ Now it is possible to add free tags (without any selection). Have in mind that it is not affected by the new featured (draw with coordinates) because it has no selection. You can use it with selector.add_free_tags(coordinates, tags), and draw as always. #49

Thats all for now, but we are working on much more, so stay tuned.

v2.2.0 cv2-tools

04 May 19:43
ba33c9f
Compare
Choose a tag to compare

🎉 v2.2.0 New version

Important changes

  • ✨ Added multiple keystroke handlers (not with a final version)
  • ✨ Added option to draw each selection with different properties
  • 🔧 Now it prints warnings instead of raising exceptions
  • 🐛 Solved bug changing margins (now you just can't change it 😄)
  • 📝 Added so much documentation (also with a basic Wiki)
  • ✨ Created ManagmentCV2 object to manage streams easily and over 52% faster. See here.
  • 🐛 Solved unexpected bug, if there is no perfect solution to positionate the tags, in some cases it raised an exception.

And I think it is all for now.
Have a nice day!

v2.0.2 cv2-tools

14 Apr 17:59
aada297
Compare
Choose a tag to compare

🎉 Migrate project into cv2-tools

cv2-tools

This is a really important version because from now on, we are not going to support more de PyPi project opencv-draw-tools-fernaperg.
It is because, we did big changes. The purpose of opencv-draw-tools-fernaperg was only to help drawing information on top of a frame while the purpose of cv2-tools is to help managing Opencv.

That's why cv2-tools starts its trajectory exactly where opencv-draw-tools-fernaperg ends.

Some important changes

  • Most of the imports change.
  • Now we can draw polygons (first approach).
  • Added a new class to manage streams easily (ManagerCV2)

Future updates

  • Upgrade polygons.
  • Being capable to draw each object with different parameters.
  • Being capable to save and load preprocessed drawing data.

v1.1.1 opencv-draw-tools

31 Mar 15:06
fd993db
Compare
Choose a tag to compare

🎉 🐛 Fixed bugs selecting multiple zones

  • Solved three important issues:
    • #26: Bug collision of rectangles
    • #27: Bug when there is no valid tag position
    • #28: Detected wrong behaviour (it only checks if a tag was correctly positioned with the next tag, and it should check with all the other tags)

Known bugs

  • #24: There is still problems if you decide to change the margin (for now, just keep it with 5 pixels)

Will I have to adapt my previous implementations?

No, all things changed from version 1.0.1 only affects inside the library, for the external developers the interface is exactly the same.

v1.0.1 opencv-draw-tools

10 Mar 16:16
ec6787f
Compare
Choose a tag to compare

🎉 New release, now select multiple zones!

Changes

  • Fixed bugs trying to place tags
  • Added a complete new function called select_multiple_zones.
    • This function allows you to select more than one zone at the same time while it is checking the other positions (so it is trying to avoid overwritten information).
    • In the previous release (and also now) you can call the method select_zone multiple times, but it doesn't check the other zones to positionate correctly the tags.
    • Added new dependencie: constraint (this is usefull for checking all the posible options and selecting the best in a really good time)

Example of intelligence placing tags:

opencv-draw-tools-2

v0.2.0 opencv-draw-tools

02 Mar 19:41
cd18db6
Compare
Choose a tag to compare

🎉 Stable and tested release.

Used in companies such as Softpoint or in Master's projects at Universidad Complutense de Madrid.

If you want to install this version via pip, you could do with the following command:
pip install opencv-draw-tools-fernaperg==0.2.0

Changes

  • Now you can draw filled rectangles (with less opacity than the edge of the rectangle).
    For this you will need to provide a new optional parameter when using the method select_zone.
    Parameter: filled (default False)
  • Now you can provide multiline tags and the method will manage them correctly.
  • Added visual information to know to whom each tag belongs (not shown in the picture below).
  • Fixed bug with topside tags.

image
Image generated with Intel Openvino Toolkit and drawed with opencv-draw-tools v0.1.9

v0.0.4 opencv-draw-tools

23 Feb 16:55
4afd94b
Compare
Choose a tag to compare

🎉 First Release 🎉

From now on it can be installed with:

pip install opencv-draw-tools-fernaperg

It is easier to use than ever, you can just select a zone and add tags to them just by writting:

import opencv_draw_tools as cv2_tools
...
cv2_tools.select_zone(frame, position, tags)
  • frame: opencv frame
  • position: tuple with (x1,y1,x2,y2)
  • tags: list of strings

Also you can test it now with only two lines:

import opencv_draw_tools as cv2_tools
cv2_tools.webcam_test()

v0.0.1 opencv-draw-tools

10 Feb 13:34
48b9c47
Compare
Choose a tag to compare
Pre-release

First stable version, allows to select zones and auto-position the tags without previous configuration.
There are still many new features to be added, and we are working on them.