|
Post by nathanmyersc on Mar 25, 2024 3:37:19 GMT
With the opencv library i could programmatically add actual text overlayed ontop of images at really small sizes so we could fit like 20-40 thousands lines of text onto an image. it would be another form of the bitmap generator basically as it would imbue the image with the affirmations and would be visible if you printed it out. heres an example of one i did manuaklly that i have on my wall to help me program. feel free to have the image as a mandala. freeimage.host/i/JhiYIttdocs.opencv.org/4.x/d3/d52/tutorial_windows_install.htmlnvm i used GIT-BASH and the script they showed to download it i was trying mannually with cmake several times and failed. Ima get back to you guys with a super small text overlaying app youd like soon enough
|
|
|
Post by nathanmyersc on Mar 25, 2024 10:23:47 GMT
Hmm its preliminary but ive managed to overlay I AM GODLIKE onto this image programmatically pretty well after arguing with chat gpt for an hour. let me know if this sort of tool would be useful to you and il figure out a way to make a executable for it cause not everyone can get opencv to work. although the steps are simple enough. It does require a like 90 mb dll atm. Im trying to figure out how to not do that. But i think it just needs the 90 mb dll to work. one image is 10% opacity one is 2.5% opacity for the text. i also upscaled the image with online tools and then overlayed with text looks alot better. its a pretty sweet addition to the bitmap overlay. now all my mandalas with have text overlay AND bitmap overlay. Attachments:![](//storage.proboards.com/7193940/thumbnailer/yTDKnNnaELumCcGvYvPD.png)
![](//storage.proboards.com/7193940/thumbnailer/qSaFwZU0QtHUXbjCuzlK.png)
|
|
|
Post by reden on Mar 25, 2024 12:39:16 GMT
Hmm its preliminary but ive managed to overlay I AM GODLIKE onto this image programmatically pretty well after arguing with chat gpt for an hour. let me know if this sort of tool would be useful to you and il figure out a way to make a executable for it cause not everyone can get opencv to work. although the steps are simple enough. It does require a like 90 mb dll atm. Im trying to figure out how to not do that. But i think it just needs the 90 mb dll to work. one image is 10% opacity one is 2.5% opacity for the text. i also upscaled the image with online tools and then overlayed with text looks alot better. its a pretty sweet addition to the bitmap overlay. now all my mandalas with have text overlay AND bitmap overlay. The -static argument will make the exe 90 mb, but not require the dll anymore, as it will be part of the exe.
|
|
|
Post by AnthroHeart on Mar 25, 2024 12:55:03 GMT
Hmm its preliminary but ive managed to overlay I AM GODLIKE onto this image programmatically pretty well after arguing with chat gpt for an hour. let me know if this sort of tool would be useful to you and il figure out a way to make a executable for it cause not everyone can get opencv to work. although the steps are simple enough. It does require a like 90 mb dll atm. Im trying to figure out how to not do that. But i think it just needs the 90 mb dll to work. one image is 10% opacity one is 2.5% opacity for the text. i also upscaled the image with online tools and then overlayed with text looks alot better. its a pretty sweet addition to the bitmap overlay. now all my mandalas with have text overlay AND bitmap overlay. The -static argument will make the exe 90 mb, but not require the dll anymore, as it will be part of the exe. I have found that -static is not a valid flag for nvcc, when compiling for CUDA. It required me when I compiled my latest simple repeater cuda to have another dll I had to hunt down.
I haven't figured out how to include the dll in the .exe when compiling with NVCC.
When I added the zlib library for compression with CUDA, it was requiring the library dll file, but g++ compiling with the -lz flag did not.
There is no -lz flag on CUDA NVCC.
I got it to run. I just had to copy over the .dll from somewhere else to my folder.
|
|
|
Post by nathanmyersc on Mar 25, 2024 13:16:20 GMT
Hmm its preliminary but ive managed to overlay I AM GODLIKE onto this image programmatically pretty well after arguing with chat gpt for an hour. let me know if this sort of tool would be useful to you and il figure out a way to make a executable for it cause not everyone can get opencv to work. although the steps are simple enough. It does require a like 90 mb dll atm. Im trying to figure out how to not do that. But i think it just needs the 90 mb dll to work. one image is 10% opacity one is 2.5% opacity for the text. i also upscaled the image with online tools and then overlayed with text looks alot better. its a pretty sweet addition to the bitmap overlay. now all my mandalas with have text overlay AND bitmap overlay. The -static argument will make the exe 90 mb, but not require the dll anymore, as it will be part of the exe. I realize i compiled a dynamic version of OPEN CV. but i get different erros when trying to compile statically. i am missing libraries that are not mandatory but likely improve open cv. but il just compile it probably works for my usage still. il share the program at some point its awesome. you input your itnent and it centers and prints as many times as it can without being cut off by the edge of the image. totalyl will make all our mandalas stronger
|
|
|
Post by AnthroHeart on Mar 25, 2024 13:47:28 GMT
What font size does it print the text?
|
|
|
Post by nathanmyersc on Mar 25, 2024 13:51:28 GMT
What font size does it print the text? Hard to say its in floating point. but when i manually do it i upscale an image to around 4000 px by 4000 px and use size 5. Id probably make the size a setting the user could decide to a certian degree. in this image im pretty sure its just 1 pixel. which isnt what im planning for. im upscaling any images i use with this so i can use at least size 5 cause when i print it out it actually looks like text. www.img2go.com/upscale-image this is the best free upscaling app ive found. no gimmicks just lets you upscale images 4x and good quality.
|
|
|
Post by reden on Apr 1, 2024 3:35:21 GMT
You can install MSYS2 and then run in the MSYS2 environment: pacman -S base-devel opencv python-opencv imagemagick I'm guessing python-opencv is a package you can import in your file. To scale an image you can use imagemagick, a commandline tool: convert image.png -scale 400% output.png
|
|
|
Post by nathanmyersc on Apr 1, 2024 3:37:24 GMT
You can install MSYS2 and then run in the MSYS2 environment: pacman -S base-devel opencv python-opencv imagemagick I'm guessing python-opencv is a package you can import in your file. To scale an image you can use imagemagick, a commandline tool: convert image.png -scale 400% output.png I ended up figuring it out for c++ and i have a text overlay utiltiy of minor repute. i still want to figure oiut how to get a good part of a text document overlaying an image ffor now its ust a repeated intent. i wouldnt know how to handle indiviudal characters and sentences when to go to the next line ecetera. But i want to figure that out for more advanced text overlay.
|
|
|
Post by nathanmyersc on Apr 1, 2024 3:38:06 GMT
Heres the file if you wanna have a wack at getting it to work. Attachments:main.cpp (4.02 KB)
|
|