Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v0.1.1 #26

Merged
merged 9 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/Register.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Register Package
on:
workflow_dispatch:
inputs:
version:
description: Version to register or component to bump
required: true
jobs:
register:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: julia-actions/RegisterAction@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 4 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "PyCaesar"
uuid = "5de271da-f4c9-48db-ba43-272b66d09ab8"
desc = "Python extensions relating to Caesar.jl"
authors = ["dehann <[email protected]>"]
version = "0.1.0"
version = "0.1.1"

[deps]
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0"
Expand Down Expand Up @@ -41,14 +41,15 @@ Caesar = "0.16"
Colors = "0.12"
DistributedFactorGraphs = "0.23"
DocStringExtensions = "0.9"
FixedPointNumbers = "0.8"
OpenSSL = "1"
FileIO = "1"
FixedPointNumbers = "0.8"
ImageMagick = "1"
JSON3 = "1"
OpenSSL = "1"
ProgressMeter = "1"
PyCall = "1"
RobotOS = "0.7"
SHA = "0.7"
StaticArrays = "1"
TensorCast = "0.4"
TimeZones = "1"
Expand Down
26 changes: 23 additions & 3 deletions ext/PyCaesarImagesExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ using ProgressMeter
using JSON3
using TensorCast
using SHA: sha256
using Caesar
using DocStringExtensions

import PyCaesar: calcFlow, getPose, goodFeaturesToTrack, goodFeaturesToTrackORB, combinePlot
import PyCaesar: calcFlow, goodFeaturesToTrack, goodFeaturesToTrackORB, combinePlot
import PyCaesar: trackFeaturesFrames, trackFeaturesForwardsBackwards
import PyCaesar: makeBlobFeatureTracksPerImage_FwdBck!, makeORBParams
import PyCaesar: pycv
import PyCaesar: getPoseEssential, getPoseFundamental
import PyCaesar: getPose # deprecating
import PyCaesar: getPoseSIFT # deprecating
import PyCaesar: undistortImage

export calcFlow, getPose, goodFeaturesToTrack, goodFeaturesToTrackORB, combinePlot
export calcFlow, getPoseEssential, goodFeaturesToTrack, goodFeaturesToTrackORB, combinePlot
export trackFeaturesFrames, trackFeaturesForwardsBackwards, makeBlobFeatureTracksPerImage_FwdBck!, makeORBParams
export undistortImage

pyutilpath = joinpath(@__DIR__, "Utils")
pushfirst!(PyVector(pyimport("sys")."path"), pyutilpath )
Expand All @@ -25,16 +33,28 @@ const cv = PyNULL()
# const SscPy = PyNULL()
SscPy = pyimport("PySSCFeatures")

# reset the pointers between precompile and using
function __init__()
copy!(np, pyimport("numpy"))
copy!(cv, pyimport("cv2"))
# copy!(SscPy, pyimport("PySSCFeatures"))
end

"""
$SIGNATURES

ssc = SscPy."ssc"
Function to expose the modules internal cv pointer.
"""
pycv() = cv

pyssc = SscPy."ssc"


include("services/OpenCVFeatures.jl")
include("services/OpenCVUndistort.jl")

# deprecation
@deprecate getPose(p1, p2, K) getPoseEssential(p1, p2, K)


end
Loading
Loading