Skip to content

Commit 25c37f2

Browse files
committed
Folder rename
1 parent 968e01d commit 25c37f2

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

examples/official/10.x/README.md renamed to examples/official/camera_file/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Dynamsoft Capture Vision SDK for Barcode Detection
2-
This repository contains example code for using the Dynamsoft Capture Vision SDK to detect barcodes in images.
1+
# Python Barcode Scanner & Reader
2+
This repository contains example code for using the [Dynamsoft Capture Vision SDK](https://pypi.org/project/dynamsoft-capture-vision-bundle/) to detect barcodes from a camera video stream or an image file.
33

44
https://github.com/user-attachments/assets/18503750-68bd-4043-8187-353e7e8a7808
55

@@ -24,5 +24,5 @@ https://github.com/user-attachments/assets/18503750-68bd-4043-8187-353e7e8a7808
2424

2525

2626
## Examples
27-
- [camera.py](./camera.py): Detect barcodes from a camera video stream.
28-
- [file.py](./file.py): Detect barcodes from an image file and display the results in a window.
27+
- [camera.py](./camera.py): Scan barcodes from a camera video stream.
28+
- [file.py](./file.py): Read barcodes from an image file and display the results in a window.

examples/official/10.x/camera.py renamed to examples/official/camera_file/camera.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def on_captured_result_received(self, captured_result):
8585

8686
if cv2.waitKey(1) & 0xFF == ord('q'):
8787
break
88+
elif cv2.waitKey(1) & 0xFF == ord('c'):
89+
cv2.imshow('Captured Image', frame)
8890

8991
cv2.imshow('frame', frame)
9092

examples/official/10.x/file.py renamed to examples/official/camera_file/file.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@
5858
y3 = location.points[2].y
5959
x4 = location.points[3].x
6060
y4 = location.points[3].y
61-
del location
61+
print("Location Points:")
62+
print("({}, {})".format(x1, y1))
63+
print("({}, {})".format(x2, y2))
64+
print("({}, {})".format(x3, y3))
65+
print("({}, {})".format(x4, y4))
66+
print("-------------------------------------------------")
6267

6368
cv2.drawContours(
6469
cv_image, [np.intp([(x1, y1), (x2, y2), (x3, y3), (x4, y4)])], 0, (0, 255, 0), 2)

0 commit comments

Comments
 (0)