ProcessImageManualJob
class ProcessImageManualJob extends Job implements ShouldQueue
Traits
Batchable
InteractsWithQueue
SerializesModels
Queueable
Dispatchable
Properties
| $tries | |||
| int | $imageId | ID of the image to process. |
|
| int | $volumeId | ID of the volume of the image. Required to release the lock if the image was deleted. |
Methods
void
__construct(Image $image, Label $label, float $distance, bool $batch = false)
Create a new job instance.
void
handle()
Execute the job.
array
void
releaseLock()
Release the lock of a single image detection. The lock of a volume detection is released by the batch.
Details
at line 55
void
__construct(Image $image, Label $label, float $distance, bool $batch = false)
Create a new job instance.
at line 71
void
handle()
Execute the job.
at line 90
void
failed(Throwable|null $exception)
Handle a job failure.
at line 102
protected void
detect(Image $image)
Perform the laser point detection.
at line 132
protected array
getLaserpoints(Image $image)
Collects the laser point annotations of the given image.
at line 152
protected void
releaseLock()
Release the lock of a single image detection. The lock of a volume detection is released by the batch.