CVHub520 / X-AnyLabeling

Effortless data labeling with AI support from Segment Anything and other awesome models.
GNU General Public License v3.0
3.79k stars 438 forks source link

十字线 还有 打标线框的颜色可以自定义吗 #470

Closed lhj5426 closed 1 month ago

lhj5426 commented 3 months ago

image 如图上所示 您所看到的那样 这个默认的绿色 辅助十字线 在我的图上几乎不可见 看起来很累 我可以修改成其他颜色么 还有可以 修改其尺寸吗 像这样

https://github.com/CVHub520/X-AnyLabeling/assets/30548000/11b5d0ad-c419-49fa-9a89-c6eb4e40dbdc

CVHub520 commented 3 months ago

Hey! @lhj5426:

I understand that you would like to customize the color and size of the crosshair and the marking box in the application. 👀

Currently, the feature to change the style of the crosshair is not available in the current version. However, I'm pleased to inform you that this feature is on our roadmap and will be included in the next version, which is expected to be released soon.

Please look forward to the upcoming update, which will allow you to customize the crosshair to better suit your needs.

Thank you for your patience and for suggesting improvements to the application!

CVHub520 commented 3 months ago

Btw, although the current version of the application does not support direct customization of the crosshair and marking box colors and sizes, there is a workaround you can use to adjust the visibility of the crosshair.

Specifically, you can open the menu bar at the top of the interface, go to View, and select Brightness Contrast. 🎨

Here, you can tweak the contrast and saturation to reduce the visual impact. If you find a setting that works for you, you can also check the box for Keep Previous Scale or similar options to apply these changes to subsequent images.

Additionally, if you're comfortable with modifying the source code, you can download the source and make changes to the file X-AnyLabeling/anylabeling/views/labeling/widgets/canvas.py, specifically on line 1238.

You can change the color and size of the crosshair by modifying the QtGui.QColor and max(1, int(round(2.0 / Shape.scale))) values to your desired settings.

Here's an example of how you can change the color and size:

pen = QtGui.QPen(
    QtGui.QColor("#FF0000"),  # Change the color to red
    3,  # Set the line width to 3
    Qt.DashLine,
)

Remember to adjust the values to your preference. After making these changes, you'll need to rebuild the application. This temporary solution should help you customize the crosshair until the feature is officially added in the next version.

Best, CVHub

lhj5426 commented 3 months ago

Btw, although the current version of the application does not support direct customization of the crosshair and marking box colors and sizes, there is a workaround you can use to adjust the visibility of the crosshair.

Specifically, you can open the menu bar at the top of the interface, go to View, and select Brightness Contrast. 🎨

Here, you can tweak the contrast and saturation to reduce the visual impact. If you find a setting that works for you, you can also check the box for Keep Previous Scale or similar options to apply these changes to subsequent images.

Additionally, if you're comfortable with modifying the source code, you can_ download _the source and make changes to the file X-AnyLabeling/anylabeling/views/labeling/widgets/canvas.py, specifically on line 1238.

You can change the color and size of the crosshair by modifying the QtGui.QColor and max(1, int(round(2.0 / Shape.scale))) values to your desired settings.

Here's an example of how you can change the color and size:

pen = QtGui.QPen(
    QtGui.QColor("#FF0000"),  # Change the color to red
    3,  # Set the line width to 3
    Qt.DashLine,
)

Remember to adjust the values to your preference. After making these changes, you'll need to rebuild the application. This temporary solution should help you customize the crosshair until the feature is officially added in the next version.

Best, CVHub

Thank you for your response. I will try the temporary solution you proposed. And I am looking forward to the future new version. Thank you for your help.

CVHub520 commented 3 months ago

Hey there! 🎉

I'm excited to let you know that we've just pushed an update to our repository, where we've implemented the feature you requested. You can now customize the color and size of the crosshair and marking box in our application. 🎨

Please give it a try and let us know if everything works as expected. Your feedback is invaluable to us, and we're always striving to improve your experience. 🚀

Thank you for your patience and for contributing to making our application better! If you have any further suggestions or issues, don't hesitate to reach out. 😊

https://github.com/CVHub520/X-AnyLabeling/assets/72010077/381bf84c-7ce0-4534-a9fd-c193e95f1182

lhj5426 commented 3 months ago

Hey there! 🎉

I'm excited to let you know that we've just pushed an update to our repository, where we've implemented the feature you requested. You can now customize the color and size of the crosshair and marking box in our application. 🎨

Please give it a try and let us know if everything works as expected. Your feedback is invaluable to us, and we're always striving to improve your experience. 🚀

Thank you for your patience and for contributing to making our application better! If you have any further suggestions or issues, don't hesitate to reach out. 😊

1.mp4

