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

Detection in progress #13

Open
mariasimone308 opened this issue Feb 13, 2023 · 4 comments
Open

Detection in progress #13

mariasimone308 opened this issue Feb 13, 2023 · 4 comments

Comments

@mariasimone308
Copy link

Hi! As a beginner with this package I've chosen to use the shiny-based application with the command MtreeRing::ring_app_launch().

First I uploaded the image, and cropped it without problems, but after creating path correctly, when I click on the "Ring Detection" then the application gets stuck in "Detection in progress" for hours, without final results, even if the file is in the right format (jpg) and the size is <10MB.
Also I've kept the default setting for the Labels and Detection windows. I tried with different format, or different files, but is always the same.
Thanks for the help.

Screenshot (3)

@JingningShi
Copy link
Contributor

JingningShi commented Feb 14, 2023

Thank you for your interest in this package.
This problem may be caused by the update of other R libraries that MtreeRing relies on. After clicking on the "Ring Detection" button, could you please provide some messages shown in the console of RStudio? Like this:

1676342999323

If your RStudio console showed the same problem as above, you can try to choose 'measuRing' as the detection method. This option is on the right side of the app window.

1676343625720

@mariasimone308
Copy link
Author

After clicking "Ring Detection", this message appears in the console:

MtreeRing::ring_app_launch()
The name provided ('fas fa-question-circle fa-fw') does not correspond to a known icon
The name provided ('fas fa-folder-open fa-fw') does not correspond to a known icon
The name provided ('fas fa-gear fa-fw') does not correspond to a known icon
The name provided ('circle-o') does not correspond to a known icon

Listening on http://127.0.0.1:4836
Warning: Error in where: Can't convert fn, a <pixset/imager_array/logical> object, to a function.
3: runApp
2: print.shiny.appobj
1:

I tried the measuRing detection and it works, but how can I use the others detection methods, since I can't use the "Inclined tree rings" with measuRing?

@JingningShi
Copy link
Contributor

JingningShi commented Feb 16, 2023

Warning: Error in where: Can't convert fn, a <pixset/imager_array/logical> object, to a function.
This error is caused by the update of an image processing R package. I will locate and fix this bug as soon as possible. Thank you for your feedback.

Before a new version of the app is available, an alternative solution is to use the ring_detect function, like the R codes below:
img.path <- system.file("001.png", package = "MtreeRing")
t1 <- ring_read(img = img.path, dpi = 1200, plot = FALSE)
t2 <- ring_detect(t1, seg = 3, incline = T, method = 'watershed', border.color = 'green')

@asplundj
Copy link

Are there any progress with this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants