2021-05-05 03:30:15 +02:00
|
|
|
// Copyright 2020-2021 The MediaPipe Authors.
|
2020-08-13 03:57:56 +02:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
#include "mediapipe/python/pybind/calculator_graph.h"
|
2021-05-05 03:30:15 +02:00
|
|
|
#include "mediapipe/python/pybind/image.h"
|
2020-08-13 03:57:56 +02:00
|
|
|
#include "mediapipe/python/pybind/image_frame.h"
|
|
|
|
#include "mediapipe/python/pybind/matrix.h"
|
|
|
|
#include "mediapipe/python/pybind/packet.h"
|
|
|
|
#include "mediapipe/python/pybind/packet_creator.h"
|
|
|
|
#include "mediapipe/python/pybind/packet_getter.h"
|
|
|
|
#include "mediapipe/python/pybind/resource_util.h"
|
|
|
|
#include "mediapipe/python/pybind/timestamp.h"
|
2020-09-16 03:31:50 +02:00
|
|
|
#include "mediapipe/python/pybind/validated_graph_config.h"
|
2022-09-06 23:29:51 +02:00
|
|
|
#include "mediapipe/tasks/python/core/pybind/task_runner.h"
|
2020-08-13 03:57:56 +02:00
|
|
|
|
|
|
|
namespace mediapipe {
|
|
|
|
namespace python {
|
|
|
|
|
|
|
|
PYBIND11_MODULE(_framework_bindings, m) {
|
|
|
|
ResourceUtilSubmodule(&m);
|
2021-05-05 03:30:15 +02:00
|
|
|
ImageSubmodule(&m);
|
2020-08-13 03:57:56 +02:00
|
|
|
ImageFrameSubmodule(&m);
|
|
|
|
MatrixSubmodule(&m);
|
|
|
|
TimestampSubmodule(&m);
|
|
|
|
PacketSubmodule(&m);
|
|
|
|
PacketCreatorSubmodule(&m);
|
|
|
|
PacketGetterSubmodule(&m);
|
|
|
|
CalculatorGraphSubmodule(&m);
|
2020-09-16 03:31:50 +02:00
|
|
|
ValidatedGraphConfigSubmodule(&m);
|
2022-09-06 23:29:51 +02:00
|
|
|
// As all MediaPipe calculators and Python bindings need to go into a single
|
|
|
|
// .so file, having MediaPipe Tasks' task runner module in _framework_bindings
|
|
|
|
// as well.
|
|
|
|
tasks::python::TaskRunnerSubmodule(&m);
|
2020-08-13 03:57:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace python
|
|
|
|
} // namespace mediapipe
|