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

An error occurs during configuring #93

Closed
Monkiesh opened this issue Jun 17, 2023 · 4 comments
Closed

An error occurs during configuring #93

Monkiesh opened this issue Jun 17, 2023 · 4 comments

Comments

@Monkiesh
Copy link

image

I am trying to track a freely swimming zebra fish, but this occurred when I am doing the configuration.

Here is the config file.
04_2023_06_17-14_52_36_unfinished.json.txt

And my vedio:
https://github.com/oliviermirat/ZebraZoom/assets/116359136/6b4f85d6-dfe5-4042-9e4c-303839aba904

@oliviermirat
Copy link
Owner

Hello,

Currently videos with "white fish and black background" are not supported for configuration file creation for freely swimming fish (only videos with "black fish and white background" are supported). We could probably make that improvement sometime soon if you want us to. If so, please email me at info@zebrazoom.org

In the meantime, you can still use the following configuration file to track the video you sent:
{"extractAdvanceZebraParameters": 1, "headEmbeded": 0, "noWellDetection": 1, "nbWells": 1, "noBoutsDetection": 0, "noChecksForBoutSelectionInExtractParams": 1, "trackingPointSizeDisplay": 4, "validationVideoPlotHeading": 0, "nbAnimalsPerWell": 1, "minArea": 1205, "maxArea": 4821, "minAreaBody": 1205, "maxAreaBody": 4821, "headSize": 32, "minTailSize": 5, "maxTailSize": 219, "paramGaussianBlur": 65, "extractBackWhiteBackground": 1, "onlyTrackThisOneWell": -1, "reloadBackground": 0, "reloadWellPositions": 0, "adjustFreelySwimTracking": 0, "minPixelDiffForBackExtract": 20, "trackTail": 1, "adjustDetectMovWithRawVideo": 0, "thresForDetectMovementWithRawVideo": 28, "frameGapComparision": 3, "halfDiameterRoiBoutDetect": 114, "minNbPixelForDetectMovementWithRawVideo": 0, "saveAllDataEvenIfNotInBouts": 1, "invertBlackWhiteOnImages": 1}

It is working well on my computer:

image

Best Regards,

Olivier

@oliviermirat
Copy link
Owner

oliviermirat commented Jun 17, 2023

If you update to the latest version of ZebraZoom (1.33.30), you can now create a configuration file for your video.

When you are on this first page:

image

select the checkbox "Click here to start from a configuration file previously created (instead of from scratch)"

And choose the file "invertBlackWhiteOnImages.json", which you can also find here: https://github.com/oliviermirat/ZebraZoom/blob/master/zebrazoom/configuration/invertBlackWhiteOnImages.json

Then create a configuration file as you normally would and it should work. If it doesn't, just let me know.

Let me know if that works for you.

@Monkiesh
Copy link
Author

Thanks a lot for your help!!!!!!!!!!!!!!!!!!!!!
Sorry for didn't reply in time. (I am busy preparing my final exam tomorrow)
It works very well for me now.

@oliviermirat
Copy link
Owner

I'm glad I could help!
Let me know if you need anything else.
Olivier

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

2 participants