doushe8577 2010-12-21 20:00
浏览 29
已采纳

在symfony中保存图像区域

I need to create some type of Quizz app witch have to have 2 parts:

  • Back-end : There I need to upoad a picture and save 2 areas: 1 right area and 1,2 or 3 wrong areas (<- how can I achieve that?)

  • Front-end: a system will show a picture randomly and the user will have to choose one of the selected area... when he clicks the app will tell him if it was correct or not.

the difficult part for me is how to setup this clickable areas on a uploaded image.

I want to do this project in symfony (it will be my first) but I also can start in .Net and WPF.

Any help, clue or example will be very helpfull

thanks in advance.

  • 写回答

1条回答 默认 最新

  • doupo6967 2011-01-17 13:16
    关注

    If I understand if correctly, you want to:

    • backend: upload an image, divide it into X sections, mark one section as the "correct" area and all the others as "incorrect" area.
    • frontend: click on image: if the XY coords are in the "correct" area, do A, otherwise do B

    The harder part would be writing the javascript layer for the backend app so that you can easily draw a selection on the uploaded image, especially if you intend to use more complex shapes (as opposed to just rectangles used in many libraries for client-side cropping). It can be done, though.

    On server side you simply store the coordinates of the images that are "correct", so your choice of server framework is largely irrelevant to what you're trying to accomplish.

    For inspiration of how the javascript cropping utilities accomplish some of what you want to do, look here: http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-prototype-scriptaculous/

    Hope this helps.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器