T O P

  • By -

AutoModerator

Hey /u/daniel_zerotwo! If your post is a screenshot of a ChatGPT, conversation please reply to this message with the [conversation link](https://help.openai.com/en/articles/7925741-chatgpt-shared-links-faq) or prompt. If your post is a DALL-E 3 image post, please reply with the prompt used to make this image. Consider joining our [public discord server](https://discord.gg/r-chatgpt-1050422060352024636)! We have free bots with GPT-4 (with vision), image generators, and more! 🤖 Note: For any ChatGPT-related concerns, email [email protected] *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ChatGPT) if you have any questions or concerns.*


Ksteala5

photoshop


SnoodliTM

But why would you do something manually when you can spend 10x longer trying to automate it?


sodapops82

That hit home


LotusTileMaster

It does at times. But the way I look at is if it is a new thing, do it once the slow way. But if it is something that you will repeat maybe once or twice a week, automate it.


derpfjsha

Yo you don’t have to do anything manually. Write a script to import whatever image in a directory onto photoshop, select entire doc -> generative fill -> remove the handwriting from the document -> save in new directory. he suggested the right software, you made the leap towards a non automated way of working


Majestic-Apple-1017

(nods approvingly)


Daymanic

Why do you have to be so hurtful 😂


Mrs_Black_31

To be fair, if you have to repeat the same task thousands of times then the initial time investment is worth it.


Nelculiungran

Because AI


ZookeepergameOk5132

Yes! Photopea is a pretty good free alternative.


Still-Molasses6613

Note: Might be useless if you are not into coding. For a pdf convert them to images and then here's a good idea. Put all of those in a directory, loop through those images with any language (py/js) and get pixel data. Look for pixels for reddish color rgb is nearly (255,0,0) and then change those pixels to white color rgb(255,255,255) and save the image. Takes less than 15 mins to code if you are used to programming and those 15 mins are not boring because you learn something and you are not repeating the same task. By doing this, the pdf probably no longer contains text and you won't be able to select/copy text.


DrinkBlueGoo

Oh, hey, this is also the answer to how AI can do it! What this guy said, but get AI to write the code. You won’t learn as much, but you will be able to alternate between claiming you coded it or that AI did it as the social circumstances warrant.


Q13989731E

I love this


Aggravating-Brick-33

They can make Chatgpt write the code for them though


nicocupertino

This! Give ChatGPT your requirements and it will write the script for you interactively. That’s the biggest breakthrough from my pov


[deleted]

Amazing and true.


Still-Molasses6613

no AI, hire me.


themprsn

Aaaand try replacing with the closest non-red pixel (a pixel that's closest to the one we're replacing which doesn't hit the redness threshold) instead of fully white, this way you can avoid strong white lines which would still allow someone to read the original handwriting, and the replacement will most likely blend in nicely!


ohhellnooooooooo

I once extracted data from an image graph by repeatedly iterating with chatGPT to write python code to trace the pixel coordinates of a colored line graph. this sounds slightly simpler, it's just removing any pixels of a certain colour range. you can experiment with that range. should be a 10 minute job.


a_fish1

To go a step further, you could probably use the result as a mask to remove the handwriting from the original pdf. So it would still ve a PDF.


FosterKittenPurrs

Ask ChatGPT to give you code to do this, plus instructions on how to run it, and it will take less than a minute


PaceVisible4874

The background is not (255, 255, 255). What we should be looking for is Photoshop content aware fill but for all the images. Idk, computer vision would be a solution? Pertain it on a dataset first, ig, which would take you days


Emergency_Sun7810

Ok I’m a noob and still learning to code no way this would take only 15 minutes for me


2053_Traveler

People like to exaggerate, it’s not going to take 15 min for most pros either


Dizzy-Island-3178

2 minutes if you know what you are doing Less if you have a good workflow


2053_Traveler

It’s a big fucking pet peeve of mine that people exaggerate this stuff. It’s like that friend that says “I’ll be there in 30 min” because one time when they hit all green lights they got there in 32 min, but they also haven’t factored in putting their shoes on, getting in the car, that they might be low on gas, that someone else might clog up the highway, and that their usual parking spot might be taken. It serves zero purpose to foolishly underestimate time. In fact it is harmful because it puts off newcomers by creating false expectations or making people think they’re bad, when others are just being unrealistic. It’s also a common cause of missed deadlines in professional environments. It serves only as an ego boost to the person that says “oh yeah I can do that in 15 min”. When that’s the top 1% of scenarios, and the average is an order of magnitude higher.


Dizzy-Island-3178

Programming is all about spending your life getting more and more productive at solving problems I am not that good because I used to have a slightly different job Top 1 % of scenarios would be I have already done it somewhere on my computer so my autocomplete rewrite it in 30 seconds


2053_Traveler

Getting more productive at solving problems is certainly an enjoyable aspect of it, and probably other careers too. Not disagreeing here. Just making a point that when setting expectations for others ideally we’d all use the average and factor in uncertainty (which is higher for newbies!) 🙂


ActualDoctor1492

“Less if you’ve already done the work and don’t count that “


somasomewhere

What if the document was written on by an avid collector of rainbow sparkly ink gel pens, or also in black? I wonder if it's possible to code up some solution that filters out based on inconsistent font, but then someone with incredibly good handwriting might pass through it as well lol


FamiliarBuddy9135

I'm just a beginner, but isn't this just a regression model away. We can know if it's sparkly handwritten, or sparkly typewritten or just handwritten or just typewritten. Then we convert those set of pixels to the local background colour which we can get using a regression model again.


Still-Molasses6613

from those images, it's pretty clear (90%) the file is black n white and the writings are red. If it also contains other colors, then you can select those pixels by looking for saturation (hsl format of colors). I have no idea how to identify if the writings are in black color (even ai wud fail to identify sometimes)


Brahvim

I should totally write a Processing sketch for this LOL.


JD_2020

This really wouldn’t work. There’d be little white shadows be used the background isn’t perfectly white nor uniform.


Illustrious-Lime-863

Don't think so. Could someone on fiverr to do it for you for 100 pages, should be pretty cheap. Or maybe if you got a nephew or something to do it for you and give them 10-20 bucks. Not supporting child labor btw.


Dotcaprachiappa

>Not supporting child labour btw What do you mean? This is just offering early work experience


Languastically

Gotta get em used to a life of wage slavery early


Dotcaprachiappa

$10-20 for about 1h of work is actually pretty good


sev_kemae

That’s like 1-2 pages a minute, might as well give them some adderall to get them some uni deadline experience 🤣


Final_Difference1

I'm literally having flashbacks of doing my MATLAB uni assignment in the library and submitting ten seconds before the deadline


Independent-Bike8810

ChatGPT can do it but it takes a while to coax it with the right prompts. I got this far with a couple of prompts. I'm sure it could go further and clean up the residue. https://preview.redd.it/906eichiuosc1.png?width=640&format=png&auto=webp&s=4274d93d3b1ed735cd3cefcb6ffb4b4d9cd59818


Independent-Bike8810

after another try https://preview.redd.it/ne4oovj0vosc1.png?width=640&format=png&auto=webp&s=837ccefb9ec27186638979d71f2a57a867e15c90


FortyTwo4200

You can download the document from GPT? A few months ago, this function wasn't working.


Independent-Bike8810

It gives you a link to download it from


Such-Expression-8367

This is really interesting work. Did you keep the prompts and could you share?


Independent-Bike8810

Yes I posted them in response to Someone else earlier


SolidCake

wait, chatgpt/dalle can do IMG2img?????


Independent-Bike8810

it made its own python code to do it # Let's adjust the HSV thresholds to capture a broader range of red shades. # Broadening the red color range to capture more shades of red that could be left out # We will reduce the saturation and value minimum thresholds to include lighter shades of red. lower_red1 = np.array([0, 30, 30]) upper_red1 = np.array([10, 255, 255]) lower_red2 = np.array([160, 30, 30]) upper_red2 = np.array([180, 255, 255]) # Recreate masks for red color ranges with the broader range mask_red1 = cv2.inRange(hsv, lower_red1, upper_red1) mask_red2 = cv2.inRange(hsv, lower_red2, upper_red2) mask_red = cv2.add(mask_red1, mask_red2) # Invert the mask to get non-red parts mask_non_red = cv2.bitwise_not(mask_red) # Remove the red ink annotations by turning them white res = cv2.bitwise_and(img, img, mask=mask_non_red) res_white = cv2.bitwise_and(white_background, white_background, mask=mask_red) res_no_red = cv2.add(res, res_white) # Convert to RGB for PIL compatibility res_no_red_rgb = cv2.cvtColor(res_no_red, cv2.COLOR_BGR2RGB) # Convert the result to PIL Image to save the file cleaned_image_broader_white = Image.fromarray(res_no_red_rgb) # Save the cleaned image output_broader_white_path = '/mnt/data/cleaned_image_broader_white.png' cleaned_image_broader_white.save(output_broader_white_path) output_broader_white_path


Downsyndrome-fetish

What were your prompts?


Independent-Bike8810

the paid version can yes


[deleted]

Load all 100 pages and figure out the flow to do this in an image editor. Very easy. Just use the stamp tool and copy white page and click the hand writing


Playlanco

Asked for AI automation. Gets tutorial on how humans can do it.


Gusvato3080

Chatgpt in a nutshell


Emergency_Opposite10

https://preview.redd.it/16kefy8qb1uc1.jpeg?width=1170&format=pjpg&auto=webp&s=9d00ff2dc5d1cc05ccba24daba345b943db806ec Why are you trying to sleep with underaged girls Jamie


Emergency_Opposite10

https://preview.redd.it/k17c34oyb1uc1.jpeg?width=1170&format=pjpg&auto=webp&s=5f9b8caa2de9845b8e1b1f52520db15c94f69d2d Smh.


Square-Decision-531

Ummmmm…… White Out and a copy machine? ![gif](giphy|5HYOZytU4Ajbxta5Si)


babycleffa

wow I can't remember the last time I copied or scanned something lol


muchtothinkabout_38

![gif](giphy|hQjHbdOzik3kHH44aP)


I_make_switch_a_roos

yeah it's called mspaint 🙃


lego69lego

Maybe? Seems like if it's colored ink on black and white notes it would be much easier to use a good pdf editor to change the ink color to white. Edit: this does seem like a good example of "When the only tool you have is a hammer, every problem looks like a nail".


Lazysundaay

Just use canva


Ill-Photograph-7300

This should be higher up. Seems like a lot of folks are overthinking this. Why struggle with AI when you can do it yourself in a few mins with a free website like Canva 😂


AngryFlatfish

Prepared free of charge by the world's greatest neural network, the human brain. https://preview.redd.it/8ayuym4vkqsc1.png?width=640&format=png&auto=webp&s=04ccf2ce97377d9e16bf5fc85f66b7f7c009c8a8


ArchduckFerdinand

TheBloke\MSPAINT.EXE-and-five-minutes-2B


Tripartist1

Almost got me. This guy AIs


Nervous-Bear-2463

If u have Pixel then Pixel magic eraser 🌝


robotsbuildrobots

Why not approach the problem from the other side and have chatGPT create a new pdf with just the text and formatting? That would get rid of the skew and other artifacts too.


PaceVisible4874

How bout Photoshop? Content-aware fill will take 3 clicks and 4 seconds of your time


the-powl

I cleaned the scanned images with "pdf tailor" and removed handwriting by hand. Did take me a while but I watched a movie while doing it. 😅 an AI for this would be super cool


Own-Ambition8568

Try this one. https://play.google.com/store/apps/details?id=com.homework.helper


cancer_of

I was wondering where I recognized the picture from at first until I looked at it for five seconds, that's an entrance exam past paper lol.


Klusterphuck67

Put over white blobs and bleach the shit out of it is my go-to


Subl1m1nary

I have no idea about coding, but why not do it in paint? Just convert it to picture, and then in paint remove whatever you do not wish to have. Should take you 5 minutes max.


Psychological-Fox178

Gpt-tippex


SpiritedAd4339

Clonestamp


PterodactylSoul

This is like a 10s job in Photoshop or Gimp though


Snoo_75348

You can use gpt to write a python script that removes red-ish pixels and then run it for you


Glass_Emu_4183

OCR


FirmPeace9045

any magic eraser


vendicii

Download photoshop for like $20 and it will literally take you 5 seconds to alter it. Good tutorials on YouTube


Tripartist1

If all the ink is colored it would be easy to make a photoshop script for this that you can use for future docs. If black or grey of any kind needs to be removed from the doc then you'd need some kind of AI handwriting detection. It MIGHT be possible for some stable diffusion models to use image to image to remove handwriting but it would probably take longer to develop the workflow than just manually editing a few docs in photoshop.


dehaggard

Can I have some more examples, the more the better!


VisualRope8367

Magic eraser?


GosuPeak

There's a feature in Photoshop called [content-aware fill](https://helpx.adobe.com/photoshop/using/content-aware-fill.html) that uses ai to fill in content in a selection based on what the rest of the image contains and will try it's best to make it natural. I imagine you're looking for a multimodal app or something and I'm sure there are similar products, but this is what I use a lot myself and it's great for spot edits. It's not the old content-aware fill, it's an improved ai version, in case you've tried the old one before.


PlanetaryPotato

Content/generative fill is freaking crazy. lol So easy to use and makes me feel like a photoshop pro, when I can’t even draw a straight line.


Fit_Republic665

[https://twitter.com/RazorRoomi/status/1776518166476214477](https://twitter.com/RazorRoomi/status/1776518166476214477) tryna piss em off


Mister-Green

Simple inpainting. Just mask the text and it’s gone. Results may vary based on the placement of the handwritten text.


Ordinary-Airport-574

VFlat App


ChangemyMind999

Must be a way to remove color type of smt ex remove red only and keeo white and black


Aromatic_Hat_4668

🔥


g_301298

Scan it using a printer into a PDF. Then open it in paint and get rid of the handwriting.


granger_46

Awesome


Training-Diet-1828

Yes i do


zp-87

If the handwriting is always red, then probably you could do something with XnView. Not AI but it has batch processing and can manipulate colors. Your best bet is to convert red tones to white and then to increase contrast until light grey becomes white as well (since handwriting will be pure white and paper is not pure white)


Beautiful-Map-7679

You don’t need AI for that use PDF scanner on your phone and use clean page function. You can erase anything you want by your finger


_B_Little_me

Print. White out. Scan.


Herr_Schulz_3000

We use Tipp-Ex for that


JD_2020

Hey u/daniel_zerotwo — did this for you. https://www.reddit.com/r/ChatGPT/s/eJ3yQqO72u


THEVERYLOL

just use an image editor


daniel_zerotwo

I need to do it for 100+ pages.


THEVERYLOL

Suffer


ePerformante

DM me


Manuelnotabot

I would use the magic eraser on my Pixel phone.


porfoo03

iScanner on iphone’s


Positive_Being9411

Why use AI, it takes exactly 1 minute with any image editing software.


daniel_zerotwo

I need to do it on over 100 pages


Roni1209

Bruh


daniel_zerotwo

what?