build: upgrade dependencies
This commit is contained in:
parent
50b3b0dac0
commit
9d07f2f0b8
4
go.mod
4
go.mod
@ -8,7 +8,7 @@ require (
|
|||||||
github.com/eclipse/paho.mqtt.golang v1.3.5
|
github.com/eclipse/paho.mqtt.golang v1.3.5
|
||||||
github.com/golang/protobuf v1.5.2
|
github.com/golang/protobuf v1.5.2
|
||||||
go.uber.org/zap v1.19.1
|
go.uber.org/zap v1.19.1
|
||||||
gocv.io/x/gocv v0.28.0
|
gocv.io/x/gocv v0.29.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
@ -16,5 +16,5 @@ require (
|
|||||||
go.uber.org/atomic v1.7.0 // indirect
|
go.uber.org/atomic v1.7.0 // indirect
|
||||||
go.uber.org/multierr v1.6.0 // indirect
|
go.uber.org/multierr v1.6.0 // indirect
|
||||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
|
||||||
google.golang.org/protobuf v1.26.0 // indirect
|
google.golang.org/protobuf v1.27.1 // indirect
|
||||||
)
|
)
|
||||||
|
7
go.sum
7
go.sum
@ -96,8 +96,8 @@ go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=
|
|||||||
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
||||||
go.uber.org/zap v1.19.1 h1:ue41HOKd1vGURxrmeKIgELGb3jPW9DMUDGtsinblHwI=
|
go.uber.org/zap v1.19.1 h1:ue41HOKd1vGURxrmeKIgELGb3jPW9DMUDGtsinblHwI=
|
||||||
go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI=
|
go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI=
|
||||||
gocv.io/x/gocv v0.28.0 h1:hweRS9Js60YEZPZzjhU5I+0E2ngazquLlO78zwnrFvY=
|
gocv.io/x/gocv v0.29.0 h1:Zg5ZoIFSY4oBehoIRoSaSeY+KF+nvqv1O1qNmALiMec=
|
||||||
gocv.io/x/gocv v0.28.0/go.mod h1:oc6FvfYqfBp99p+yOEzs9tbYF9gOrAQSeL/dyIPefJU=
|
gocv.io/x/gocv v0.29.0/go.mod h1:oc6FvfYqfBp99p+yOEzs9tbYF9gOrAQSeL/dyIPefJU=
|
||||||
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
@ -147,8 +147,9 @@ google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9Ywl
|
|||||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||||
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
||||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||||
google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
|
|
||||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||||
|
google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
|
||||||
|
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
|
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
|
||||||
|
23
vendor/gocv.io/x/gocv/CHANGELOG.md
generated
vendored
23
vendor/gocv.io/x/gocv/CHANGELOG.md
generated
vendored
@ -1,3 +1,26 @@
|
|||||||
|
0.29.0
|
||||||
|
---
|
||||||
|
* **all**
|
||||||
|
* update to OpenCV 4.5.4
|
||||||
|
* **build**
|
||||||
|
* add static build ability on windows
|
||||||
|
* use tbb for all builds for CPU accelerated operations
|
||||||
|
* **cuda**
|
||||||
|
* implement a bunch of per-element operations
|
||||||
|
* add get/set/reset device functions
|
||||||
|
* add NewGpuMatWithSize() to preallocate device memory
|
||||||
|
* Reshape() returns a new GpuMat with the changed data
|
||||||
|
* correct use of Stream by adding WaitForCompletion() and passing pre-allocated GpuMats
|
||||||
|
* **docs**
|
||||||
|
* update ROADMAP from recent contributions
|
||||||
|
* **videoio**
|
||||||
|
* Fix open video capture with api test (#895)
|
||||||
|
* **calib3d**
|
||||||
|
* added EstimateAffine2D
|
||||||
|
* findChessboardCornersSB
|
||||||
|
* **aruco**
|
||||||
|
* added many functions as part of initial implementation
|
||||||
|
|
||||||
0.28.0
|
0.28.0
|
||||||
---
|
---
|
||||||
* **all**
|
* **all**
|
||||||
|
2
vendor/gocv.io/x/gocv/Dockerfile
generated
vendored
2
vendor/gocv.io/x/gocv/Dockerfile
generated
vendored
@ -1,6 +1,6 @@
|
|||||||
# to build this docker image:
|
# to build this docker image:
|
||||||
# docker build .
|
# docker build .
|
||||||
FROM gocv/opencv:4.5.3
|
FROM gocv/opencv:4.5.4
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
|
|
||||||
|
2
vendor/gocv.io/x/gocv/Dockerfile-test
generated
vendored
2
vendor/gocv.io/x/gocv/Dockerfile-test
generated
vendored
@ -6,7 +6,7 @@
|
|||||||
# docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix gocv-test
|
# docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix gocv-test
|
||||||
# xhost -
|
# xhost -
|
||||||
#
|
#
|
||||||
FROM gocv/opencv:4.5.3 AS gocv-test
|
FROM gocv/opencv:4.5.4 AS gocv-test
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
|
|
||||||
|
2
vendor/gocv.io/x/gocv/Dockerfile-test.gpu-cuda-10
generated
vendored
2
vendor/gocv.io/x/gocv/Dockerfile-test.gpu-cuda-10
generated
vendored
@ -4,7 +4,7 @@
|
|||||||
# To run tests:
|
# To run tests:
|
||||||
# docker run -it --rm --gpus all gocv-test-gpu-cuda-10
|
# docker run -it --rm --gpus all gocv-test-gpu-cuda-10
|
||||||
#
|
#
|
||||||
FROM gocv/opencv:4.5.3-gpu-cuda-10 AS gocv-gpu-test-cuda-10
|
FROM gocv/opencv:4.5.4-gpu-cuda-10 AS gocv-gpu-test-cuda-10
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
ENV PATH="${PATH}:/go/bin"
|
ENV PATH="${PATH}:/go/bin"
|
||||||
|
2
vendor/gocv.io/x/gocv/Dockerfile-test.gpu-cuda-11
generated
vendored
2
vendor/gocv.io/x/gocv/Dockerfile-test.gpu-cuda-11
generated
vendored
@ -4,7 +4,7 @@
|
|||||||
# To run tests:
|
# To run tests:
|
||||||
# docker run -it --rm --gpus all gocv-test-gpu-cuda-11
|
# docker run -it --rm --gpus all gocv-test-gpu-cuda-11
|
||||||
#
|
#
|
||||||
FROM gocv/opencv:4.5.3-gpu-cuda-11 AS gocv-gpu-test-cuda-11
|
FROM gocv/opencv:4.5.4-gpu-cuda-11 AS gocv-gpu-test-cuda-11
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
ENV PATH="${PATH}:/go/bin"
|
ENV PATH="${PATH}:/go/bin"
|
||||||
|
4
vendor/gocv.io/x/gocv/Dockerfile.gpu
generated
vendored
4
vendor/gocv.io/x/gocv/Dockerfile.gpu
generated
vendored
@ -1,12 +1,12 @@
|
|||||||
# to build this docker image:
|
# to build this docker image:
|
||||||
# docker build -f Dockerfile.gpu .
|
# docker build -f Dockerfile.gpu .
|
||||||
FROM gocv/opencv:4.5.3-gpu AS gocv-gpu
|
FROM gocv/opencv:4.5.4-gpu-cuda-11 AS gocv-gpu
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
|
|
||||||
COPY . /go/src/gocv.io/x/gocv/
|
COPY . /go/src/gocv.io/x/gocv/
|
||||||
|
|
||||||
WORKDIR /go/src/gocv.io/x/gocv
|
WORKDIR /go/src/gocv.io/x/gocv
|
||||||
RUN go build -tags example -o /build/gocv_cuda_version ./cmd/cuda/
|
RUN go build -tags cuda -o /build/gocv_cuda_version ./cmd/cuda/
|
||||||
|
|
||||||
CMD ["/build/gocv_cuda_version"]
|
CMD ["/build/gocv_cuda_version"]
|
||||||
|
7
vendor/gocv.io/x/gocv/Dockerfile.opencv
generated
vendored
7
vendor/gocv.io/x/gocv/Dockerfile.opencv
generated
vendored
@ -1,6 +1,6 @@
|
|||||||
# to build this docker image:
|
# to build this docker image:
|
||||||
# docker build -f Dockerfile.opencv -t gocv/opencv:4.5.3 .
|
# docker build -f Dockerfile.opencv -t gocv/opencv:4.5.4 .
|
||||||
FROM golang:1.16-buster AS opencv
|
FROM golang:1.17-buster AS opencv
|
||||||
LABEL maintainer="hybridgroup"
|
LABEL maintainer="hybridgroup"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev && \
|
libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG OPENCV_VERSION="4.5.3"
|
ARG OPENCV_VERSION="4.5.4"
|
||||||
ENV OPENCV_VERSION $OPENCV_VERSION
|
ENV OPENCV_VERSION $OPENCV_VERSION
|
||||||
|
|
||||||
RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
|
RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
|
||||||
@ -28,6 +28,7 @@ RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSIO
|
|||||||
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-${OPENCV_VERSION}/modules \
|
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-${OPENCV_VERSION}/modules \
|
||||||
-D OPENCV_ENABLE_NONFREE=ON \
|
-D OPENCV_ENABLE_NONFREE=ON \
|
||||||
-D WITH_JASPER=OFF \
|
-D WITH_JASPER=OFF \
|
||||||
|
-D WITH_TBB=ON \
|
||||||
-D BUILD_DOCS=OFF \
|
-D BUILD_DOCS=OFF \
|
||||||
-D BUILD_EXAMPLES=OFF \
|
-D BUILD_EXAMPLES=OFF \
|
||||||
-D BUILD_TESTS=OFF \
|
-D BUILD_TESTS=OFF \
|
||||||
|
7
vendor/gocv.io/x/gocv/Dockerfile.opencv-gpu-cuda-10
generated
vendored
7
vendor/gocv.io/x/gocv/Dockerfile.opencv-gpu-cuda-10
generated
vendored
@ -1,5 +1,5 @@
|
|||||||
# to build this docker image:
|
# to build this docker image:
|
||||||
# docker build -f Dockerfile.opencv-gpu-cuda-10 -t gocv/opencv:4.5.3-gpu-cuda-10 .
|
# docker build -f Dockerfile.opencv-gpu-cuda-10 -t gocv/opencv:4.5.4-gpu-cuda-10 .
|
||||||
FROM nvidia/cuda:10.2-cudnn7-devel AS opencv-gpu-base
|
FROM nvidia/cuda:10.2-cudnn7-devel AS opencv-gpu-base
|
||||||
LABEL maintainer="hybridgroup"
|
LABEL maintainer="hybridgroup"
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev && \
|
libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG OPENCV_VERSION="4.5.3"
|
ARG OPENCV_VERSION="4.5.4"
|
||||||
ENV OPENCV_VERSION $OPENCV_VERSION
|
ENV OPENCV_VERSION $OPENCV_VERSION
|
||||||
|
|
||||||
RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
|
RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
|
||||||
@ -36,6 +36,7 @@ RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSIO
|
|||||||
-D BUILD_opencv_python=NO \
|
-D BUILD_opencv_python=NO \
|
||||||
-D BUILD_opencv_python2=NO \
|
-D BUILD_opencv_python2=NO \
|
||||||
-D BUILD_opencv_python3=NO \
|
-D BUILD_opencv_python3=NO \
|
||||||
|
-D WITH_TBB=ON \
|
||||||
-D WITH_CUDA=ON \
|
-D WITH_CUDA=ON \
|
||||||
-D ENABLE_FAST_MATH=1 \
|
-D ENABLE_FAST_MATH=1 \
|
||||||
-D CUDA_FAST_MATH=1 \
|
-D CUDA_FAST_MATH=1 \
|
||||||
@ -53,7 +54,7 @@ RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSIO
|
|||||||
# install golang here
|
# install golang here
|
||||||
FROM opencv-gpu-base AS opencv-gpu-golang
|
FROM opencv-gpu-base AS opencv-gpu-golang
|
||||||
|
|
||||||
ENV GO_RELEASE=1.16.5
|
ENV GO_RELEASE=1.17.2
|
||||||
RUN wget https://dl.google.com/go/go${GO_RELEASE}.linux-amd64.tar.gz && \
|
RUN wget https://dl.google.com/go/go${GO_RELEASE}.linux-amd64.tar.gz && \
|
||||||
tar xfv go${GO_RELEASE}.linux-amd64.tar.gz -C /usr/local && \
|
tar xfv go${GO_RELEASE}.linux-amd64.tar.gz -C /usr/local && \
|
||||||
rm go${GO_RELEASE}.linux-amd64.tar.gz
|
rm go${GO_RELEASE}.linux-amd64.tar.gz
|
||||||
|
9
vendor/gocv.io/x/gocv/Dockerfile.opencv-gpu-cuda-11
generated
vendored
9
vendor/gocv.io/x/gocv/Dockerfile.opencv-gpu-cuda-11
generated
vendored
@ -1,6 +1,6 @@
|
|||||||
# to build this docker image:
|
# to build this docker image:
|
||||||
# docker build -f Dockerfile.opencv-gpu-cuda-11 -t gocv/opencv:4.5.3-gpu-cuda-11 .
|
# docker build -f Dockerfile.opencv-gpu-cuda-11 -t gocv/opencv:4.5.4-gpu-cuda-11 .
|
||||||
FROM nvidia/cuda:11.2.2-cudnn8-devel AS opencv-gpu-cuda-11-base
|
FROM nvidia/cuda:11.4.2-cudnn8-devel-ubuntu20.04 AS opencv-gpu-cuda-11-base
|
||||||
LABEL maintainer="hybridgroup"
|
LABEL maintainer="hybridgroup"
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev && \
|
libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG OPENCV_VERSION="4.5.3"
|
ARG OPENCV_VERSION="4.5.4"
|
||||||
ENV OPENCV_VERSION $OPENCV_VERSION
|
ENV OPENCV_VERSION $OPENCV_VERSION
|
||||||
|
|
||||||
RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
|
RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
|
||||||
@ -37,6 +37,7 @@ RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSIO
|
|||||||
-D BUILD_opencv_python=NO \
|
-D BUILD_opencv_python=NO \
|
||||||
-D BUILD_opencv_python2=NO \
|
-D BUILD_opencv_python2=NO \
|
||||||
-D BUILD_opencv_python3=NO \
|
-D BUILD_opencv_python3=NO \
|
||||||
|
-D WITH_TBB=ON \
|
||||||
-D WITH_CUDA=ON \
|
-D WITH_CUDA=ON \
|
||||||
-D ENABLE_FAST_MATH=1 \
|
-D ENABLE_FAST_MATH=1 \
|
||||||
-D CUDA_FAST_MATH=1 \
|
-D CUDA_FAST_MATH=1 \
|
||||||
@ -54,7 +55,7 @@ RUN curl -Lo opencv.zip https://github.com/opencv/opencv/archive/${OPENCV_VERSIO
|
|||||||
# install golang here
|
# install golang here
|
||||||
FROM opencv-gpu-cuda-11-base AS opencv-gpu-cuda-11-golang
|
FROM opencv-gpu-cuda-11-base AS opencv-gpu-cuda-11-golang
|
||||||
|
|
||||||
ENV GO_RELEASE=1.16.5
|
ENV GO_RELEASE=1.17.2
|
||||||
RUN wget https://dl.google.com/go/go${GO_RELEASE}.linux-amd64.tar.gz && \
|
RUN wget https://dl.google.com/go/go${GO_RELEASE}.linux-amd64.tar.gz && \
|
||||||
tar xfv go${GO_RELEASE}.linux-amd64.tar.gz -C /usr/local && \
|
tar xfv go${GO_RELEASE}.linux-amd64.tar.gz -C /usr/local && \
|
||||||
rm go${GO_RELEASE}.linux-amd64.tar.gz
|
rm go${GO_RELEASE}.linux-amd64.tar.gz
|
||||||
|
10
vendor/gocv.io/x/gocv/Makefile
generated
vendored
10
vendor/gocv.io/x/gocv/Makefile
generated
vendored
@ -98,7 +98,7 @@ build:
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
rm -rf *
|
rm -rf *
|
||||||
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -DOPENCV_GENERATE_PKGCONFIG=ON ..
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -D WITH_TBB=ON -DOPENCV_GENERATE_PKGCONFIG=ON ..
|
||||||
$(MAKE) -j $(shell nproc --all)
|
$(MAKE) -j $(shell nproc --all)
|
||||||
$(MAKE) preinstall
|
$(MAKE) preinstall
|
||||||
cd -
|
cd -
|
||||||
@ -170,7 +170,7 @@ build_nonfree:
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
rm -rf *
|
rm -rf *
|
||||||
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_ENABLE_NONFREE=ON ..
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -D WITH_TBB=ON -DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_ENABLE_NONFREE=ON ..
|
||||||
$(MAKE) -j $(shell nproc --all)
|
$(MAKE) -j $(shell nproc --all)
|
||||||
$(MAKE) preinstall
|
$(MAKE) preinstall
|
||||||
cd -
|
cd -
|
||||||
@ -181,7 +181,7 @@ build_openvino:
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
rm -rf *
|
rm -rf *
|
||||||
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D ENABLE_CXX11=ON -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D WITH_INF_ENGINE=ON -D InferenceEngine_DIR=/usr/local/dldt/inference-engine/build -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_ENABLE_NONFREE=ON ..
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D ENABLE_CXX11=ON -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D WITH_INF_ENGINE=ON -D InferenceEngine_DIR=/usr/local/dldt/inference-engine/build -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -D WITH_TBB=ON -DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_ENABLE_NONFREE=ON ..
|
||||||
$(MAKE) -j $(shell nproc --all)
|
$(MAKE) -j $(shell nproc --all)
|
||||||
$(MAKE) preinstall
|
$(MAKE) preinstall
|
||||||
cd -
|
cd -
|
||||||
@ -192,7 +192,7 @@ build_cuda:
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
rm -rf *
|
rm -rf *
|
||||||
cmake -j $(shell nproc --all) -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DWITH_CUDA=ON -DENABLE_FAST_MATH=1 -DCUDA_FAST_MATH=1 -DWITH_CUBLAS=1 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/ -DBUILD_opencv_cudacodec=OFF -D WITH_CUDNN=ON -D OPENCV_DNN_CUDA=ON -D CUDA_GENERATION=Auto ..
|
cmake -j $(shell nproc --all) -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -D WITH_TBB=ON -DOPENCV_GENERATE_PKGCONFIG=ON -DWITH_CUDA=ON -DENABLE_FAST_MATH=1 -DCUDA_FAST_MATH=1 -DWITH_CUBLAS=1 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/ -DBUILD_opencv_cudacodec=OFF -D WITH_CUDNN=ON -D OPENCV_DNN_CUDA=ON -D CUDA_GENERATION=Auto ..
|
||||||
$(MAKE) -j $(shell nproc --all)
|
$(MAKE) -j $(shell nproc --all)
|
||||||
$(MAKE) preinstall
|
$(MAKE) preinstall
|
||||||
cd -
|
cd -
|
||||||
@ -214,7 +214,7 @@ build_all:
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
rm -rf *
|
rm -rf *
|
||||||
cmake -j $(shell nproc --all) -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D ENABLE_CXX11=ON -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D WITH_INF_ENGINE=ON -D InferenceEngine_DIR=/usr/local/dldt/inference-engine/build -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DWITH_CUDA=ON -DENABLE_FAST_MATH=1 -DCUDA_FAST_MATH=1 -DWITH_CUBLAS=1 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/ -DBUILD_opencv_cudacodec=OFF -D WITH_CUDNN=ON -D OPENCV_DNN_CUDA=ON -D CUDA_GENERATION=Auto ..
|
cmake -j $(shell nproc --all) -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -D ENABLE_CXX11=ON -D OPENCV_EXTRA_MODULES_PATH=$(TMP_DIR)opencv/opencv_contrib-$(OPENCV_VERSION)/modules -D WITH_INF_ENGINE=ON -D InferenceEngine_DIR=/usr/local/dldt/inference-engine/build -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=NO -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D WITH_JASPER=OFF -D WITH_TBB=ON -DOPENCV_GENERATE_PKGCONFIG=ON -DWITH_CUDA=ON -DENABLE_FAST_MATH=1 -DCUDA_FAST_MATH=1 -DWITH_CUBLAS=1 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/ -DBUILD_opencv_cudacodec=OFF -D WITH_CUDNN=ON -D OPENCV_DNN_CUDA=ON -D CUDA_GENERATION=Auto ..
|
||||||
$(MAKE) -j $(shell nproc --all)
|
$(MAKE) -j $(shell nproc --all)
|
||||||
$(MAKE) preinstall
|
$(MAKE) preinstall
|
||||||
cd -
|
cd -
|
||||||
|
56
vendor/gocv.io/x/gocv/README.md
generated
vendored
56
vendor/gocv.io/x/gocv/README.md
generated
vendored
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
The GoCV package provides Go language bindings for the [OpenCV 4](http://opencv.org/) computer vision library.
|
The GoCV package provides Go language bindings for the [OpenCV 4](http://opencv.org/) computer vision library.
|
||||||
|
|
||||||
The GoCV package supports the latest releases of Go and OpenCV (v4.5.3) on Linux, macOS, and Windows. We intend to make the Go language a "first-class" client compatible with the latest developments in the OpenCV ecosystem.
|
The GoCV package supports the latest releases of Go and OpenCV (v4.5.4) on Linux, macOS, and Windows. We intend to make the Go language a "first-class" client compatible with the latest developments in the OpenCV ecosystem.
|
||||||
|
|
||||||
GoCV supports [CUDA](https://en.wikipedia.org/wiki/CUDA) for hardware acceleration using Nvidia GPUs. Check out the [CUDA README](./cuda/README.md) for more info on how to use GoCV with OpenCV/CUDA.
|
GoCV supports [CUDA](https://en.wikipedia.org/wiki/CUDA) for hardware acceleration using Nvidia GPUs. Check out the [CUDA README](./cuda/README.md) for more info on how to use GoCV with OpenCV/CUDA.
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ There are examples in the [cmd directory](./cmd) of this repo in the form of var
|
|||||||
|
|
||||||
## How to install
|
## How to install
|
||||||
|
|
||||||
To install GoCV, you must first have the matching version of OpenCV installed on your system. The current release of GoCV requires OpenCV 4.5.3.
|
To install GoCV, you must first have the matching version of OpenCV installed on your system. The current release of GoCV requires OpenCV 4.5.4.
|
||||||
|
|
||||||
Here are instructions for Ubuntu, Raspian, macOS, and Windows.
|
Here are instructions for Ubuntu, Raspian, macOS, and Windows.
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ Here are instructions for Ubuntu, Raspian, macOS, and Windows.
|
|||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
You can use `make` to install OpenCV 4.5.3 with the handy `Makefile` included with this repo. If you already have installed OpenCV, you do not need to do so again. The installation performed by the `Makefile` is minimal, so it may remove OpenCV options such as Python or Java wrappers if you have already installed OpenCV some other way.
|
You can use `make` to install OpenCV 4.5.4 with the handy `Makefile` included with this repo. If you already have installed OpenCV, you do not need to do so again. The installation performed by the `Makefile` is minimal, so it may remove OpenCV options such as Python or Java wrappers if you have already installed OpenCV some other way.
|
||||||
|
|
||||||
#### Quick Install
|
#### Quick Install
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ First, change directories to where you want to install GoCV, and then use git to
|
|||||||
|
|
||||||
Make sure to change `$HOME/folder/with/your/src/` to where you actually want to save the code.
|
Make sure to change `$HOME/folder/with/your/src/` to where you actually want to save the code.
|
||||||
|
|
||||||
Once you have cloned the repo, the following commands should do everything to download and install OpenCV 4.5.3 on Linux:
|
Once you have cloned the repo, the following commands should do everything to download and install OpenCV 4.5.4 on Linux:
|
||||||
|
|
||||||
cd gocv
|
cd gocv
|
||||||
make install
|
make install
|
||||||
@ -152,8 +152,8 @@ If you need static opencv libraries
|
|||||||
|
|
||||||
If it works correctly, at the end of the entire process, the following message should be displayed:
|
If it works correctly, at the end of the entire process, the following message should be displayed:
|
||||||
|
|
||||||
gocv version: 0.28.0
|
gocv version: 0.29.0
|
||||||
opencv lib version: 4.5.3
|
opencv lib version: 4.5.4
|
||||||
|
|
||||||
That's it, now you are ready to use GoCV.
|
That's it, now you are ready to use GoCV.
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ See the [openvino directory](./openvino) for information.
|
|||||||
|
|
||||||
#### Make Install for OpenVINO and Cuda
|
#### Make Install for OpenVINO and Cuda
|
||||||
|
|
||||||
The following commands should do everything to download and install OpenCV 4.5.3 with CUDA and OpenVINO on Linux. Make sure to change `$HOME/folder/with/your/src/` to the directory you used to clone GoCV:
|
The following commands should do everything to download and install OpenCV 4.5.4 with CUDA and OpenVINO on Linux. Make sure to change `$HOME/folder/with/your/src/` to the directory you used to clone GoCV:
|
||||||
|
|
||||||
cd $HOME/folder/with/gocv/
|
cd $HOME/folder/with/gocv/
|
||||||
make install_all
|
make install_all
|
||||||
@ -178,8 +178,8 @@ If you need static opencv libraries
|
|||||||
|
|
||||||
If it works correctly, at the end of the entire process, the following message should be displayed:
|
If it works correctly, at the end of the entire process, the following message should be displayed:
|
||||||
|
|
||||||
gocv version: 0.28.0
|
gocv version: 0.29.0
|
||||||
opencv lib version: 4.5.3-openvino
|
opencv lib version: 4.5.4-openvino
|
||||||
cuda information:
|
cuda information:
|
||||||
Device 0: "GeForce MX150" 2003Mb, sm_61, Driver/Runtime ver.10.0/10.0
|
Device 0: "GeForce MX150" 2003Mb, sm_61, Driver/Runtime ver.10.0/10.0
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ Next, you need to update the system, and install any required packages:
|
|||||||
|
|
||||||
#### Download source
|
#### Download source
|
||||||
|
|
||||||
Now, download the OpenCV 4.5.3 and OpenCV Contrib source code:
|
Now, download the OpenCV 4.5.4 and OpenCV Contrib source code:
|
||||||
|
|
||||||
make download
|
make download
|
||||||
|
|
||||||
@ -240,8 +240,8 @@ Now you should be able to build or run any of the examples:
|
|||||||
|
|
||||||
The version program should output the following:
|
The version program should output the following:
|
||||||
|
|
||||||
gocv version: 0.28.0
|
gocv version: 0.29.0
|
||||||
opencv lib version: 4.5.3
|
opencv lib version: 4.5.4
|
||||||
|
|
||||||
#### Cleanup extra files
|
#### Cleanup extra files
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ There is a Docker image with Alpine 3.7 that has been created by project contrib
|
|||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
We have a special installation for the Raspberry Pi that includes some hardware optimizations. You use `make` to install OpenCV 4.5.3 with the handy `Makefile` included with this repo. If you already have installed OpenCV, you do not need to do so again. The installation performed by the `Makefile` is minimal, so it may remove OpenCV options such as Python or Java wrappers if you have already installed OpenCV some other way.
|
We have a special installation for the Raspberry Pi that includes some hardware optimizations. You use `make` to install OpenCV 4.5.4 with the handy `Makefile` included with this repo. If you already have installed OpenCV, you do not need to do so again. The installation performed by the `Makefile` is minimal, so it may remove OpenCV options such as Python or Java wrappers if you have already installed OpenCV some other way.
|
||||||
|
|
||||||
#### Quick Install
|
#### Quick Install
|
||||||
|
|
||||||
@ -331,15 +331,15 @@ First, change directories to where you want to install GoCV, and then use git to
|
|||||||
|
|
||||||
Make sure to change `$HOME/folder/with/your/src/` to where you actually want to save the code.
|
Make sure to change `$HOME/folder/with/your/src/` to where you actually want to save the code.
|
||||||
|
|
||||||
The following make command should do everything to download and install OpenCV 4.5.3 on Raspbian:
|
The following make command should do everything to download and install OpenCV 4.5.4 on Raspbian:
|
||||||
|
|
||||||
cd $HOME/folder/with/your/src/gocv
|
cd $HOME/folder/with/your/src/gocv
|
||||||
make install_raspi
|
make install_raspi
|
||||||
|
|
||||||
If it works correctly, at the end of the entire process, the following message should be displayed:
|
If it works correctly, at the end of the entire process, the following message should be displayed:
|
||||||
|
|
||||||
gocv version: 0.28.0
|
gocv version: 0.29.0
|
||||||
opencv lib version: 4.5.3
|
opencv lib version: 4.5.4
|
||||||
|
|
||||||
That's it, now you are ready to use GoCV.
|
That's it, now you are ready to use GoCV.
|
||||||
|
|
||||||
@ -347,13 +347,13 @@ That's it, now you are ready to use GoCV.
|
|||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
You can install OpenCV 4.5.3 using Homebrew.
|
You can install OpenCV 4.5.4 using Homebrew.
|
||||||
|
|
||||||
If you already have an earlier version of OpenCV (3.4.x) installed, you should probably remove it before installing the new version:
|
If you already have an earlier version of OpenCV (3.4.x) installed, you should probably remove it before installing the new version:
|
||||||
|
|
||||||
brew uninstall opencv
|
brew uninstall opencv
|
||||||
|
|
||||||
You can then install OpenCV 4.5.3:
|
You can then install OpenCV 4.5.4:
|
||||||
|
|
||||||
brew install opencv
|
brew install opencv
|
||||||
|
|
||||||
@ -377,8 +377,8 @@ Now you should be able to build or run any of the examples:
|
|||||||
|
|
||||||
The version program should output the following:
|
The version program should output the following:
|
||||||
|
|
||||||
gocv version: 0.28.0
|
gocv version: 0.29.0
|
||||||
opencv lib version: 4.5.3
|
opencv lib version: 4.5.4
|
||||||
|
|
||||||
### Custom Environment
|
### Custom Environment
|
||||||
|
|
||||||
@ -387,8 +387,8 @@ By default, pkg-config is used to determine the correct flags for compiling and
|
|||||||
For example:
|
For example:
|
||||||
|
|
||||||
export CGO_CXXFLAGS="--std=c++11"
|
export CGO_CXXFLAGS="--std=c++11"
|
||||||
export CGO_CPPFLAGS="-I/usr/local/Cellar/opencv/4.5.3/include"
|
export CGO_CPPFLAGS="-I/usr/local/Cellar/opencv/4.5.4/include"
|
||||||
export CGO_LDFLAGS="-L/usr/local/Cellar/opencv/4.5.3/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dpm -lopencv_face -lopencv_photo -lopencv_fuzzy -lopencv_hfs -lopencv_img_hash -lopencv_line_descriptor -lopencv_optflow -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_dnn -lopencv_plot -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ml -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_flann -lopencv_xobjdetect -lopencv_imgcodecs -lopencv_objdetect -lopencv_xphoto -lopencv_imgproc -lopencv_core"
|
export CGO_LDFLAGS="-L/usr/local/Cellar/opencv/4.5.4/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dpm -lopencv_face -lopencv_photo -lopencv_fuzzy -lopencv_hfs -lopencv_img_hash -lopencv_line_descriptor -lopencv_optflow -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_dnn -lopencv_plot -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ml -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_flann -lopencv_xobjdetect -lopencv_imgcodecs -lopencv_objdetect -lopencv_xphoto -lopencv_imgproc -lopencv_core"
|
||||||
|
|
||||||
Please note that you will need to run these 3 lines of code one time in your current session in order to build or run the code, in order to setup the needed ENV variables. Once you have done so, you can execute code that uses GoCV with your custom environment like this:
|
Please note that you will need to run these 3 lines of code one time in your current session in order to build or run the code, in order to setup the needed ENV variables. Once you have done so, you can execute code that uses GoCV with your custom environment like this:
|
||||||
|
|
||||||
@ -400,7 +400,7 @@ Please note that you will need to run these 3 lines of code one time in your cur
|
|||||||
|
|
||||||
The following assumes that you are running a 64-bit version of Windows 10.
|
The following assumes that you are running a 64-bit version of Windows 10.
|
||||||
|
|
||||||
In order to build and install OpenCV 4.5.3 on Windows, you must first download and install MinGW-W64 and CMake, as follows.
|
In order to build and install OpenCV 4.5.4 on Windows, you must first download and install MinGW-W64 and CMake, as follows.
|
||||||
|
|
||||||
#### MinGW-W64
|
#### MinGW-W64
|
||||||
|
|
||||||
@ -416,9 +416,9 @@ Add the `C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev2\mingw64\bi
|
|||||||
|
|
||||||
Download and install CMake [https://cmake.org/download/](https://cmake.org/download/) to the default location. CMake installer will add CMake to your system path.
|
Download and install CMake [https://cmake.org/download/](https://cmake.org/download/) to the default location. CMake installer will add CMake to your system path.
|
||||||
|
|
||||||
#### OpenCV 4.5.3 and OpenCV Contrib Modules
|
#### OpenCV 4.5.4 and OpenCV Contrib Modules
|
||||||
|
|
||||||
The following commands should do everything to download and install OpenCV 4.5.3 on Windows:
|
The following commands should do everything to download and install OpenCV 4.5.4 on Windows:
|
||||||
|
|
||||||
chdir %GOPATH%\src\gocv.io\x\gocv
|
chdir %GOPATH%\src\gocv.io\x\gocv
|
||||||
win_build_opencv.cmd
|
win_build_opencv.cmd
|
||||||
@ -439,8 +439,8 @@ Now you should be able to build or run any of the command examples:
|
|||||||
|
|
||||||
The version program should output the following:
|
The version program should output the following:
|
||||||
|
|
||||||
gocv version: 0.28.0
|
gocv version: 0.29.0
|
||||||
opencv lib version: 4.5.3
|
opencv lib version: 4.5.4
|
||||||
|
|
||||||
That's it, now you are ready to use GoCV.
|
That's it, now you are ready to use GoCV.
|
||||||
|
|
||||||
@ -454,7 +454,7 @@ For example:
|
|||||||
|
|
||||||
set CGO_CXXFLAGS="--std=c++11"
|
set CGO_CXXFLAGS="--std=c++11"
|
||||||
set CGO_CPPFLAGS=-IC:\opencv\build\install\include
|
set CGO_CPPFLAGS=-IC:\opencv\build\install\include
|
||||||
set CGO_LDFLAGS=-LC:\opencv\build\install\x64\mingw\lib -lopencv_core453 -lopencv_face453 -lopencv_videoio453 -lopencv_imgproc453 -lopencv_highgui453 -lopencv_imgcodecs453 -lopencv_objdetect453 -lopencv_features2d453 -lopencv_video453 -lopencv_dnn453 -lopencv_xfeatures2d453 -lopencv_plot453 -lopencv_tracking453 -lopencv_img_hash453
|
set CGO_LDFLAGS=-LC:\opencv\build\install\x64\mingw\lib -lopencv_core454 -lopencv_face454 -lopencv_videoio454 -lopencv_imgproc454 -lopencv_highgui454 -lopencv_imgcodecs454 -lopencv_objdetect454 -lopencv_features2d454 -lopencv_video454 -lopencv_dnn454 -lopencv_xfeatures2d454 -lopencv_plot454 -lopencv_tracking454 -lopencv_img_hash454
|
||||||
|
|
||||||
Please note that you will need to run these 3 lines of code one time in your current session in order to build or run the code, in order to setup the needed ENV variables. Once you have done so, you can execute code that uses GoCV with your custom environment like this:
|
Please note that you will need to run these 3 lines of code one time in your current session in order to build or run the code, in order to setup the needed ENV variables. Once you have done so, you can execute code that uses GoCV with your custom environment like this:
|
||||||
|
|
||||||
|
54
vendor/gocv.io/x/gocv/ROADMAP.md
generated
vendored
54
vendor/gocv.io/x/gocv/ROADMAP.md
generated
vendored
@ -114,7 +114,7 @@ Your pull requests will be greatly appreciated!
|
|||||||
|
|
||||||
- [ ] **calib3d. Camera Calibration and 3D Reconstruction - WORK STARTED**. The following functions still need implementation:
|
- [ ] **calib3d. Camera Calibration and 3D Reconstruction - WORK STARTED**. The following functions still need implementation:
|
||||||
- [ ] **Camera Calibration - WORK STARTED** The following functions still need implementation:
|
- [ ] **Camera Calibration - WORK STARTED** The following functions still need implementation:
|
||||||
- [ ] [calibrateCamera](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [X] [calibrateCamera](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [calibrateCameraRO](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [calibrateCameraRO](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [calibrateHandEye](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [calibrateHandEye](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [calibrationMatrixValues](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [calibrationMatrixValues](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
@ -130,13 +130,13 @@ Your pull requests will be greatly appreciated!
|
|||||||
- [ ] [decomposeProjectionMatrix](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [decomposeProjectionMatrix](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [drawChessboardCorners](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [drawChessboardCorners](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [drawFrameAxes](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [drawFrameAxes](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [estimateAffine2D](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [X] [estimateAffine2D](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [estimateAffine3D](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [estimateAffine3D](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [filterHomographyDecompByVisibleRefpoints](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [filterHomographyDecompByVisibleRefpoints](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [filterSpeckles](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [filterSpeckles](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [find4QuadCornerSubpix](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [find4QuadCornerSubpix](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [findChessboardCorners](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [X] [findChessboardCorners](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [findChessboardCornersSB](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [X] [findChessboardCornersSB](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [findCirclesGrid](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [findCirclesGrid](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [findEssentialMat](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [findEssentialMat](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
- [ ] [findFundamentalMat](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
- [ ] [findFundamentalMat](https://docs.opencv.org/master/d9/d0c/group__calib3d.html)
|
||||||
@ -212,9 +212,9 @@ Your pull requests will be greatly appreciated!
|
|||||||
- [ ] **core. - WORK STARTED** The following functions still need implementation:
|
- [ ] **core. - WORK STARTED** The following functions still need implementation:
|
||||||
- [ ] [cv::cuda::convertFp16](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#gaa1c52258763197958eb9e6681917f723)
|
- [ ] [cv::cuda::convertFp16](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#gaa1c52258763197958eb9e6681917f723)
|
||||||
- [ ] [cv::cuda::deviceSupports](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#ga170b10cc9af4aa8cce8c0afdb4b1d08c)
|
- [ ] [cv::cuda::deviceSupports](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#ga170b10cc9af4aa8cce8c0afdb4b1d08c)
|
||||||
- [ ] [cv::cuda::getDevice](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#ga6ded4ed8e4fc483a9863d31f34ec9c0e)
|
- [X] [cv::cuda::getDevice](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#ga6ded4ed8e4fc483a9863d31f34ec9c0e)
|
||||||
- [ ] [cv::cuda::resetDevice](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#ga6153b6f461101374e655a54fc77e725e)
|
- [X] [cv::cuda::resetDevice](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#ga6153b6f461101374e655a54fc77e725e)
|
||||||
- [ ] [cv::cuda::setDevice](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#gaefa34186b185de47851836dba537828b)
|
- [X] [cv::cuda::setDevice](https://docs.opencv.org/master/d8/d40/group__cudacore__init.html#gaefa34186b185de47851836dba537828b)
|
||||||
|
|
||||||
- [ ] **cudaarithm. Operations on Matrices - WORK STARTED** The following functions still need implementation:
|
- [ ] **cudaarithm. Operations on Matrices - WORK STARTED** The following functions still need implementation:
|
||||||
- [ ] **core** The following functions still need implementation:
|
- [ ] **core** The following functions still need implementation:
|
||||||
@ -224,32 +224,33 @@ Your pull requests will be greatly appreciated!
|
|||||||
- [ ] [cv::cuda::split](https://docs.opencv.org/master/de/d09/group__cudaarithm__core.html#gabe5013d55d4ff586b20393913726179e)
|
- [ ] [cv::cuda::split](https://docs.opencv.org/master/de/d09/group__cudaarithm__core.html#gabe5013d55d4ff586b20393913726179e)
|
||||||
- [ ] [cv::cuda::transpose](https://docs.opencv.org/master/de/d09/group__cudaarithm__core.html#ga327b71c3cb811a904ccf5fba37fc29f2)
|
- [ ] [cv::cuda::transpose](https://docs.opencv.org/master/de/d09/group__cudaarithm__core.html#ga327b71c3cb811a904ccf5fba37fc29f2)
|
||||||
|
|
||||||
- [X] **per-element operations - WORK STARTED** The following functions still need implementation:
|
- [ ] **per-element operations - WORK STARTED** The following functions still need implementation:
|
||||||
- [ ] [cv::cuda::absdiff](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gac062b283cf46ee90f74a773d3382ab54)
|
- [X] [cv::cuda::absdiff](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gac062b283cf46ee90f74a773d3382ab54)
|
||||||
- [ ] [cv::cuda::add](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga5d9794bde97ed23d1c1485249074a8b1)
|
- [X] [cv::cuda::add](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga5d9794bde97ed23d1c1485249074a8b1)
|
||||||
- [ ] [cv::cuda::addWeighted](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga2cd14a684ea70c6ab2a63ee90ffe6201)
|
- [ ] [cv::cuda::addWeighted](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga2cd14a684ea70c6ab2a63ee90ffe6201)
|
||||||
- [ ] [cv::cuda::bitwise_and](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga78d7c1a013877abd4237fbfc4e13bd76)
|
- [X] [cv::cuda::bitwise_and](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga78d7c1a013877abd4237fbfc4e13bd76)
|
||||||
- [ ] [cv::cuda::bitwise_not](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gae58159a2259ae1acc76b531c171cf06a)
|
- [X] [cv::cuda::bitwise_not](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gae58159a2259ae1acc76b531c171cf06a)
|
||||||
- [ ] [cv::cuda::bitwise_or](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gafd098ee3e51c68daa793999c1da3dfb7)
|
- [X] [cv::cuda::bitwise_or](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gafd098ee3e51c68daa793999c1da3dfb7)
|
||||||
- [ ] [cv::cuda::bitwise_xor](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga3d95d4faafb099aacf18e8b915a4ad8d)
|
- [X] [cv::cuda::bitwise_xor](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga3d95d4faafb099aacf18e8b915a4ad8d)
|
||||||
- [ ] [cv::cuda::cartToPolar](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga82210c7d1c1d42e616e554bf75a53480)
|
- [ ] [cv::cuda::cartToPolar](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga82210c7d1c1d42e616e554bf75a53480)
|
||||||
- [ ] [cv::cuda::compare](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga4d41cd679f4a83862a3de71a6057db54)
|
- [ ] [cv::cuda::compare](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga4d41cd679f4a83862a3de71a6057db54)
|
||||||
- [ ] [cv::cuda::divide](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga124315aa226260841e25cc0b9ea99dc3)
|
- [X] [cv::cuda::divide](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga124315aa226260841e25cc0b9ea99dc3)
|
||||||
- [ ] [cv::cuda::exp](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gac6e51541d3bb0a7a396128e4d5919b61)
|
- [X] [cv::cuda::exp](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gac6e51541d3bb0a7a396128e4d5919b61)
|
||||||
- [ ] [cv::cuda::log](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gaae9c60739e2d1a977b4d3250a0be42ca)
|
- [ ] [cv::cuda::inRange](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gaf611ab6b1d85e951feb6f485b1ed9672)
|
||||||
|
- [X] [cv::cuda::log](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gaae9c60739e2d1a977b4d3250a0be42ca)
|
||||||
- [ ] [cv::cuda::lshift](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gafd072accecb14c9adccdad45e3bf2300)
|
- [ ] [cv::cuda::lshift](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gafd072accecb14c9adccdad45e3bf2300)
|
||||||
- [ ] [cv::cuda::magnitude](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga3d17f4fcd79d7c01fadd217969009463)
|
- [ ] [cv::cuda::magnitude](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga3d17f4fcd79d7c01fadd217969009463)
|
||||||
- [ ] [cv::cuda::magnitudeSqr](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga7613e382d257e150033d0ce4d6098f6a)
|
- [ ] [cv::cuda::magnitudeSqr](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga7613e382d257e150033d0ce4d6098f6a)
|
||||||
- [ ] [cv::cuda::max](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gadb5dd3d870f10c0866035755b929b1e7)
|
- [X] [cv::cuda::max](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#gadb5dd3d870f10c0866035755b929b1e7)
|
||||||
- [ ] [cv::cuda::min](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga74f0b05a65b3d949c237abb5e6c60867)
|
- [X] [cv::cuda::min](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga74f0b05a65b3d949c237abb5e6c60867)
|
||||||
- [ ] [cv::cuda::multiply](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591)
|
- [X] [cv::cuda::multiply](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591)
|
||||||
- [ ] [cv::cuda::phase](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga5b75ec01be06dcd6e27ada09a0d4656a)
|
- [ ] [cv::cuda::phase](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga5b75ec01be06dcd6e27ada09a0d4656a)
|
||||||
- [ ] [cv::cuda::polarToCart](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga01516a286a329c303c2db746513dd9df)
|
- [ ] [cv::cuda::polarToCart](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga01516a286a329c303c2db746513dd9df)
|
||||||
- [ ] [cv::cuda::pow](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga82d04ef4bcc4dfa9bfbe76488007c6c4)
|
- [ ] [cv::cuda::pow](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga82d04ef4bcc4dfa9bfbe76488007c6c4)
|
||||||
- [ ] [cv::cuda::rshift](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga87af0b66358cc302676f35c1fd56c2ed)
|
- [ ] [cv::cuda::rshift](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga87af0b66358cc302676f35c1fd56c2ed)
|
||||||
- [ ] [cv::cuda::sqr](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga8aae233da90ce0ffe309ab8004342acb)
|
- [X] [cv::cuda::sqr](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga8aae233da90ce0ffe309ab8004342acb)
|
||||||
- [ ] [cv::cuda::sqrt](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga09303680cb1a5521a922b6d392028d8c)
|
- [X] [cv::cuda::sqrt](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga09303680cb1a5521a922b6d392028d8c)
|
||||||
- [ ] [cv::cuda::subtract](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga6eab60fc250059e2fda79c5636bd067f)
|
- [X] [cv::cuda::subtract](https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga6eab60fc250059e2fda79c5636bd067f)
|
||||||
|
|
||||||
- [ ] **matrix reductions** The following functions still need implementation:
|
- [ ] **matrix reductions** The following functions still need implementation:
|
||||||
- [ ] [cv::cuda::absSum](https://docs.opencv.org/master/d5/de6/group__cudaarithm__reduce.html#ga690fa79ba4426c53f7d2bebf3d37a32a)
|
- [ ] [cv::cuda::absSum](https://docs.opencv.org/master/d5/de6/group__cudaarithm__reduce.html#ga690fa79ba4426c53f7d2bebf3d37a32a)
|
||||||
@ -352,7 +353,8 @@ Your pull requests will be greatly appreciated!
|
|||||||
## Contrib modules list
|
## Contrib modules list
|
||||||
|
|
||||||
- [ ] alphamat. Alpha Matting
|
- [ ] alphamat. Alpha Matting
|
||||||
- [ ] aruco. ArUco Marker Detection
|
- [X] **aruco. ArUco Marker Detection - WORK STARTED**
|
||||||
|
- [ ] barcode. Barcode detecting and decoding methods
|
||||||
- [X] **bgsegm. Improved Background-Foreground Segmentation Methods - WORK STARTED**
|
- [X] **bgsegm. Improved Background-Foreground Segmentation Methods - WORK STARTED**
|
||||||
- [ ] bioinspired. Biologically inspired vision models and derivated tools
|
- [ ] bioinspired. Biologically inspired vision models and derivated tools
|
||||||
- [ ] ccalib. Custom Calibration Pattern for 3D reconstruction
|
- [ ] ccalib. Custom Calibration Pattern for 3D reconstruction
|
||||||
@ -372,11 +374,12 @@ Your pull requests will be greatly appreciated!
|
|||||||
- [ ] intensity_transform. The module brings implementations of intensity transformation algorithms to adjust image contrast.
|
- [ ] intensity_transform. The module brings implementations of intensity transformation algorithms to adjust image contrast.
|
||||||
- [ ] line_descriptor. Binary descriptors for lines extracted from an image
|
- [ ] line_descriptor. Binary descriptors for lines extracted from an image
|
||||||
- [ ] mcc. Macbeth Chart module
|
- [ ] mcc. Macbeth Chart module
|
||||||
- [ ] matlab. MATLAB Bridge
|
|
||||||
- [ ] optflow. Optical Flow Algorithms
|
- [ ] optflow. Optical Flow Algorithms
|
||||||
- [ ] ovis. OGRE 3D Visualiser
|
- [ ] ovis. OGRE 3D Visualiser
|
||||||
- [ ] phase_unwrapping. Phase Unwrapping API
|
- [ ] phase_unwrapping. Phase Unwrapping API
|
||||||
- [ ] plot. Plot function for Mat data
|
- [ ] plot. Plot function for Mat data
|
||||||
|
- [ ] quality. Image Quality Analysis (IQA) API
|
||||||
|
- [ ] rapid. silhouette based 3D object tracking
|
||||||
- [ ] reg. Image Registration
|
- [ ] reg. Image Registration
|
||||||
- [ ] rgbd. RGB-Depth Processing
|
- [ ] rgbd. RGB-Depth Processing
|
||||||
- [ ] saliency. Saliency API
|
- [ ] saliency. Saliency API
|
||||||
@ -390,6 +393,7 @@ Your pull requests will be greatly appreciated!
|
|||||||
- [ ] **tracking. Tracking API - WORK STARTED**
|
- [ ] **tracking. Tracking API - WORK STARTED**
|
||||||
- [ ] videostab. Video Stabilization
|
- [ ] videostab. Video Stabilization
|
||||||
- [ ] viz. 3D Visualizer
|
- [ ] viz. 3D Visualizer
|
||||||
|
- [ ] wechat_qrcode. WeChat QR code detector for detecting and parsing QR code.
|
||||||
- [ ] **xfeatures2d. Extra 2D Features Framework - WORK STARTED**
|
- [ ] **xfeatures2d. Extra 2D Features Framework - WORK STARTED**
|
||||||
- [ ] ximgproc. Extended Image Processing
|
- [ ] ximgproc. Extended Image Processing
|
||||||
- [ ] xobjdetect. Extended object detection
|
- [ ] xobjdetect. Extended object detection
|
||||||
|
18
vendor/gocv.io/x/gocv/appveyor_build_opencv.cmd
generated
vendored
18
vendor/gocv.io/x/gocv/appveyor_build_opencv.cmd
generated
vendored
@ -3,17 +3,17 @@ if not exist "C:\opencv" mkdir "C:\opencv"
|
|||||||
if not exist "C:\opencv\build" mkdir "C:\opencv\build"
|
if not exist "C:\opencv\build" mkdir "C:\opencv\build"
|
||||||
if not exist "C:\opencv\testdata" mkdir "C:\opencv\testdata"
|
if not exist "C:\opencv\testdata" mkdir "C:\opencv\testdata"
|
||||||
|
|
||||||
appveyor DownloadFile https://github.com/opencv/opencv/archive/4.5.3.zip -FileName c:\opencv\opencv-4.5.3.zip
|
appveyor DownloadFile https://github.com/opencv/opencv/archive/4.5.4.zip -FileName c:\opencv\opencv-4.5.4.zip
|
||||||
7z x c:\opencv\opencv-4.5.3.zip -oc:\opencv -y
|
7z x c:\opencv\opencv-4.5.4.zip -oc:\opencv -y
|
||||||
del c:\opencv\opencv-4.5.3.zip /q
|
del c:\opencv\opencv-4.5.4.zip /q
|
||||||
appveyor DownloadFile https://github.com/opencv/opencv_contrib/archive/4.5.3.zip -FileName c:\opencv\opencv_contrib-4.5.3.zip
|
appveyor DownloadFile https://github.com/opencv/opencv_contrib/archive/4.5.4.zip -FileName c:\opencv\opencv_contrib-4.5.4.zip
|
||||||
7z x c:\opencv\opencv_contrib-4.5.3.zip -oc:\opencv -y
|
7z x c:\opencv\opencv_contrib-4.5.4.zip -oc:\opencv -y
|
||||||
del c:\opencv\opencv_contrib-4.5.3.zip /q
|
del c:\opencv\opencv_contrib-4.5.4.zip /q
|
||||||
cd C:\opencv\build
|
cd C:\opencv\build
|
||||||
set PATH=C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\7-Zip;C:\Program Files\Microsoft\Web Platform Installer\;C:\Tools\PsTools;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Tools\NuGet;C:\Program Files\LLVM\bin;C:\Tools\curl\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Yarn\bin;C:\Users\appveyor\AppData\Local\Yarn\bin;C:\Program Files\AppVeyor\BuildAgent\
|
set PATH=C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\7-Zip;C:\Program Files\Microsoft\Web Platform Installer\;C:\Tools\PsTools;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Tools\NuGet;C:\Program Files\LLVM\bin;C:\Tools\curl\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Yarn\bin;C:\Users\appveyor\AppData\Local\Yarn\bin;C:\Program Files\AppVeyor\BuildAgent\
|
||||||
set PATH=%PATH%;C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
|
set PATH=%PATH%;C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
|
||||||
dir C:\opencv
|
dir C:\opencv
|
||||||
cmake C:\opencv\opencv-4.5.3 -G "MinGW Makefiles" -BC:\opencv\build -DENABLE_CXX11=ON -DOPENCV_EXTRA_MODULES_PATH=C:\opencv\opencv_contrib-4.5.3\modules -DBUILD_SHARED_LIBS=ON -DWITH_IPP=OFF -DWITH_MSMF=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_python=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_DOCS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_wechat_qrcode=OFF -DCPU_DISPATCH= -DBUILD_opencv_gapi=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_ENABLE_NONFREE=ON -DWITH_OPENCL_D3D11_NV=OFF -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int64_t -Wno-dev
|
cmake C:\opencv\opencv-4.5.4 -G "MinGW Makefiles" -BC:\opencv\build -DENABLE_CXX11=ON -DOPENCV_EXTRA_MODULES_PATH=C:\opencv\opencv_contrib-4.5.4\modules -DBUILD_SHARED_LIBS=ON -DWITH_IPP=OFF -DWITH_MSMF=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_python=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_DOCS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_wechat_qrcode=OFF -DCPU_DISPATCH= -DBUILD_opencv_gapi=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_ENABLE_NONFREE=ON -DWITH_OPENCL_D3D11_NV=OFF -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int64_t -DWITH_TBB=ON -Wno-dev
|
||||||
mingw32-make -j%NUMBER_OF_PROCESSORS%
|
mingw32-make -j%NUMBER_OF_PROCESSORS%
|
||||||
mingw32-make install
|
mingw32-make install
|
||||||
appveyor DownloadFile https://raw.githubusercontent.com/opencv/opencv_extra/master/testdata/dnn/bvlc_googlenet.prototxt -FileName C:\opencv\testdata\bvlc_googlenet.prototxt
|
appveyor DownloadFile https://raw.githubusercontent.com/opencv/opencv_extra/master/testdata/dnn/bvlc_googlenet.prototxt -FileName C:\opencv\testdata\bvlc_googlenet.prototxt
|
||||||
@ -21,5 +21,5 @@ appveyor DownloadFile http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemod
|
|||||||
appveyor DownloadFile https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip -FileName C:\opencv\testdata\inception5h.zip
|
appveyor DownloadFile https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip -FileName C:\opencv\testdata\inception5h.zip
|
||||||
appveyor DownloadFile https://github.com/onnx/models/raw/master/vision/classification/inception_and_googlenet/googlenet/model/googlenet-9.onnx -FileName C:\opencv\testdata\googlenet-9.onnx
|
appveyor DownloadFile https://github.com/onnx/models/raw/master/vision/classification/inception_and_googlenet/googlenet/model/googlenet-9.onnx -FileName C:\opencv\testdata\googlenet-9.onnx
|
||||||
7z x C:\opencv\testdata\inception5h.zip -oC:\opencv\testdata tensorflow_inception_graph.pb -y
|
7z x C:\opencv\testdata\inception5h.zip -oC:\opencv\testdata tensorflow_inception_graph.pb -y
|
||||||
rmdir c:\opencv\opencv-4.5.3 /s /q
|
rmdir c:\opencv\opencv-4.5.4 /s /q
|
||||||
rmdir c:\opencv\opencv_contrib-4.5.3 /s /q
|
rmdir c:\opencv\opencv_contrib-4.5.4 /s /q
|
||||||
|
18
vendor/gocv.io/x/gocv/calib3d.cpp
generated
vendored
18
vendor/gocv.io/x/gocv/calib3d.cpp
generated
vendored
@ -37,6 +37,10 @@ Mat GetOptimalNewCameraMatrixWithParams(Mat cameraMatrix,Mat distCoeffs,Size siz
|
|||||||
return mat;
|
return mat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double CalibrateCamera(Points3fVector objectPoints, Points2fVector imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, Mat rvecs, Mat tvecs, int flag) {
|
||||||
|
return cv::calibrateCamera(*objectPoints, *imagePoints, cv::Size(imageSize.width, imageSize.height), *cameraMatrix, *distCoeffs, *rvecs, *tvecs, flag);
|
||||||
|
}
|
||||||
|
|
||||||
void Undistort(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs, Mat newCameraMatrix) {
|
void Undistort(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs, Mat newCameraMatrix) {
|
||||||
cv::undistort(*src, *dst, *cameraMatrix, *distCoeffs, *newCameraMatrix);
|
cv::undistort(*src, *dst, *cameraMatrix, *distCoeffs, *newCameraMatrix);
|
||||||
}
|
}
|
||||||
@ -50,6 +54,16 @@ bool FindChessboardCorners(Mat image, Size patternSize, Mat corners, int flags)
|
|||||||
return cv::findChessboardCorners(*image, sz, *corners, flags);
|
return cv::findChessboardCorners(*image, sz, *corners, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FindChessboardCornersSB(Mat image, Size patternSize, Mat corners, int flags) {
|
||||||
|
cv::Size sz(patternSize.width, patternSize.height);
|
||||||
|
return cv::findChessboardCornersSB(*image, sz, *corners, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FindChessboardCornersSBWithMeta(Mat image, Size patternSize, Mat corners, int flags, Mat meta) {
|
||||||
|
cv::Size sz(patternSize.width, patternSize.height);
|
||||||
|
return cv::findChessboardCornersSB(*image, sz, *corners, flags, *meta);
|
||||||
|
}
|
||||||
|
|
||||||
void DrawChessboardCorners(Mat image, Size patternSize, Mat corners, bool patternWasFound) {
|
void DrawChessboardCorners(Mat image, Size patternSize, Mat corners, bool patternWasFound) {
|
||||||
cv::Size sz(patternSize.width, patternSize.height);
|
cv::Size sz(patternSize.width, patternSize.height);
|
||||||
cv::drawChessboardCorners(*image, sz, *corners, patternWasFound);
|
cv::drawChessboardCorners(*image, sz, *corners, patternWasFound);
|
||||||
@ -58,3 +72,7 @@ void DrawChessboardCorners(Mat image, Size patternSize, Mat corners, bool patter
|
|||||||
Mat EstimateAffinePartial2D(Point2fVector from, Point2fVector to) {
|
Mat EstimateAffinePartial2D(Point2fVector from, Point2fVector to) {
|
||||||
return new cv::Mat(cv::estimateAffinePartial2D(*from, *to));
|
return new cv::Mat(cv::estimateAffinePartial2D(*from, *to));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Mat EstimateAffine2D(Point2fVector from, Point2fVector to) {
|
||||||
|
return new cv::Mat(cv::estimateAffine2D(*from, *to));
|
||||||
|
}
|
||||||
|
58
vendor/gocv.io/x/gocv/calib3d.go
generated
vendored
58
vendor/gocv.io/x/gocv/calib3d.go
generated
vendored
@ -5,7 +5,9 @@ package gocv
|
|||||||
#include "calib3d.h"
|
#include "calib3d.h"
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
import "image"
|
import (
|
||||||
|
"image"
|
||||||
|
)
|
||||||
|
|
||||||
// Calib is a wrapper around OpenCV's "Camera Calibration and 3D Reconstruction" of
|
// Calib is a wrapper around OpenCV's "Camera Calibration and 3D Reconstruction" of
|
||||||
// Fisheye Camera model
|
// Fisheye Camera model
|
||||||
@ -122,6 +124,22 @@ func GetOptimalNewCameraMatrixWithParams(cameraMatrix Mat, distCoeffs Mat, image
|
|||||||
return newMat(C.GetOptimalNewCameraMatrixWithParams(cameraMatrix.Ptr(), distCoeffs.Ptr(), sz, C.double(alpha), newSize, &rt, C.bool(centerPrincipalPoint))), toRect(rt)
|
return newMat(C.GetOptimalNewCameraMatrixWithParams(cameraMatrix.Ptr(), distCoeffs.Ptr(), sz, C.double(alpha), newSize, &rt, C.bool(centerPrincipalPoint))), toRect(rt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CalibrateCamera finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.
|
||||||
|
//
|
||||||
|
// For further details, please see:
|
||||||
|
// https://docs.opencv.org/master/d9/d0c/group__calib3d.html#ga3207604e4b1a1758aa66acb6ed5aa65d
|
||||||
|
//
|
||||||
|
func CalibrateCamera(objectPoints Points3fVector, imagePoints Points2fVector, imageSize image.Point,
|
||||||
|
cameraMatrix *Mat, distCoeffs *Mat, rvecs *Mat, tvecs *Mat, calibFlag CalibFlag) float64 {
|
||||||
|
sz := C.struct_Size{
|
||||||
|
width: C.int(imageSize.X),
|
||||||
|
height: C.int(imageSize.Y),
|
||||||
|
}
|
||||||
|
|
||||||
|
res := C.CalibrateCamera(objectPoints.p, imagePoints.p, sz, cameraMatrix.p, distCoeffs.p, rvecs.p, tvecs.p, C.int(calibFlag))
|
||||||
|
return float64(res)
|
||||||
|
}
|
||||||
|
|
||||||
func Undistort(src Mat, dst *Mat, cameraMatrix Mat, distCoeffs Mat, newCameraMatrix Mat) {
|
func Undistort(src Mat, dst *Mat, cameraMatrix Mat, distCoeffs Mat, newCameraMatrix Mat) {
|
||||||
C.Undistort(src.Ptr(), dst.Ptr(), cameraMatrix.Ptr(), distCoeffs.Ptr(), newCameraMatrix.Ptr())
|
C.Undistort(src.Ptr(), dst.Ptr(), cameraMatrix.Ptr(), distCoeffs.Ptr(), newCameraMatrix.Ptr())
|
||||||
}
|
}
|
||||||
@ -149,9 +167,13 @@ const (
|
|||||||
CalibCBFilterQuads
|
CalibCBFilterQuads
|
||||||
// Run a fast check on the image that looks for chessboard corners, and shortcut the call if none is found. This can drastically speed up the call in the degenerate condition when no chessboard is observed.
|
// Run a fast check on the image that looks for chessboard corners, and shortcut the call if none is found. This can drastically speed up the call in the degenerate condition when no chessboard is observed.
|
||||||
CalibCBFastCheck
|
CalibCBFastCheck
|
||||||
|
// Run an exhaustive search to improve detection rate.
|
||||||
CalibCBExhaustive
|
CalibCBExhaustive
|
||||||
|
// Up sample input image to improve sub-pixel accuracy due to aliasing effects.
|
||||||
CalibCBAccuracy
|
CalibCBAccuracy
|
||||||
|
// The detected pattern is allowed to be larger than patternSize (see description).
|
||||||
CalibCBLarger
|
CalibCBLarger
|
||||||
|
// The detected pattern must have a marker (see description). This should be used if an accurate camera calibration is required.
|
||||||
CalibCBMarker
|
CalibCBMarker
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -168,6 +190,32 @@ func FindChessboardCorners(image Mat, patternSize image.Point, corners *Mat, fla
|
|||||||
return bool(C.FindChessboardCorners(image.Ptr(), sz, corners.Ptr(), C.int(flags)))
|
return bool(C.FindChessboardCorners(image.Ptr(), sz, corners.Ptr(), C.int(flags)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FindChessboardCorners finds the positions of internal corners of the chessboard using a sector based approach.
|
||||||
|
//
|
||||||
|
// For further details, please see:
|
||||||
|
// https://docs.opencv.org/master/d9/d0c/group__calib3d.html#gadc5bcb05cb21cf1e50963df26986d7c9
|
||||||
|
//
|
||||||
|
func FindChessboardCornersSB(image Mat, patternSize image.Point, corners *Mat, flags CalibCBFlag) bool {
|
||||||
|
sz := C.struct_Size{
|
||||||
|
width: C.int(patternSize.X),
|
||||||
|
height: C.int(patternSize.Y),
|
||||||
|
}
|
||||||
|
return bool(C.FindChessboardCornersSB(image.Ptr(), sz, corners.Ptr(), C.int(flags)))
|
||||||
|
}
|
||||||
|
|
||||||
|
// FindChessboardCornersSBWithMeta finds the positions of internal corners of the chessboard using a sector based approach.
|
||||||
|
//
|
||||||
|
// For further details, please see:
|
||||||
|
// https://docs.opencv.org/master/d9/d0c/group__calib3d.html#ga93efa9b0aa890de240ca32b11253dd4a
|
||||||
|
//
|
||||||
|
func FindChessboardCornersSBWithMeta(image Mat, patternSize image.Point, corners *Mat, flags CalibCBFlag, meta *Mat) bool {
|
||||||
|
sz := C.struct_Size{
|
||||||
|
width: C.int(patternSize.X),
|
||||||
|
height: C.int(patternSize.Y),
|
||||||
|
}
|
||||||
|
return bool(C.FindChessboardCornersSBWithMeta(image.Ptr(), sz, corners.Ptr(), C.int(flags), meta.Ptr()))
|
||||||
|
}
|
||||||
|
|
||||||
// DrawChessboardCorners renders the detected chessboard corners.
|
// DrawChessboardCorners renders the detected chessboard corners.
|
||||||
//
|
//
|
||||||
// For further details, please see:
|
// For further details, please see:
|
||||||
@ -189,3 +237,11 @@ func DrawChessboardCorners(image *Mat, patternSize image.Point, corners Mat, pat
|
|||||||
func EstimateAffinePartial2D(from, to Point2fVector) Mat {
|
func EstimateAffinePartial2D(from, to Point2fVector) Mat {
|
||||||
return newMat(C.EstimateAffinePartial2D(from.p, to.p))
|
return newMat(C.EstimateAffinePartial2D(from.p, to.p))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// EstimateAffine2D Computes an optimal affine transformation between two 2D point sets.
|
||||||
|
//
|
||||||
|
// For further details, please see:
|
||||||
|
// https://docs.opencv.org/4.0.0/d9/d0c/group__calib3d.html#ga27865b1d26bac9ce91efaee83e94d4dd
|
||||||
|
func EstimateAffine2D(from, to Point2fVector) Mat {
|
||||||
|
return newMat(C.EstimateAffine2D(from.p, to.p))
|
||||||
|
}
|
||||||
|
4
vendor/gocv.io/x/gocv/calib3d.h
generated
vendored
4
vendor/gocv.io/x/gocv/calib3d.h
generated
vendored
@ -19,11 +19,15 @@ void Fisheye_EstimateNewCameraMatrixForUndistortRectify(Mat k, Mat d, Size imgSi
|
|||||||
|
|
||||||
void InitUndistortRectifyMap(Mat cameraMatrix,Mat distCoeffs,Mat r,Mat newCameraMatrix,Size size,int m1type,Mat map1,Mat map2);
|
void InitUndistortRectifyMap(Mat cameraMatrix,Mat distCoeffs,Mat r,Mat newCameraMatrix,Size size,int m1type,Mat map1,Mat map2);
|
||||||
Mat GetOptimalNewCameraMatrixWithParams(Mat cameraMatrix,Mat distCoeffs,Size size,double alpha,Size newImgSize,Rect* validPixROI,bool centerPrincipalPoint);
|
Mat GetOptimalNewCameraMatrixWithParams(Mat cameraMatrix,Mat distCoeffs,Size size,double alpha,Size newImgSize,Rect* validPixROI,bool centerPrincipalPoint);
|
||||||
|
double CalibrateCamera(Points3fVector objectPoints, Points2fVector imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, Mat rvecs, Mat tvecs, int flag);
|
||||||
void Undistort(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs, Mat newCameraMatrix);
|
void Undistort(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs, Mat newCameraMatrix);
|
||||||
void UndistortPoints(Mat distorted, Mat undistorted, Mat k, Mat d, Mat r, Mat p);
|
void UndistortPoints(Mat distorted, Mat undistorted, Mat k, Mat d, Mat r, Mat p);
|
||||||
bool FindChessboardCorners(Mat image, Size patternSize, Mat corners, int flags);
|
bool FindChessboardCorners(Mat image, Size patternSize, Mat corners, int flags);
|
||||||
|
bool FindChessboardCornersSB(Mat image, Size patternSize, Mat corners, int flags);
|
||||||
|
bool FindChessboardCornersSBWithMeta(Mat image, Size patternSize, Mat corners, int flags, Mat meta);
|
||||||
void DrawChessboardCorners(Mat image, Size patternSize, Mat corners, bool patternWasFound);
|
void DrawChessboardCorners(Mat image, Size patternSize, Mat corners, bool patternWasFound);
|
||||||
Mat EstimateAffinePartial2D(Point2fVector from, Point2fVector to);
|
Mat EstimateAffinePartial2D(Point2fVector from, Point2fVector to);
|
||||||
|
Mat EstimateAffine2D(Point2fVector from, Point2fVector to);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
3
vendor/gocv.io/x/gocv/cgo.go
generated
vendored
3
vendor/gocv.io/x/gocv/cgo.go
generated
vendored
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !customenv && !static
|
||||||
// +build !customenv,!static
|
// +build !customenv,!static
|
||||||
|
|
||||||
package gocv
|
package gocv
|
||||||
@ -8,6 +9,6 @@ package gocv
|
|||||||
#cgo !windows pkg-config: opencv4
|
#cgo !windows pkg-config: opencv4
|
||||||
#cgo CXXFLAGS: --std=c++11
|
#cgo CXXFLAGS: --std=c++11
|
||||||
#cgo windows CPPFLAGS: -IC:/opencv/build/install/include
|
#cgo windows CPPFLAGS: -IC:/opencv/build/install/include
|
||||||
#cgo windows LDFLAGS: -LC:/opencv/build/install/x64/mingw/lib -lopencv_core453 -lopencv_face453 -lopencv_videoio453 -lopencv_imgproc453 -lopencv_highgui453 -lopencv_imgcodecs453 -lopencv_objdetect453 -lopencv_features2d453 -lopencv_video453 -lopencv_dnn453 -lopencv_xfeatures2d453 -lopencv_plot453 -lopencv_tracking453 -lopencv_img_hash453 -lopencv_calib3d453 -lopencv_bgsegm453 -lopencv_photo453
|
#cgo windows LDFLAGS: -LC:/opencv/build/install/x64/mingw/lib -lopencv_core454 -lopencv_face454 -lopencv_videoio454 -lopencv_imgproc454 -lopencv_highgui454 -lopencv_imgcodecs454 -lopencv_objdetect454 -lopencv_features2d454 -lopencv_video454 -lopencv_dnn454 -lopencv_xfeatures2d454 -lopencv_plot454 -lopencv_tracking454 -lopencv_img_hash454 -lopencv_calib3d454 -lopencv_bgsegm454 -lopencv_photo454 -lopencv_aruco454
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
10
vendor/gocv.io/x/gocv/cgo_static.go
generated
vendored
10
vendor/gocv.io/x/gocv/cgo_static.go
generated
vendored
@ -1,12 +1,14 @@
|
|||||||
// +build !customenv,static,!windows
|
// +build !customenv,static
|
||||||
|
|
||||||
package gocv
|
package gocv
|
||||||
|
|
||||||
// Changes here should be mirrored in contrib/cgo.go and cuda/cgo.go.
|
// Changes here should be mirrored in contrib/cgo_static.go and cuda/cgo_static.go.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo CXXFLAGS: --std=c++11
|
#cgo CXXFLAGS: --std=c++11
|
||||||
#cgo CPPFLAGS: -I/usr/local/include -I/usr/local/include/opencv4
|
#cgo !windows CPPFLAGS: -I/usr/local/include -I/usr/local/include/opencv4
|
||||||
#cgo LDFLAGS: -L/usr/local/lib -L/usr/local/lib/opencv4/3rdparty -lopencv_gapi -lopencv_stitching -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dpm -lopencv_face -lopencv_fuzzy -lopencv_hfs -lopencv_img_hash -lopencv_line_descriptor -lopencv_quality -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_superres -lopencv_optflow -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_highgui -lopencv_dnn -lopencv_plot -lopencv_videostab -lopencv_video -lopencv_videoio -lopencv_xfeatures2d -lopencv_shape -lopencv_ml -lopencv_ximgproc -lopencv_xobjdetect -lopencv_objdetect -lopencv_calib3d -lopencv_imgcodecs -lopencv_features2d -lopencv_flann -lopencv_xphoto -lopencv_photo -lopencv_imgproc -lopencv_core -littnotify -llibprotobuf -lIlmImf -lquirc -lippiw -lippicv -lade -lz -ljpeg -ldl -lm -lpthread -lrt -lquadmath
|
#cgo !windows LDFLAGS: -L/usr/local/lib -L/usr/local/lib/opencv4/3rdparty -lopencv_gapi -lopencv_stitching -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dpm -lopencv_face -lopencv_fuzzy -lopencv_hfs -lopencv_img_hash -lopencv_line_descriptor -lopencv_quality -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_superres -lopencv_optflow -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_highgui -lopencv_dnn -lopencv_plot -lopencv_videostab -lopencv_video -lopencv_videoio -lopencv_xfeatures2d -lopencv_shape -lopencv_ml -lopencv_ximgproc -lopencv_xobjdetect -lopencv_objdetect -lopencv_calib3d -lopencv_imgcodecs -lopencv_features2d -lopencv_flann -lopencv_xphoto -lopencv_photo -lopencv_imgproc -lopencv_core -littnotify -llibprotobuf -lIlmImf -lquirc -lippiw -lippicv -lade -lz -ljpeg -ldl -lm -lpthread -lrt -lquadmath
|
||||||
|
#cgo windows CPPFLAGS: -IC:/opencv/build/install/include
|
||||||
|
#cgo windows LDFLAGS: -LC:/opencv/build/install/x64/mingw/staticlib -lopencv_stereo452 -lopencv_tracking452 -lopencv_superres452 -lopencv_stitching452 -lopencv_optflow452 -lopencv_gapi452 -lopencv_face452 -lopencv_dpm452 -lopencv_dnn_objdetect452 -lopencv_ccalib452 -lopencv_bioinspired452 -lopencv_bgsegm452 -lopencv_aruco452 -lopencv_xobjdetect452 -lopencv_ximgproc452 -lopencv_xfeatures2d452 -lopencv_videostab452 -lopencv_video452 -lopencv_structured_light452 -lopencv_shape452 -lopencv_rgbd452 -lopencv_rapid452 -lopencv_objdetect452 -lopencv_mcc452 -lopencv_highgui452 -lopencv_datasets452 -lopencv_calib3d452 -lopencv_videoio452 -lopencv_text452 -lopencv_line_descriptor452 -lopencv_imgcodecs452 -lopencv_img_hash452 -lopencv_hfs452 -lopencv_fuzzy452 -lopencv_features2d452 -lopencv_dnn_superres452 -lopencv_dnn452 -lopencv_xphoto452 -lopencv_surface_matching452 -lopencv_reg452 -lopencv_quality452 -lopencv_plot452 -lopencv_photo452 -lopencv_phase_unwrapping452 -lopencv_ml452 -lopencv_intensity_transform452 -lopencv_imgproc452 -lopencv_flann452 -lopencv_core452 -lade -lquirc -llibprotobuf -lIlmImf -llibpng -llibopenjp2 -llibwebp -llibtiff -llibjpeg-turbo -lzlib -lkernel32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -luser32
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
112
vendor/gocv.io/x/gocv/core.cpp
generated
vendored
112
vendor/gocv.io/x/gocv/core.cpp
generated
vendored
@ -961,6 +961,7 @@ void Point2fVector_Close(Point2fVector pv) {
|
|||||||
delete pv;
|
delete pv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void IntVector_Close(struct IntVector ivec) {
|
void IntVector_Close(struct IntVector ivec) {
|
||||||
delete[] ivec.val;
|
delete[] ivec.val;
|
||||||
}
|
}
|
||||||
@ -1026,3 +1027,114 @@ size_t StdByteVectorLen(void *data) {
|
|||||||
uint8_t* StdByteVectorData(void *data) {
|
uint8_t* StdByteVectorData(void *data) {
|
||||||
return reinterpret_cast<std::vector<uchar> *>(data)->data();
|
return reinterpret_cast<std::vector<uchar> *>(data)->data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Points2fVector Points2fVector_New(){
|
||||||
|
return new std::vector< std::vector< cv::Point2f > >;
|
||||||
|
}
|
||||||
|
|
||||||
|
Points2fVector Points2fVector_NewFromPoints(Contours2f points) {
|
||||||
|
Points2fVector pv = Points2fVector_New();
|
||||||
|
for(size_t i = 0;i<points.length;i++){
|
||||||
|
Contour2f contour2f = points.contours[i];
|
||||||
|
Point2fVector cntr = Point2fVector_NewFromPoints(contour2f);
|
||||||
|
Points2fVector_Append(pv, cntr);
|
||||||
|
}
|
||||||
|
|
||||||
|
return pv;
|
||||||
|
}
|
||||||
|
|
||||||
|
int Points2fVector_Size(Points2fVector ps) {
|
||||||
|
return ps->size();
|
||||||
|
}
|
||||||
|
|
||||||
|
Point2fVector Points2fVector_At(Points2fVector ps, int idx) {
|
||||||
|
return &(ps->at(idx));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Points2fVector_Append(Points2fVector psv, Point2fVector pv) {
|
||||||
|
psv->push_back(*pv);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Points2fVector_Close(Points2fVector ps) {
|
||||||
|
ps->clear();
|
||||||
|
delete ps;
|
||||||
|
}
|
||||||
|
|
||||||
|
Point3fVector Point3fVector_New() {
|
||||||
|
return new std::vector< cv::Point3f >;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Point3fVector Point3fVector_NewFromPoints(Contour3f points) {
|
||||||
|
std::vector<cv::Point3f> *cntr = new std::vector<cv::Point3f>;
|
||||||
|
for(size_t i = 0;i< points.length;i++) {
|
||||||
|
cntr->push_back(cv::Point3f(
|
||||||
|
points.points[i].x,
|
||||||
|
points.points[i].y,
|
||||||
|
points.points[i].z
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
return cntr;
|
||||||
|
}
|
||||||
|
|
||||||
|
Point3fVector Point3fVector_NewFromMat(Mat mat) {
|
||||||
|
std::vector<cv::Point3f> *pts = new std::vector<cv::Point3f>;
|
||||||
|
*pts = (std::vector<cv::Point3f>) *mat;
|
||||||
|
return pts;
|
||||||
|
}
|
||||||
|
|
||||||
|
Point3f Point3fVector_At(Point3fVector pfv, int idx) {
|
||||||
|
cv::Point3f p = pfv->at(idx);
|
||||||
|
return Point3f{
|
||||||
|
.x = p.x,
|
||||||
|
.y = p.y,
|
||||||
|
.z = p.z
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
void Point3fVector_Append(Point3fVector pfv, Point3f point) {
|
||||||
|
pfv->push_back(cv::Point3f(point.x, point.y, point.z));
|
||||||
|
}
|
||||||
|
|
||||||
|
int Point3fVector_Size(Point3fVector pfv) {
|
||||||
|
return pfv->size();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Point3fVector_Close(Point3fVector pv) {
|
||||||
|
pv->clear();
|
||||||
|
delete pv;
|
||||||
|
}
|
||||||
|
|
||||||
|
Points3fVector Points3fVector_New(){
|
||||||
|
return new std::vector< std::vector< cv::Point3f > >;
|
||||||
|
}
|
||||||
|
|
||||||
|
Points3fVector Points3fVector_NewFromPoints(Contours3f points) {
|
||||||
|
Points3fVector pv = Points3fVector_New();
|
||||||
|
for(size_t i = 0;i<points.length;i++){
|
||||||
|
Contour3f contour3f = points.contours[i];
|
||||||
|
Point3fVector cntr = Point3fVector_NewFromPoints(contour3f);
|
||||||
|
Points3fVector_Append(pv, cntr);
|
||||||
|
}
|
||||||
|
|
||||||
|
return pv;
|
||||||
|
}
|
||||||
|
|
||||||
|
int Points3fVector_Size(Points3fVector ps) {
|
||||||
|
return ps->size();
|
||||||
|
}
|
||||||
|
|
||||||
|
Point3fVector Points3fVector_At(Points3fVector ps, int idx) {
|
||||||
|
return &(ps->at(idx));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Points3fVector_Append(Points3fVector psv, Point3fVector pv) {
|
||||||
|
psv->push_back(*pv);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Points3fVector_Close(Points3fVector ps) {
|
||||||
|
ps->clear();
|
||||||
|
delete ps;
|
||||||
|
}
|
||||||
|
|
||||||
|
233
vendor/gocv.io/x/gocv/core.go
generated
vendored
233
vendor/gocv.io/x/gocv/core.go
generated
vendored
@ -166,6 +166,10 @@ type Point2f struct {
|
|||||||
Y float32
|
Y float32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func NewPoint2f(x, y float32) Point2f {
|
||||||
|
return Point2f{x, y}
|
||||||
|
}
|
||||||
|
|
||||||
var ErrEmptyByteSlice = errors.New("empty byte array")
|
var ErrEmptyByteSlice = errors.New("empty byte array")
|
||||||
|
|
||||||
// Mat represents an n-dimensional dense numerical single-channel
|
// Mat represents an n-dimensional dense numerical single-channel
|
||||||
@ -2149,6 +2153,10 @@ func NewPointsVectorFromPoints(pts [][]image.Point) PointsVector {
|
|||||||
return PointsVector{p: C.PointsVector_NewFromPoints(cPoints)}
|
return PointsVector{p: C.PointsVector_NewFromPoints(cPoints)}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (pvs PointsVector) P() C.PointsVector {
|
||||||
|
return pvs.p
|
||||||
|
}
|
||||||
|
|
||||||
// ToPoints returns a slice of slices of image.Point for the data in this PointsVector.
|
// ToPoints returns a slice of slices of image.Point for the data in this PointsVector.
|
||||||
func (pvs PointsVector) ToPoints() [][]image.Point {
|
func (pvs PointsVector) ToPoints() [][]image.Point {
|
||||||
ppoints := make([][]image.Point, pvs.Size())
|
ppoints := make([][]image.Point, pvs.Size())
|
||||||
@ -2574,3 +2582,228 @@ func (buffer *NativeByteBuffer) Len() int {
|
|||||||
func (buffer *NativeByteBuffer) Close() {
|
func (buffer *NativeByteBuffer) Close() {
|
||||||
C.StdByteVectorFree(buffer.nativePointer())
|
C.StdByteVectorFree(buffer.nativePointer())
|
||||||
}
|
}
|
||||||
|
// Points2fVector is a wrapper around a std::vector< std::vector< cv::Point2f > >*
|
||||||
|
type Points2fVector struct {
|
||||||
|
p C.Points2fVector
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewPoints2fVector returns a new empty Points2fVector.
|
||||||
|
func NewPoints2fVector() Points2fVector {
|
||||||
|
return Points2fVector{p: C.Points2fVector_New()}
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewPoints2fVectorFromPoints returns a new Points2fVector that has been
|
||||||
|
// initialized to a slice of slices of Point2f.
|
||||||
|
func NewPoints2fVectorFromPoints(pts [][]Point2f) Points2fVector {
|
||||||
|
pvf := NewPoints2fVector()
|
||||||
|
for j := 0;j<len(pts);j++{
|
||||||
|
pv := NewPoint2fVectorFromPoints(pts[j])
|
||||||
|
pvf.Append(pv)
|
||||||
|
pv.Close()
|
||||||
|
}
|
||||||
|
return pvf
|
||||||
|
}
|
||||||
|
|
||||||
|
func (pvs Points2fVector) P() C.Points2fVector {
|
||||||
|
return pvs.p
|
||||||
|
}
|
||||||
|
|
||||||
|
// ToPoints returns a slice of slices of Point2f for the data in this Points2fVector.
|
||||||
|
func (pvs Points2fVector) ToPoints() [][]Point2f {
|
||||||
|
ppoints := make([][]Point2f, pvs.Size())
|
||||||
|
for j := 0;j < pvs.Size();j++{
|
||||||
|
pts := pvs.At(j)
|
||||||
|
points := pts.ToPoints()
|
||||||
|
ppoints[j] = points
|
||||||
|
}
|
||||||
|
return ppoints
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsNil checks the CGo pointer in the Points2fVector.
|
||||||
|
func (pvs Points2fVector) IsNil() bool {
|
||||||
|
return pvs.p == nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Size returns how many vectors of Points are in the Points2fVector.
|
||||||
|
func (pvs Points2fVector) Size() int {
|
||||||
|
return int(C.Points2fVector_Size(pvs.p))
|
||||||
|
}
|
||||||
|
|
||||||
|
// At returns the Point2fVector at that index of the Points2fVector.
|
||||||
|
func (pvs Points2fVector) At(idx int) Point2fVector {
|
||||||
|
if idx > pvs.Size() {
|
||||||
|
return Point2fVector{}
|
||||||
|
}
|
||||||
|
return Point2fVector{p : C.Points2fVector_At(pvs.p, C.int(idx))}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Append appends a Point2fVector at end of the Points2fVector.
|
||||||
|
func (pvs Points2fVector) Append(pv Point2fVector) {
|
||||||
|
if !pv.IsNil() {
|
||||||
|
C.Points2fVector_Append(pvs.p, pv.p)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Close closes and frees memory for this Points2fVector.
|
||||||
|
func (pvs Points2fVector) Close() {
|
||||||
|
C.Points2fVector_Close(pvs.p)
|
||||||
|
}
|
||||||
|
|
||||||
|
type Point3f struct {
|
||||||
|
X float32
|
||||||
|
Y float32
|
||||||
|
Z float32
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewPoint3f(x, y, z float32) Point3f {
|
||||||
|
return Point3f{x, y, z}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Point3fVector is a wrapper around a std::vector< cv::Point3f >*
|
||||||
|
type Point3fVector struct {
|
||||||
|
p C.Point3fVector
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewPoint3fVector returns a new empty Point3fVector.
|
||||||
|
func NewPoint3fVector() Point3fVector {
|
||||||
|
return Point3fVector{p: C.Point3fVector_New()}
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewPoint3fVectorFromPoints returns a new Point3fVector that has been
|
||||||
|
// initialized to a slice of image.Point.
|
||||||
|
func NewPoint3fVectorFromPoints(pts []Point3f) Point3fVector {
|
||||||
|
p := (*C.struct_Point3f)(C.malloc(C.size_t(C.sizeof_struct_Point3f * len(pts))))
|
||||||
|
defer C.free(unsafe.Pointer(p))
|
||||||
|
|
||||||
|
h := &reflect.SliceHeader{
|
||||||
|
Data: uintptr(unsafe.Pointer(p)),
|
||||||
|
Len: len(pts),
|
||||||
|
Cap: len(pts),
|
||||||
|
}
|
||||||
|
pa := *(*[]C.Point3f)(unsafe.Pointer(h))
|
||||||
|
|
||||||
|
for j, point := range pts {
|
||||||
|
pa[j] = C.struct_Point3f{
|
||||||
|
x: C.float(point.X),
|
||||||
|
y: C.float(point.Y),
|
||||||
|
z: C.float(point.Z),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cPoints := C.struct_Points3f{
|
||||||
|
points: (*C.Point3f)(p),
|
||||||
|
length: C.int(len(pts)),
|
||||||
|
}
|
||||||
|
|
||||||
|
return Point3fVector{p: C.Point3fVector_NewFromPoints(cPoints)}
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewPoint3fVectorFromMat returns a new Point3fVector that has been
|
||||||
|
// wrapped around a Mat of type CV_32FC3 with a single columm.
|
||||||
|
func NewPoint3fVectorFromMat(mat Mat) Point3fVector {
|
||||||
|
return Point3fVector{p: C.Point3fVector_NewFromMat(mat.p)}
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsNil checks the CGo pointer in the Point3fVector.
|
||||||
|
func (pfv Point3fVector) IsNil() bool {
|
||||||
|
return pfv.p == nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Size returns how many Point are in the Point3fVector.
|
||||||
|
func (pfv Point3fVector) Size() int {
|
||||||
|
return int(C.Point3fVector_Size(pfv.p))
|
||||||
|
}
|
||||||
|
|
||||||
|
// At returns the Point3f
|
||||||
|
func (pfv Point3fVector) At(idx int) Point3f {
|
||||||
|
if idx > pfv.Size() {
|
||||||
|
return Point3f{}
|
||||||
|
}
|
||||||
|
cp := C.Point3fVector_At(pfv.p, C.int(idx))
|
||||||
|
return Point3f{X: float32(cp.x), Y: float32(cp.y), Z: float32(cp.z)}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (pfv Point3fVector) Append(point Point3f) {
|
||||||
|
C.Point3fVector_Append(pfv.p, C.Point3f{
|
||||||
|
x: C.float(point.X),
|
||||||
|
y: C.float(point.Y),
|
||||||
|
z: C.float(point.Z),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// ToPoints returns a slice of Point3f for the data in this Point3fVector.
|
||||||
|
func (pfv Point3fVector) ToPoints() []Point3f {
|
||||||
|
points := make([]Point3f, pfv.Size())
|
||||||
|
for j := 0; j < pfv.Size(); j++ {
|
||||||
|
points[j] = pfv.At(j)
|
||||||
|
}
|
||||||
|
return points
|
||||||
|
}
|
||||||
|
|
||||||
|
// Close closes and frees memory for this Point3fVector.
|
||||||
|
func (pfv Point3fVector) Close() {
|
||||||
|
C.Point3fVector_Close(pfv.p)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Points3fVector is a wrapper around a std::vector< std::vector< cv::Point3f > >*
|
||||||
|
type Points3fVector struct {
|
||||||
|
p C.Points3fVector
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewPoints3fVector returns a new empty Points3fVector.
|
||||||
|
func NewPoints3fVector() Points3fVector {
|
||||||
|
return Points3fVector{p: C.Points3fVector_New()}
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewPoints3fVectorFromPoints returns a new Points3fVector that has been
|
||||||
|
// initialized to a slice of slices of Point3f.
|
||||||
|
func NewPoints3fVectorFromPoints(pts [][]Point3f) Points3fVector {
|
||||||
|
pvf := NewPoints3fVector()
|
||||||
|
for j := 0;j<len(pts);j++{
|
||||||
|
pv := NewPoint3fVectorFromPoints(pts[j])
|
||||||
|
pvf.Append(pv)
|
||||||
|
pv.Close()
|
||||||
|
}
|
||||||
|
return pvf
|
||||||
|
}
|
||||||
|
|
||||||
|
// ToPoints returns a slice of slices of Point3f for the data in this Points3fVector.
|
||||||
|
func (pvs Points3fVector) ToPoints() [][]Point3f {
|
||||||
|
ppoints := make([][]Point3f, pvs.Size())
|
||||||
|
for j := 0;j < pvs.Size();j++{
|
||||||
|
pts := pvs.At(j)
|
||||||
|
points := pts.ToPoints()
|
||||||
|
ppoints[j] = points
|
||||||
|
}
|
||||||
|
return ppoints
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsNil checks the CGo pointer in the Points3fVector.
|
||||||
|
func (pvs Points3fVector) IsNil() bool {
|
||||||
|
return pvs.p == nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Size returns how many vectors of Points are in the Points3fVector.
|
||||||
|
func (pvs Points3fVector) Size() int {
|
||||||
|
return int(C.Points3fVector_Size(pvs.p))
|
||||||
|
}
|
||||||
|
|
||||||
|
// At returns the Point3fVector at that index of the Points3fVector.
|
||||||
|
func (pvs Points3fVector) At(idx int) Point3fVector {
|
||||||
|
if idx > pvs.Size() {
|
||||||
|
return Point3fVector{}
|
||||||
|
}
|
||||||
|
return Point3fVector{p : C.Points3fVector_At(pvs.p, C.int(idx))}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Append appends a Point3fVector at end of the Points3fVector.
|
||||||
|
func (pvs Points3fVector) Append(pv Point3fVector) {
|
||||||
|
if !pv.IsNil() {
|
||||||
|
C.Points3fVector_Append(pvs.p, pv.p)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Close closes and frees memory for this Points3fVector.
|
||||||
|
func (pvs Points3fVector) Close() {
|
||||||
|
C.Points3fVector_Close(pvs.p)
|
||||||
|
}
|
55
vendor/gocv.io/x/gocv/core.h
generated
vendored
55
vendor/gocv.io/x/gocv/core.h
generated
vendored
@ -44,6 +44,12 @@ typedef struct Point2f {
|
|||||||
float y;
|
float y;
|
||||||
} Point2f;
|
} Point2f;
|
||||||
|
|
||||||
|
typedef struct Point3f {
|
||||||
|
float x;
|
||||||
|
float y;
|
||||||
|
float z;
|
||||||
|
} Point3f;
|
||||||
|
|
||||||
// Wrapper for an individual cv::cvPoint
|
// Wrapper for an individual cv::cvPoint
|
||||||
typedef struct Point {
|
typedef struct Point {
|
||||||
int x;
|
int x;
|
||||||
@ -62,12 +68,33 @@ typedef struct Points2f {
|
|||||||
int length;
|
int length;
|
||||||
} Points2f;
|
} Points2f;
|
||||||
|
|
||||||
|
typedef struct Points3f {
|
||||||
|
Point3f *points;
|
||||||
|
int length;
|
||||||
|
} Points3f;
|
||||||
|
|
||||||
// Contour is alias for Points
|
// Contour is alias for Points
|
||||||
typedef Points Contour;
|
typedef Points Contour;
|
||||||
|
|
||||||
|
|
||||||
// Contour2f is alias for Points2f
|
// Contour2f is alias for Points2f
|
||||||
typedef Points2f Contour2f;
|
typedef Points2f Contour2f;
|
||||||
|
|
||||||
|
typedef struct Contours2f {
|
||||||
|
Contour2f *contours;
|
||||||
|
int length;
|
||||||
|
} Contours2f;
|
||||||
|
|
||||||
|
// Contour3f is alias for Points3f
|
||||||
|
typedef Points3f Contour3f;
|
||||||
|
|
||||||
|
// Wrapper for the vector of Points3f vectors aka std::vector< std::vector<Point3f> >
|
||||||
|
typedef struct Contours3f {
|
||||||
|
Contour3f *contours;
|
||||||
|
int length;
|
||||||
|
} Contours3f;
|
||||||
|
|
||||||
|
|
||||||
// Wrapper for the vector of Points vectors aka std::vector< std::vector<Point> >
|
// Wrapper for the vector of Points vectors aka std::vector< std::vector<Point> >
|
||||||
typedef struct Contours {
|
typedef struct Contours {
|
||||||
Contour* contours;
|
Contour* contours;
|
||||||
@ -208,6 +235,9 @@ typedef cv::RNG* RNG;
|
|||||||
typedef std::vector< cv::Point >* PointVector;
|
typedef std::vector< cv::Point >* PointVector;
|
||||||
typedef std::vector< std::vector< cv::Point > >* PointsVector;
|
typedef std::vector< std::vector< cv::Point > >* PointsVector;
|
||||||
typedef std::vector< cv::Point2f >* Point2fVector;
|
typedef std::vector< cv::Point2f >* Point2fVector;
|
||||||
|
typedef std::vector< std::vector< cv::Point2f> >* Points2fVector;
|
||||||
|
typedef std::vector< cv::Point3f >* Point3fVector;
|
||||||
|
typedef std::vector< std::vector< cv::Point3f > >* Points3fVector;
|
||||||
#else
|
#else
|
||||||
typedef void* Mat;
|
typedef void* Mat;
|
||||||
typedef void* TermCriteria;
|
typedef void* TermCriteria;
|
||||||
@ -215,6 +245,9 @@ typedef void* RNG;
|
|||||||
typedef void* PointVector;
|
typedef void* PointVector;
|
||||||
typedef void* PointsVector;
|
typedef void* PointsVector;
|
||||||
typedef void* Point2fVector;
|
typedef void* Point2fVector;
|
||||||
|
typedef void* Points2fVector;
|
||||||
|
typedef void* Point3fVector;
|
||||||
|
typedef void* Points3fVector;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Wrapper for the vector of Mat aka std::vector<Mat>
|
// Wrapper for the vector of Mat aka std::vector<Mat>
|
||||||
@ -456,6 +489,28 @@ void StdByteVectorInitialize(void* data);
|
|||||||
void StdByteVectorFree(void *data);
|
void StdByteVectorFree(void *data);
|
||||||
size_t StdByteVectorLen(void *data);
|
size_t StdByteVectorLen(void *data);
|
||||||
uint8_t* StdByteVectorData(void *data);
|
uint8_t* StdByteVectorData(void *data);
|
||||||
|
|
||||||
|
Points2fVector Points2fVector_New();
|
||||||
|
Points2fVector Points2fVector_NewFromPoints(Contours2f points);
|
||||||
|
int Points2fVector_Size(Points2fVector ps);
|
||||||
|
Point2fVector Points2fVector_At(Points2fVector ps, int idx);
|
||||||
|
void Points2fVector_Append(Points2fVector psv, Point2fVector pv);
|
||||||
|
void Points2fVector_Close(Points2fVector ps);
|
||||||
|
|
||||||
|
Point3fVector Point3fVector_New();
|
||||||
|
Point3fVector Point3fVector_NewFromPoints(Contour3f points);
|
||||||
|
Point3fVector Point3fVector_NewFromMat(Mat mat);
|
||||||
|
void Point3fVector_Append(Point3fVector pfv, Point3f point);
|
||||||
|
Point3f Point3fVector_At(Point3fVector pfv, int idx);
|
||||||
|
int Point3fVector_Size(Point3fVector pfv);
|
||||||
|
void Point3fVector_Close(Point3fVector pv);
|
||||||
|
Points3fVector Points3fVector_New();
|
||||||
|
Points3fVector Points3fVector_NewFromPoints(Contours3f points);
|
||||||
|
int Points3fVector_Size(Points3fVector ps);
|
||||||
|
Point3fVector Points3fVector_At(Points3fVector ps, int idx);
|
||||||
|
void Points3fVector_Append(Points3fVector psv, Point3fVector pv);
|
||||||
|
void Points3fVector_Close(Points3fVector ps);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
2
vendor/gocv.io/x/gocv/version.go
generated
vendored
2
vendor/gocv.io/x/gocv/version.go
generated
vendored
@ -7,7 +7,7 @@ package gocv
|
|||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// GoCVVersion of this package, for display purposes.
|
// GoCVVersion of this package, for display purposes.
|
||||||
const GoCVVersion = "0.28.0"
|
const GoCVVersion = "0.29.0"
|
||||||
|
|
||||||
// Version returns the current golang package version
|
// Version returns the current golang package version
|
||||||
func Version() string {
|
func Version() string {
|
||||||
|
28
vendor/gocv.io/x/gocv/win_build_opencv.cmd
generated
vendored
28
vendor/gocv.io/x/gocv/win_build_opencv.cmd
generated
vendored
@ -11,18 +11,18 @@ echo.
|
|||||||
REM This is why there is no progress bar:
|
REM This is why there is no progress bar:
|
||||||
REM https://github.com/PowerShell/PowerShell/issues/2138
|
REM https://github.com/PowerShell/PowerShell/issues/2138
|
||||||
|
|
||||||
echo Downloading: opencv-4.5.3.zip [91MB]
|
echo Downloading: opencv-4.5.4.zip [91MB]
|
||||||
powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://github.com/opencv/opencv/archive/4.5.3.zip -OutFile c:\opencv\opencv-4.5.3.zip"
|
powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://github.com/opencv/opencv/archive/4.5.4.zip -OutFile c:\opencv\opencv-4.5.4.zip"
|
||||||
echo Extracting...
|
echo Extracting...
|
||||||
powershell -command "$ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path c:\opencv\opencv-4.5.3.zip -DestinationPath c:\opencv"
|
powershell -command "$ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path c:\opencv\opencv-4.5.4.zip -DestinationPath c:\opencv"
|
||||||
del c:\opencv\opencv-4.5.3.zip /q
|
del c:\opencv\opencv-4.5.4.zip /q
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo Downloading: opencv_contrib-4.5.3.zip [58MB]
|
echo Downloading: opencv_contrib-4.5.4.zip [58MB]
|
||||||
powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://github.com/opencv/opencv_contrib/archive/4.5.3.zip -OutFile c:\opencv\opencv_contrib-4.5.3.zip"
|
powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://github.com/opencv/opencv_contrib/archive/4.5.4.zip -OutFile c:\opencv\opencv_contrib-4.5.4.zip"
|
||||||
echo Extracting...
|
echo Extracting...
|
||||||
powershell -command "$ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path c:\opencv\opencv_contrib-4.5.3.zip -DestinationPath c:\opencv"
|
powershell -command "$ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path c:\opencv\opencv_contrib-4.5.4.zip -DestinationPath c:\opencv"
|
||||||
del c:\opencv\opencv_contrib-4.5.3.zip /q
|
del c:\opencv\opencv_contrib-4.5.4.zip /q
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo Done with downloading and extracting sources.
|
echo Done with downloading and extracting sources.
|
||||||
@ -32,9 +32,15 @@ echo on
|
|||||||
|
|
||||||
cd /D C:\opencv\build
|
cd /D C:\opencv\build
|
||||||
set PATH=%PATH%;C:\Program Files (x86)\CMake\bin;C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
|
set PATH=%PATH%;C:\Program Files (x86)\CMake\bin;C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
|
||||||
cmake C:\opencv\opencv-4.5.3 -G "MinGW Makefiles" -BC:\opencv\build -DENABLE_CXX11=ON -DOPENCV_EXTRA_MODULES_PATH=C:\opencv\opencv_contrib-4.5.3\modules -DBUILD_SHARED_LIBS=ON -DWITH_IPP=OFF -DWITH_MSMF=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_python=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_DOCS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_wechat_qrcode=OFF -DCPU_DISPATCH= -DOPENCV_GENERATE_PKGCONFIG=ON -DWITH_OPENCL_D3D11_NV=OFF -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int64_t -Wno-dev
|
if [%1]==[static] (
|
||||||
|
echo Build static opencv
|
||||||
|
set enable_shared=OFF
|
||||||
|
) else (
|
||||||
|
set enable_shared=ON
|
||||||
|
)
|
||||||
|
cmake C:\opencv\opencv-4.5.4 -G "MinGW Makefiles" -BC:\opencv\build -DENABLE_CXX11=ON -DOPENCV_EXTRA_MODULES_PATH=C:\opencv\opencv_contrib-4.5.4\modules -DBUILD_SHARED_LIBS=%enable_shared% -DWITH_IPP=OFF -DWITH_MSMF=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_python=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_DOCS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_wechat_qrcode=OFF -DCPU_DISPATCH= -DOPENCV_GENERATE_PKGCONFIG=ON -DWITH_OPENCL_D3D11_NV=OFF -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int64_t -Wno-dev
|
||||||
mingw32-make -j%NUMBER_OF_PROCESSORS%
|
mingw32-make -j%NUMBER_OF_PROCESSORS%
|
||||||
mingw32-make install
|
mingw32-make install
|
||||||
rmdir c:\opencv\opencv-4.5.3 /s /q
|
rmdir c:\opencv\opencv-4.5.4 /s /q
|
||||||
rmdir c:\opencv\opencv_contrib-4.5.3 /s /q
|
rmdir c:\opencv\opencv_contrib-4.5.4 /s /q
|
||||||
chdir /D %GOPATH%\src\gocv.io\x\gocv
|
chdir /D %GOPATH%\src\gocv.io\x\gocv
|
||||||
|
3
vendor/google.golang.org/protobuf/encoding/prototext/decode.go
generated
vendored
3
vendor/google.golang.org/protobuf/encoding/prototext/decode.go
generated
vendored
@ -744,9 +744,6 @@ func (d decoder) skipValue() error {
|
|||||||
// Skip items. This will not validate whether skipped values are
|
// Skip items. This will not validate whether skipped values are
|
||||||
// of the same type or not, same behavior as C++
|
// of the same type or not, same behavior as C++
|
||||||
// TextFormat::Parser::AllowUnknownField(true) version 3.8.0.
|
// TextFormat::Parser::AllowUnknownField(true) version 3.8.0.
|
||||||
if err := d.skipValue(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
5
vendor/google.golang.org/protobuf/internal/encoding/text/encode.go
generated
vendored
5
vendor/google.golang.org/protobuf/internal/encoding/text/encode.go
generated
vendored
@ -263,3 +263,8 @@ func (e *Encoder) Snapshot() encoderState {
|
|||||||
func (e *Encoder) Reset(es encoderState) {
|
func (e *Encoder) Reset(es encoderState) {
|
||||||
e.encoderState = es
|
e.encoderState = es
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AppendString appends the escaped form of the input string to b.
|
||||||
|
func AppendString(b []byte, s string) []byte {
|
||||||
|
return appendString(b, s, false)
|
||||||
|
}
|
||||||
|
7
vendor/google.golang.org/protobuf/internal/impl/legacy_message.go
generated
vendored
7
vendor/google.golang.org/protobuf/internal/impl/legacy_message.go
generated
vendored
@ -440,6 +440,13 @@ func legacyMerge(in piface.MergeInput) piface.MergeOutput {
|
|||||||
if !ok {
|
if !ok {
|
||||||
return piface.MergeOutput{}
|
return piface.MergeOutput{}
|
||||||
}
|
}
|
||||||
|
if !in.Source.IsValid() {
|
||||||
|
// Legacy Marshal methods may not function on nil messages.
|
||||||
|
// Check for a typed nil source only after we confirm that
|
||||||
|
// legacy Marshal/Unmarshal methods are present, for
|
||||||
|
// consistency.
|
||||||
|
return piface.MergeOutput{Flags: piface.MergeComplete}
|
||||||
|
}
|
||||||
b, err := marshaler.Marshal()
|
b, err := marshaler.Marshal()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return piface.MergeOutput{}
|
return piface.MergeOutput{}
|
||||||
|
4
vendor/google.golang.org/protobuf/internal/version/version.go
generated
vendored
4
vendor/google.golang.org/protobuf/internal/version/version.go
generated
vendored
@ -52,8 +52,8 @@ import (
|
|||||||
// 10. Send out the CL for review and submit it.
|
// 10. Send out the CL for review and submit it.
|
||||||
const (
|
const (
|
||||||
Major = 1
|
Major = 1
|
||||||
Minor = 26
|
Minor = 27
|
||||||
Patch = 0
|
Patch = 1
|
||||||
PreRelease = ""
|
PreRelease = ""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
43
vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go
generated
vendored
43
vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go
generated
vendored
@ -94,7 +94,8 @@ type Files struct {
|
|||||||
// Note that enum values are in the top-level since that are in the same
|
// Note that enum values are in the top-level since that are in the same
|
||||||
// scope as the parent enum.
|
// scope as the parent enum.
|
||||||
descsByName map[protoreflect.FullName]interface{}
|
descsByName map[protoreflect.FullName]interface{}
|
||||||
filesByPath map[string]protoreflect.FileDescriptor
|
filesByPath map[string][]protoreflect.FileDescriptor
|
||||||
|
numFiles int
|
||||||
}
|
}
|
||||||
|
|
||||||
type packageDescriptor struct {
|
type packageDescriptor struct {
|
||||||
@ -117,17 +118,16 @@ func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error {
|
|||||||
r.descsByName = map[protoreflect.FullName]interface{}{
|
r.descsByName = map[protoreflect.FullName]interface{}{
|
||||||
"": &packageDescriptor{},
|
"": &packageDescriptor{},
|
||||||
}
|
}
|
||||||
r.filesByPath = make(map[string]protoreflect.FileDescriptor)
|
r.filesByPath = make(map[string][]protoreflect.FileDescriptor)
|
||||||
}
|
}
|
||||||
path := file.Path()
|
path := file.Path()
|
||||||
if prev := r.filesByPath[path]; prev != nil {
|
if prev := r.filesByPath[path]; len(prev) > 0 {
|
||||||
r.checkGenProtoConflict(path)
|
r.checkGenProtoConflict(path)
|
||||||
err := errors.New("file %q is already registered", file.Path())
|
err := errors.New("file %q is already registered", file.Path())
|
||||||
err = amendErrorWithCaller(err, prev, file)
|
err = amendErrorWithCaller(err, prev[0], file)
|
||||||
if r == GlobalFiles && ignoreConflict(file, err) {
|
if !(r == GlobalFiles && ignoreConflict(file, err)) {
|
||||||
err = nil
|
return err
|
||||||
}
|
}
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for name := file.Package(); name != ""; name = name.Parent() {
|
for name := file.Package(); name != ""; name = name.Parent() {
|
||||||
@ -168,7 +168,8 @@ func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error {
|
|||||||
rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) {
|
rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) {
|
||||||
r.descsByName[d.FullName()] = d
|
r.descsByName[d.FullName()] = d
|
||||||
})
|
})
|
||||||
r.filesByPath[path] = file
|
r.filesByPath[path] = append(r.filesByPath[path], file)
|
||||||
|
r.numFiles++
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -308,6 +309,7 @@ func (s *nameSuffix) Pop() (name protoreflect.Name) {
|
|||||||
// FindFileByPath looks up a file by the path.
|
// FindFileByPath looks up a file by the path.
|
||||||
//
|
//
|
||||||
// This returns (nil, NotFound) if not found.
|
// This returns (nil, NotFound) if not found.
|
||||||
|
// This returns an error if multiple files have the same path.
|
||||||
func (r *Files) FindFileByPath(path string) (protoreflect.FileDescriptor, error) {
|
func (r *Files) FindFileByPath(path string) (protoreflect.FileDescriptor, error) {
|
||||||
if r == nil {
|
if r == nil {
|
||||||
return nil, NotFound
|
return nil, NotFound
|
||||||
@ -316,13 +318,19 @@ func (r *Files) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
|
|||||||
globalMutex.RLock()
|
globalMutex.RLock()
|
||||||
defer globalMutex.RUnlock()
|
defer globalMutex.RUnlock()
|
||||||
}
|
}
|
||||||
if fd, ok := r.filesByPath[path]; ok {
|
fds := r.filesByPath[path]
|
||||||
return fd, nil
|
switch len(fds) {
|
||||||
|
case 0:
|
||||||
|
return nil, NotFound
|
||||||
|
case 1:
|
||||||
|
return fds[0], nil
|
||||||
|
default:
|
||||||
|
return nil, errors.New("multiple files named %q", path)
|
||||||
}
|
}
|
||||||
return nil, NotFound
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NumFiles reports the number of registered files.
|
// NumFiles reports the number of registered files,
|
||||||
|
// including duplicate files with the same name.
|
||||||
func (r *Files) NumFiles() int {
|
func (r *Files) NumFiles() int {
|
||||||
if r == nil {
|
if r == nil {
|
||||||
return 0
|
return 0
|
||||||
@ -331,10 +339,11 @@ func (r *Files) NumFiles() int {
|
|||||||
globalMutex.RLock()
|
globalMutex.RLock()
|
||||||
defer globalMutex.RUnlock()
|
defer globalMutex.RUnlock()
|
||||||
}
|
}
|
||||||
return len(r.filesByPath)
|
return r.numFiles
|
||||||
}
|
}
|
||||||
|
|
||||||
// RangeFiles iterates over all registered files while f returns true.
|
// RangeFiles iterates over all registered files while f returns true.
|
||||||
|
// If multiple files have the same name, RangeFiles iterates over all of them.
|
||||||
// The iteration order is undefined.
|
// The iteration order is undefined.
|
||||||
func (r *Files) RangeFiles(f func(protoreflect.FileDescriptor) bool) {
|
func (r *Files) RangeFiles(f func(protoreflect.FileDescriptor) bool) {
|
||||||
if r == nil {
|
if r == nil {
|
||||||
@ -344,9 +353,11 @@ func (r *Files) RangeFiles(f func(protoreflect.FileDescriptor) bool) {
|
|||||||
globalMutex.RLock()
|
globalMutex.RLock()
|
||||||
defer globalMutex.RUnlock()
|
defer globalMutex.RUnlock()
|
||||||
}
|
}
|
||||||
for _, file := range r.filesByPath {
|
for _, files := range r.filesByPath {
|
||||||
if !f(file) {
|
for _, file := range files {
|
||||||
return
|
if !f(file) {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
82
vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go
generated
vendored
82
vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go
generated
vendored
@ -43,7 +43,6 @@ package descriptorpb
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
protoiface "google.golang.org/protobuf/runtime/protoiface"
|
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
@ -829,15 +828,6 @@ func (*ExtensionRangeOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{3}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_ExtensionRangeOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use ExtensionRangeOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*ExtensionRangeOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_ExtensionRangeOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption {
|
func (x *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.UninterpretedOption
|
return x.UninterpretedOption
|
||||||
@ -1520,15 +1510,6 @@ func (*FileOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{10}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_FileOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use FileOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*FileOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_FileOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *FileOptions) GetJavaPackage() string {
|
func (x *FileOptions) GetJavaPackage() string {
|
||||||
if x != nil && x.JavaPackage != nil {
|
if x != nil && x.JavaPackage != nil {
|
||||||
return *x.JavaPackage
|
return *x.JavaPackage
|
||||||
@ -1776,15 +1757,6 @@ func (*MessageOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{11}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_MessageOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use MessageOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*MessageOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_MessageOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MessageOptions) GetMessageSetWireFormat() bool {
|
func (x *MessageOptions) GetMessageSetWireFormat() bool {
|
||||||
if x != nil && x.MessageSetWireFormat != nil {
|
if x != nil && x.MessageSetWireFormat != nil {
|
||||||
return *x.MessageSetWireFormat
|
return *x.MessageSetWireFormat
|
||||||
@ -1930,15 +1902,6 @@ func (*FieldOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_FieldOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use FieldOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*FieldOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_FieldOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *FieldOptions) GetCtype() FieldOptions_CType {
|
func (x *FieldOptions) GetCtype() FieldOptions_CType {
|
||||||
if x != nil && x.Ctype != nil {
|
if x != nil && x.Ctype != nil {
|
||||||
return *x.Ctype
|
return *x.Ctype
|
||||||
@ -2030,15 +1993,6 @@ func (*OneofOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{13}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_OneofOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use OneofOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*OneofOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_OneofOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *OneofOptions) GetUninterpretedOption() []*UninterpretedOption {
|
func (x *OneofOptions) GetUninterpretedOption() []*UninterpretedOption {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.UninterpretedOption
|
return x.UninterpretedOption
|
||||||
@ -2101,15 +2055,6 @@ func (*EnumOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{14}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{14}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_EnumOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use EnumOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*EnumOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_EnumOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EnumOptions) GetAllowAlias() bool {
|
func (x *EnumOptions) GetAllowAlias() bool {
|
||||||
if x != nil && x.AllowAlias != nil {
|
if x != nil && x.AllowAlias != nil {
|
||||||
return *x.AllowAlias
|
return *x.AllowAlias
|
||||||
@ -2183,15 +2128,6 @@ func (*EnumValueOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{15}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{15}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_EnumValueOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*EnumValueOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_EnumValueOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EnumValueOptions) GetDeprecated() bool {
|
func (x *EnumValueOptions) GetDeprecated() bool {
|
||||||
if x != nil && x.Deprecated != nil {
|
if x != nil && x.Deprecated != nil {
|
||||||
return *x.Deprecated
|
return *x.Deprecated
|
||||||
@ -2258,15 +2194,6 @@ func (*ServiceOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{16}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{16}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_ServiceOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use ServiceOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*ServiceOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_ServiceOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ServiceOptions) GetDeprecated() bool {
|
func (x *ServiceOptions) GetDeprecated() bool {
|
||||||
if x != nil && x.Deprecated != nil {
|
if x != nil && x.Deprecated != nil {
|
||||||
return *x.Deprecated
|
return *x.Deprecated
|
||||||
@ -2335,15 +2262,6 @@ func (*MethodOptions) Descriptor() ([]byte, []int) {
|
|||||||
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{17}
|
return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{17}
|
||||||
}
|
}
|
||||||
|
|
||||||
var extRange_MethodOptions = []protoiface.ExtensionRangeV1{
|
|
||||||
{Start: 1000, End: 536870911},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use MethodOptions.ProtoReflect.Descriptor.ExtensionRanges instead.
|
|
||||||
func (*MethodOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
|
||||||
return extRange_MethodOptions
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MethodOptions) GetDeprecated() bool {
|
func (x *MethodOptions) GetDeprecated() bool {
|
||||||
if x != nil && x.Deprecated != nil {
|
if x != nil && x.Deprecated != nil {
|
||||||
return *x.Deprecated
|
return *x.Deprecated
|
||||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -31,14 +31,14 @@ go.uber.org/zap/internal/bufferpool
|
|||||||
go.uber.org/zap/internal/color
|
go.uber.org/zap/internal/color
|
||||||
go.uber.org/zap/internal/exit
|
go.uber.org/zap/internal/exit
|
||||||
go.uber.org/zap/zapcore
|
go.uber.org/zap/zapcore
|
||||||
# gocv.io/x/gocv v0.28.0
|
# gocv.io/x/gocv v0.29.0
|
||||||
## explicit; go 1.13
|
## explicit; go 1.13
|
||||||
gocv.io/x/gocv
|
gocv.io/x/gocv
|
||||||
# golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
|
# golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
|
||||||
## explicit; go 1.11
|
## explicit; go 1.11
|
||||||
golang.org/x/net/internal/socks
|
golang.org/x/net/internal/socks
|
||||||
golang.org/x/net/proxy
|
golang.org/x/net/proxy
|
||||||
# google.golang.org/protobuf v1.26.0
|
# google.golang.org/protobuf v1.27.1
|
||||||
## explicit; go 1.9
|
## explicit; go 1.9
|
||||||
google.golang.org/protobuf/encoding/prototext
|
google.golang.org/protobuf/encoding/prototext
|
||||||
google.golang.org/protobuf/encoding/protowire
|
google.golang.org/protobuf/encoding/protowire
|
||||||
|
Loading…
Reference in New Issue
Block a user