Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
mayarajan3 committed Oct 17, 2024
1 parent 23fdd14 commit 187a273
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LineDetection.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@

writeCoordinatesToFile(allCoordinates) {
const content = allCoordinates.map((frame, index) =>
`Frame ${index + 1}:\n${frame.map(coord => coord.join(',')).join('\n')}\n`
).join('\n');
`export const baseLine = [${frame.map(coord => ("[" + coord.join(',') + "]"))}]\n`
);
const blob = new Blob([content], { type: 'text/plain' });
const a = document.createElement('a');
a.href = URL.createObjectURL(blob);
a.download = 'coordinates.txt';
a.download = 'iterations.txt';
a.click();
URL.revokeObjectURL(a.href);
}
Expand Down

0 comments on commit 187a273

Please sign in to comment.