Skip to content

Commit ec2c59b

Browse files
Angelo DelliSantijohan-hultberg-work
authored andcommitted
Remove Artpec-7
1 parent 53e6a76 commit ec2c59b

33 files changed

+119
-343
lines changed

.github/workflows/hello-world-python.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ jobs:
1414
env:
1515
EXREPO: acap-computer-vision-examples
1616
EXNAME: hello-world-python
17-
strategy:
18-
matrix:
19-
include:
20-
- arch: armv7hf
21-
- arch: aarch64
2217
steps:
2318
- uses: actions/checkout@v2
2419
- uses: docker/setup-buildx-action@v2
@@ -30,4 +25,4 @@ jobs:
3025
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}:1.0
3126
run: |
3227
cd $EXNAME
33-
docker build --no-cache --build-arg ARCH=${{ matrix.arch }} --tag $imagetag .
28+
docker build --no-cache --tag $imagetag .

.github/workflows/minimal-ml-inference.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ jobs:
1717
strategy:
1818
matrix:
1919
include:
20-
- arch: armv7hf
21-
chip: cpu
22-
- arch: armv7hf
23-
chip: edgetpu
24-
- arch: aarch64
25-
chip: artpec8
20+
- chip: cpu
21+
- chip: artpec8
2622
steps:
2723
- uses: actions/checkout@v2
2824
- uses: docker/setup-buildx-action@v2
@@ -36,5 +32,5 @@ jobs:
3632
run: |
3733
cd $EXNAME
3834
docker run --rm --privileged multiarch/qemu-user-static --credential yes --persistent yes
39-
docker build --no-cache --build-arg CHIP=${{ matrix.chip }} --build-arg ARCH=${{ matrix.arch }} --tag $imagetag .
40-
docker build --file Dockerfile.model --tag $modeltag --build-arg ARCH=${{ matrix.arch }} .
35+
docker build --no-cache --build-arg CHIP=${{ matrix.chip }} --tag $imagetag .
36+
docker build --file Dockerfile.model --tag $modeltag .

.github/workflows/object-detector-python.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ jobs:
1414
strategy:
1515
matrix:
1616
include:
17-
- arch: armv7hf
18-
chip: cpu
19-
- arch: armv7hf
20-
chip: edgetpu
21-
- arch: aarch64
22-
chip: artpec8
17+
- chip: cpu
18+
- chip: artpec8
2319
env:
2420
EXREPO: acap-computer-vision-examples
2521
EXNAME: object-detector-python
@@ -35,5 +31,5 @@ jobs:
3531
modeltag: ${{ env.EXREPO }}_${{ env.EXNAME }}-${{ matrix.chip }}-model:1.0
3632
run: |
3733
cd $EXNAME
38-
docker build --no-cache --build-arg CHIP=${{ matrix.chip }} --build-arg ARCH=${{ matrix.arch }} --tag $imagetag .
39-
docker build --file Dockerfile.model --tag $modeltag --build-arg ARCH=${{ matrix.arch }} .
34+
docker build --no-cache --build-arg CHIP=${{ matrix.chip }} --tag $imagetag .
35+
docker build --file Dockerfile.model --tag $modeltag .

.github/workflows/opencv-qr-decoder-python.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ jobs:
1414
env:
1515
EXREPO: acap-computer-vision-examples
1616
EXNAME: opencv-qr-decoder-python
17-
strategy:
18-
matrix:
19-
include:
20-
- arch: armv7hf
21-
- arch: aarch64
2217
steps:
2318
- uses: actions/checkout@v2
2419
- uses: docker/setup-buildx-action@v2
@@ -30,4 +25,4 @@ jobs:
3025
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}:1.0
3126
run: |
3227
cd $EXNAME
33-
docker build --no-cache --build-arg ARCH=${{ matrix.arch }} --tag $imagetag .
28+
docker build --no-cache --tag $imagetag .

.github/workflows/parameter-api-python.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ jobs:
1414
env:
1515
EXREPO: acap-computer-vision-examples
1616
EXNAME: parameter-api-python
17-
strategy:
18-
matrix:
19-
include:
20-
- arch: armv7hf
21-
- arch: aarch64
2217
steps:
2318
- uses: actions/checkout@v2
2419
- uses: docker/setup-buildx-action@v2
@@ -30,4 +25,4 @@ jobs:
3025
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}:1.0
3126
run: |
3227
cd $EXNAME
33-
docker build --no-cache --build-arg ARCH=${{ matrix.arch }} --tag $imagetag .
28+
docker build --no-cache --tag $imagetag .

