Skip to content
Snippets Groups Projects
Commit 7f9895d1 authored by Gaël Cartier-Michaud's avatar Gaël Cartier-Michaud
Browse files

modif no harvest mode

parent de09a32f
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,8 @@ class Detector :
self.nothing_counter = 0
self.myCam = Cam( config )
self.myModel = Model( config )
self.myArm = Arm( config )
if self.harvest :
self.myArm = Arm( config )
self.myModel.add_callback( self.__harvestCallback )
self.harvest_job = Thread( target = self.myArm.harvest, args = ( self.myArm.target, ) )
......@@ -59,8 +59,8 @@ class Detector :
for img in self.myCam.stream() :
self.myModel.predict( img )
if cv2.waitKey(25) & 0xFF == ord('q') or self.exit_status :
self.myArm.closeCommunication()
cv2.destroyAllWindows()
if self.harvest : self.myArm.closeCommunication()
break
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment