umautobots / gta-postprocessing Goto Github PK
View Code? Open in Web Editor NEWPostprocessing code for GTA
License: GNU General Public License v3.0
Postprocessing code for GTA
License: GNU General Public License v3.0
Here you are using ngv_box3dpolygon
function in the PostgreSQL. Since I can not find it anywhere in PostgreSQL, nor in PostGis extension, I guess it is your function.
Could you add your defined functions in the PostgreSQL database?
Hey, I tried reading the RGB images from the .tiffs generated by the managed code. They look fine but the stencil looks weird. I'm reading it using the code provided in the generate_bboxes.py and get the following result if I display the image.
What did I mess up?
Can you help me?
Code used:
imgpath = data_dir + filename + ".tiff"
tiffimg = TIFF.open(str(imgpath))
img = Image.open(str(imgpath))
w = img.width
h = img.height
del img
image = np.empty((h, w, 4), dtype=np.uint8)
depth = np.empty((h, w), dtype=np.float32)
stencil = np.empty((h, w), dtype=np.uint8)
TIFF.setdirectory(tiffimg, 0)
TIFF.readencodedstrip(tiffimg, 0, image.ctypes.data, -1)
lastdir = num_directories(tiffimg) - 1
TIFF.setdirectory(tiffimg, lastdir - 1)
TIFF.readencodedstrip(tiffimg, 0, depth.ctypes.data, -1)
TIFF.setdirectory(tiffimg, lastdir)
TIFF.readencodedstrip(tiffimg, 0, stencil.ctypes.data, -1)
cv2.imshow("mask", stencil)
cv2.waitKey(0)
edit:
Moved to main repo.
Hi, the ngv_get_bytes(localpath, imagepath)
which is used in ngv_get_bytes(id integer)
and ngv_get_raster(archive text, image text)
is not found, and thus these functions fail to be created.
This does not break the functionality, because these functions are not being used in the post-processing script, as far as I could see, but it would be nice to have it working without errors.
Hi,
I have problems using your post processing scripts.
python generate_bboxes.py --session 1 --dataroot Data --pixel_path Data
python genvoc.py --out TestOut --image_path Data/bca0a265-0e7f-415b-a41f-2052b7517d0e --pixel_path Data --query "SELECT * FROM detections JOIN snapshots USING (snapshot_id) JOIN runs USING (run_id) JOIN sessions USING (session_id) WHERE snapshot_id=1"
colors = [(255,0,255), (55,0,55), (34,33,87)]
Is this correct?Can you help please?
Cheers,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.