"So fast! Thanks to the efforts of the developers. So where should I download this latest version? I opened it here but it seems I can't see it? EXE" https://github.com/CVHub520/X-AnyLabeling/releases

CVHub520 commented 3 months ago

Hey there! 🎉 I'm excited to let you know that we've just pushed an update to our repository, where we've implemented the feature you requested. You can now customize the color and size of the crosshair and marking box in our application. 🎨 Please give it a try and let us know if everything works as expected. Your feedback is invaluable to us, and we're always striving to improve your experience. 🚀 Thank you for your patience and for contributing to making our application better! If you have any further suggestions or issues, don't hesitate to reach out. 😊 1.mp4

"So fast! Thanks to the efforts of the developers. So where should I download this latest version? I opened it here but it seems I can't see it? EXE" https://github.com/CVHub520/X-AnyLabeling/releases

The new gui version is not release yet, you can git clone the source code first.

lhj5426 commented 3 months ago

Hey there! 🎉 I'm excited to let you know that we've just pushed an update to our repository, where we've implemented the feature you requested. You can now customize the color and size of the crosshair and marking box in our application. 🎨 Please give it a try and let us know if everything works as expected. Your feedback is invaluable to us, and we're always striving to improve your experience. 🚀 Thank you for your patience and for contributing to making our application better! If you have any further suggestions or issues, don't hesitate to reach out. 😊 1.mp4

"So fast! Thanks to the efforts of the developers. So where should I_ download _this latest version? I opened it here but it seems I can't see it? EXE" https://github.com/CVHub520/X-AnyLabeling/releases

The new gui version is not release yet, you can git clone the source code first.

Hey there! 🎉 I'm excited to let you know that we've just pushed an update to our repository, where we've implemented the feature you requested. You can now customize the color and size of the crosshair and marking box in our application. 🎨 Please give it a try and let us know if everything works as expected. Your feedback is invaluable to us, and we're always striving to improve your experience. 🚀 Thank you for your patience and for contributing to making our application better! If you have any further suggestions or issues, don't hesitate to reach out. 😊 1.mp4

"So fast! Thanks to the efforts of the developers. So where should I_ download _this latest version? I opened it here but it seems I can't see it? EXE" https://github.com/CVHub520/X-AnyLabeling/releases

The new gui version is not release yet, you can git clone the source code first.

Actually, I don't understand the code. I've been relying on GPT to get by. I guess I'll just wait for the GUI EXE version to be released. Haha.

lhj5426 commented 3 months ago

https://github.com/CVHub520/X-AnyLabeling/releases "The last time you uploaded the packaged version was last month. Could you please release a new packaged version with the accumulated updates this month?" Thank you

lhj5426 commented 3 months ago

image image

I woke up this morning and learned how to install and run from the source code, which was very helpful. I'm wondering, can the size of this marked box also be adjusted? It's too thin and uncomfortable to look at, and it strains my eyes

lhj5426 commented 3 months ago

image

CVHub520 commented 3 months ago

Not support yet. I'm planning to add direct configuration support for the marker box size in the future, which will allow users to adjust it without modifying the source code.

Thank you for your understanding.

lhj5426 commented 3 months ago

Thank you for your efforts. I look forward to future updates and optimizations.

CVHub520 commented 3 months ago

Dear user,

🎉 Great news! The feature you requested has been implemented. You can now adjust the size of the marking box for a more comfortable viewing experience. 📏✨ This should help alleviate eye strain and make your work easier on the eyes.

Usage: open and edit the configruation file which under your custom user directory (~/.xanylabelingrc):

...
# canvas
shape:
  # drawing
  line_color: [0, 255, 0, 128]
  fill_color: [220, 220, 220, 150]
  vertex_fill_color: [0, 255, 0, 255]
  # selecting / hovering
  select_line_color: [255, 255, 255, 255]
  select_fill_color: [0, 255, 0, 155]
  hvertex_fill_color: [255, 255, 255, 255]
  point_size: 8
  line_width: 2  # modify the value here!
...

Thank you for your patience and for providing valuable feedback. Your input is greatly appreciated and helps make this project better for everyone. 🙌

If you encounter any issues or have further suggestions, please don't hesitate to reach out. Enjoy the updated features!

Good lucks!

lhj5426 commented 3 months ago

image Dear Developer, Thank you for your work. It's really great now. Using the computer from a distance, my eyes are not as tired as before. I really want to express my appreciation for your help

lhj5426 commented 3 months ago

image "I also want to ask, is the color code value in RGBA format? I see that RGB has only three sets of values, but RGBA has four."

CVHub520 commented 3 months ago

image "I also want to ask, is the color code value in RGBA format? I see that RGB has only three sets of values, but RGBA has four."

Yes, you're right. The value like [0, 255, 0, 128] represents that the RGBA format, where A means that the opacity.

lhj5426 commented 3 months ago

Thank you very much. I understand now.