DrAlexLiu / OctoPrint-PiNozCam

AI model running on RPi for failure detection
GNU Affero General Public License v3.0
39 stars 4 forks source link

Feature request: delay in starting detection and crop camera image #25

Closed giovi321 closed 3 months ago

giovi321 commented 4 months ago

I have a problem: the camera is a wide lens, so it sees a little bit also outside the printing bed when it is in the home position and detects some wires as a printing failure. I see two options:

  1. Add a delay before starting to detect failures, so that when i start the print PiNozCam waits 20 seconds for the bed to be centered
  2. Crop the image of the camera to a region
DrAlexLiu commented 4 months ago

Sure. I will add delay and mask on the camera.

DrAlexLiu commented 3 months ago

@giovi321

Thank you for using this plugin. I'm sorry for getting back to you so late. Finally, I have fulfilled your request.

Please use this branch to test, and let me know if you have any feedback.

  1. You can put any minutes for waiting to start. Default is 0.

  2. It has a mask image function. Masked image areas will not be considered in AI analysis.

https://github.com/DrAlexLiu/OctoPrint-PiNozCam/archive/test.zip

test.zip

giovi321 commented 3 months ago

Thank you so much!

DrAlexLiu commented 3 months ago

@giovi321

May I ask how is your test going? This weekend, I will merge the test branch into the main branch. If everything good, I will release the 1.0.2.

I welcome any feedback. Also, welcome to join the discord.

DrAlexLiu commented 3 months ago

Release v1.0.2 to support your request.

Use this. https://github.com/DrAlexLiu/OctoPrint-PiNozCam/archive/master.zip