.github/workflows/pose-estimator-with-flask.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ jobs:
1717
strategy:
1818
matrix:
1919
include:
20-
- arch: armv7hf
21-
chip: cpu
22-
- arch: armv7hf
23-
chip: edgetpu
24-
- arch: aarch64
25-
chip: artpec8
20+
- chip: cpu
21+
- chip: artpec8
2622

2723
steps:
2824
- uses: actions/checkout@v2
@@ -37,5 +33,5 @@ jobs:
3733
run: |
3834
cd $EXNAME
3935
docker run --rm --privileged multiarch/qemu-user-static --credential yes --persistent yes
40-
docker build --no-cache --build-arg CHIP=${{ matrix.chip }} --build-arg ARCH=${{ matrix.arch }} --tag $imagetag .
41-
docker build --file Dockerfile.model --tag $modeltag --build-arg ARCH=${{ matrix.arch }} .
36+
docker build --no-cache --build-arg CHIP=${{ matrix.chip }} --tag $imagetag .
37+
docker build --file Dockerfile.model --tag $modeltag .

.github/workflows/web-server.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ jobs:
1414
env:
1515
EXREPO: acap-computer-vision-examples
1616
EXNAME: web-server
17-
strategy:
18-
matrix:
19-
include:
20-
- arch: armv7hf
21-
- arch: aarch64
2217
steps:
2318
- uses: actions/checkout@v2
2419
- uses: docker/setup-buildx-action@v2
@@ -31,4 +26,4 @@ jobs:
3126
run: |
3227
cd $EXNAME
3328
docker run --rm --privileged multiarch/qemu-user-static --credential yes --persistent yes
34-
docker build --no-cache --build-arg ARCH=${{ matrix.arch }} --tag $imagetag .
29+
docker build --no-cache --tag $imagetag .

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ step-by-step instructions on how to run applications on the camera.
3838

3939
The examples support the following architectures:
4040

41-
* armv7hf
4241
* aarch64
4342

4443
### Example applications for video analytics

hello-world-python/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG ARCH=armv7hf
43
ARG REPO=axisecp
54
ARG SDK_VERSION=1.15
65
ARG UBUNTU_VERSION=22.04
76

8-
FROM arm32v7/ubuntu:${UBUNTU_VERSION} as runtime-image-armv7hf
9-
FROM arm64v8/ubuntu:${UBUNTU_VERSION} as runtime-image-aarch64
107

11-
FROM ${REPO}/acap-computer-vision-sdk:${SDK_VERSION}-${ARCH} AS cv-sdk
12-
FROM runtime-image-${ARCH}
8+
FROM ${REPO}/acap-computer-vision-sdk:${SDK_VERSION}-aarch64 AS cv-sdk
9+
10+
FROM arm64v8/ubuntu:${UBUNTU_VERSION}
1311

1412
# Get the Python package from the CV SDK
1513
COPY --from=cv-sdk /axis/python /

hello-world-python/README.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,23 @@ hello-world-python
2828
Meet the following requirements to ensure compatibility with the example:
2929

3030
* Axis device
31-
* Chip: ARTPEC-{7-8} DLPU devices (e.g., Q1615 MkIII)
32-
* Firmware: 10.9 or higher
33-
* [Docker ACAP](https://github.com/AxisCommunications/docker-acap#installing) installed and started, using TLS and SD card as storage
31+
* Chip: ARTPEC-8 DLPU devices (e.g., Q1656)
32+
* Firmware: 11.10 or higher
33+
* [Docker ACAP](https://github.com/AxisCommunications/docker-acap#installing) version 3.0 installed and started, using TLS with TCP and IPC socket and SD card as storage
3434
* Computer
3535
* Either [Docker Desktop](https://docs.docker.com/desktop/) version 4.11.1 or higher,
3636
* or [Docker Engine](https://docs.docker.com/engine/) version 20.10.17 or higher with BuildKit enabled using Docker Compose version 1.29.2 or higher
3737

3838
## How to run the code
3939

40-
### Export the environment variable for the architecture
41-
42-
Export the `ARCH` variable depending on the architecture of your camera:
43-
44-
```sh
45-
# For arm32
46-
export ARCH=armv7hf
47-
48-
# For arm64
49-
export ARCH=aarch64
50-
```
51-
5240
### Build the Docker image
5341

54-
With the architecture defined, the `hello-world-python` image can be built. The environment variables are supplied as build arguments such that they are made available to Docker during the build process:
42+
Define and export the application image name in `APP_NAME` for use in the Docker Compose file.
5543

5644
```sh
57-
# Define app name
5845
export APP_NAME=hello-world-python
5946

60-
docker build --tag $APP_NAME --build-arg ARCH .
47+
docker build --tag $APP_NAME .
6148
```
6249

6350
### Set your device IP address and clear Docker memory

0 commit comments

Comments
 (0)