1. Added import and export actions with labels and warning colors for the following resources:
- LineResource - LineStopResource - LocatorResource - MachineResource - MfmMeterResource - MfmParameterResource - MotorTestingMasterResource - PlantResource - ProductionLineStopResource - ProductionPlanResource - ProductionQuantityResource - QualityValidationResource - SerialValidationResource - ShiftResource - StickerMasterResource - UserResource - WorkGroupMasterResource 2. Updated camera capture functionality to ensure overlay canvas size syncs with video size.
This commit is contained in:
@@ -993,6 +993,15 @@ function cameraCapture() {
|
||||
this.$refs.snapshot.classList.add('hidden');
|
||||
this.$refs.video.classList.remove('hidden');
|
||||
await this.initCamera();
|
||||
await new Promise(resolve => {
|
||||
this.$refs.video.onloadedmetadata = resolve;
|
||||
});
|
||||
|
||||
// ✅ Sync overlay canvas size with video size
|
||||
const video = this.$refs.video;
|
||||
const overlay = this.$refs.overlay;
|
||||
overlay.width = video.videoWidth;
|
||||
overlay.height = video.videoHeight;
|
||||
this.startDetection();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user